VS 2012 Publish Windows App to Specific Folder

I have created a simple Windows Forms application, I am able to Publish the project to a specific folder, but when I run the SETUP.exe file to install on another machine, it installs into the user/roaming profile folder.

How can I tell it to install into the Program Files folder (or any other)

Who is Participating?
Jacques Bourgeois (James Burger)Connect With a Mentor PresidentCommented:
You are probably using ClickOnce to deploy your application. In such a case, you cannot control the installation folder. Because of its easy update mechanism, ClickOnce needs complete control over the installation.

If you want to be able to control the installation, you need to deploy the application through a more standard .msi file. This enables you to provide a default installation directory, and the user can select another one if he wants, just as is the case with the majority of software installations you may have encountered.

You will find a tool to prepare the .msi under File... New... Project... Other Project Types... Setup and Deployment.

The choices might be different depending on your version of Visual Studio, but if it is offered in you version, chose Install Shield, this is the only one supported in VS2012.
BrianFordAuthor Commented:
Makes sense, thank you
BrianFordAuthor Commented:
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.

All Courses

From novice to tech pro — start learning today.