Govind Malviya
Govind Malviya

Reputation: 13753

Changing the Default Installation Path in Windows Application

I want to Change default installation path which is Program Files in windows application When Creating setup. I tried but i couldn't do that please tell me solution.

Upvotes: 35

Views: 82059

Answers (4)

VivekDev
VivekDev

Reputation: 25389

Here it is

Right click on your setup project root in Solution Explorer and choose "View -> File System"

enter image description here

Click on (select) "Application Folder" in the window which opened. If you look in the "Properties Pane" in Visual Studio there is an entry called "DefaultLocation". Change this to point it somewhere besides "Program Files".

enter image description here

Upvotes: 2

Ranjith Reddy bandi
Ranjith Reddy bandi

Reputation: 1

The other solutions don't work for VS 2012 and above. Please follow these steps:

  1. Expand Setup and Deployment Project.

  2. Select Project Assistant, bottom you will find "Installation Interview", click on "Installation Interview".

  3. You can see the Installation Dialogs, select "Yes" for option "Do you want your users to be able to modify the installation location of your application?"

Upvotes: 0

ravula sandeep
ravula sandeep

Reputation: 511

In a Visual Studio Setup project, you control the default install path by setting the DefaultLocation property of the Application Folder folder, within the File System Editor.

This, in turn, as you've found, defaults to [ProgramFilesFolder][Manufacturer]\\[ProductName]. You can either replace this property entirely or you can modify these properties.

Ex: D:\\[Manufacturer]\\[ProductName]

Upvotes: 14

Mikael Svenson
Mikael Svenson

Reputation: 39695

  • Right click on your setup project root in Solution Explorer and choose "View -> File System"
  • Click on (select) "Application Folder" in the window which opened.
  • If you look in the "Properties Pane" in Visual Studio there is an entry called "DefaultLocation". Change this to point it somewhere besides "Program Files".

Default value for location is [ProgramFilesFolder][Manufacturer]\[ProductName]. These are placeholders variables which are looked up when you compile the setup project. [ProgramFilesFolder] is the one which will point to "Program Files" in an English version of Windows.

Upvotes: 74

Related Questions