Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing the Default Installation Path in Windows Application

Tags:

c#

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.

like image 866
Govind Malviya Avatar asked Jun 12 '10 10:06

Govind Malviya


2 Answers

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

like image 77
Mikael Svenson Avatar answered Oct 12 '22 02:10

Mikael Svenson


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] 
like image 20
ravula sandeep Avatar answered Oct 12 '22 03:10

ravula sandeep