views:

36

answers:

2

Can a WinForms exe be installed to program files instead of the user profile dir?

I can have the app installed once in the program files and later all updates should go in the same location.

+4  A: 

The following thread should answer your question.

How to control the location of ClickOnce installation?

ClickOnce applications are installed per user in the user application cache. These applications are managed by the ClickOnce service. If you want to install to a user specified location such as C:\Program files\ ... you should use MSI or some other installer technology.

More about ClickOnce on MSDN:

ClickOnce Deployment Overview (See the ClickOnce and Windows Installer Comparison Table)

Leniel Macaferi
A: 

Just curious, why do you care where it's installed, since the user doesn't need to access the deployment files?

RobinDotNet
In my company's setup, the users profile gets deleted after a week. I don't want the users to keeping installing the app every week.
Hemanshu Bhojak
RobinDotNet