Link to home
Start Free TrialLog in
Avatar of Kaprice
KapriceFlag for United States of America

asked on

Visual Studio: Running a One Click application from Shell

I created a One Click Install app from Visual Studio. As I understand it, the user shouldn't run the exe, directly, rather he runs a manifest file, which checks for updates and runs the correct version.

It works great when doubleclicking on the manifest file, directly.

But, when I try to run the manifest file via vba code, shell, I get a file not found error.

I know I'm correctly referencing the file because when I copy/paste the full path and file name into Explorer, my One Click app runs just fine.

So, my question is, how can I run the One Click Install file (the built/compiled app that the user installs) from VBA?

This gives me the error:

shell "C:\Users\Kap\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MyFTP\MyFtp",vbNormalFocus

Open in new window


But, if I paste this into explorer, it runs:

C:\Users\Kap\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MyFTP\MyFtp

Open in new window

Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Do you forgot to put the manifest file's extension?

Go to Folder option, and make sure the option: "Hide extensions for known file types" is unchecked. And then try to get the exact file name there

User generated image
Avatar of Kaprice

ASKER

One Click run files don't seem to have an extension.
Avatar of Kaprice

ASKER

OK, I guess I'm confused. Nudged by your suggestion, I opened that file in Notepad++ and it turns out it points to the Install folder on the web server pointed to when Publishing the app. Turns out that file was a shortcut, not an executable. (But, still with no file extension.)

I guess that's how it's able to check for updates.

I did a drive search for MyFtp.exe and it took me to the obfuscated folder in (User)\AppData\Local\Apps

I'm guessing running that won't check for updates, but maybe that's the only way to do this.

Maybe I'll try putting the full text from the shortcut into my Shell command and see what that does.

Thanks for the nudge.
ASKER CERTIFIED SOLUTION
Avatar of Kaprice
Kaprice
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kaprice

ASKER

No workable solution was offered. My solution required referring to an entirely different program.