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)

Thanks
BrianFordAsked:
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.

Jacques Bourgeois (James Burger)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.
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
BrianFordAuthor Commented:
Makes sense, thank you
0
BrianFordAuthor Commented:
thanks
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
Visual Basic.NET

From novice to tech pro — start learning today.