Visual Studio Click Once - Where does it install to?

I have a VB.net project.

I created a Click Once installation.

I set it to allow running offline.

I set the Publish to an FTP folder on my web server and Installation folder URL to the http version of the same folder.

It publishes fine.

I can install from the published website fine.

But, I'm getting run errors and I'm trying to figure out why. But, I can't even find the location of my installation. All I can find is a link in the start menu. And, that link doesn't tell me where the actual program files are.

How do I find my installation folder on the client machine?
KapriceAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Éric MoreauSenior .Net ConsultantCommented:
To find the folder location, you can just run the app, open the task manager (CTRL-SHIFT-ESC), select the app and right-click|Open file location.

ClickOnce applications are installed under the profile of the user who installed them.

On windows Vista and Windows 7, you will find the ClickOnce cache here: c:\users\username\AppData\Local\Apps\2.0\obfuscatedfoldername\obfuscatedfoldername
Gustav BrockCIOCommented:
It is typically in User -- Local Settings subfolder. May be named Apps\2.0\ABCDEFGH.AB\JKLMNOPQ.12W or similar random folder names.

Here are folders like "abcd..tion_00000000000000..."
This contains the exe, some helper files, and a Resources folder

/gustav
Jacques Bourgeois (James Burger)PresidentCommented:
Since the name of the folder created to install the application changes on every installation and update, you cannot hardcode it in your application. So even if you find it on one machine, its useless on another station.

In your code, if you need to work in the application folder or subfolders, you thus need to always use a path relative to the .exe, not a hard coded path.

In your code, you can use Application.ExecutablePath to get the folder from which the application is running.

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:
Thank you all, very much!
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.