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

KapriceAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ryan ChongCommented:
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

Folder Option
0
KapriceAuthor Commented:
One Click run files don't seem to have an extension.
0
KapriceAuthor Commented:
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.
0
KapriceAuthor Commented:
I never did get that to work. Instead, I created a different MyFtp.exe app from WinAutomation and a cal to that from Shell works fine.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
KapriceAuthor Commented:
No workable solution was offered. My solution required referring to an entirely different program.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.