How to configure which folder the software should be installed/updated in?

Asked

Viewed 305 times

3

I followed suit of that question where it is explained how to configure my software to be updated automatically. I would like to know how to change which folder this installation/ update should occur.

For example, I would like my program to be installed in 'C:\MeuPrograma' and that updates occur in this directory.

  • I want to set the folder where the software will be installed. Where I set the installation folder?

  • Eric, I made a few changes to the question to try to make it clearer. If my edit doesn’t show improvements, you can reverse it by this link

  • This answer you cite in the question is not about installation/update but version control. see here and here how to create an installer.

1 answer

0


  1. Right click on your installation project in Solution Explorer and choose "View -> File System".
  2. Select "Application Folder" from the window you opened.
  3. In the "Properties Pane" area of Visual Studio there is a field called "Defaultlocation". Modify it to point somewhere other than "Program Files".

The default value for the installation location is [Programfilesfolder][Manufacturer][Productname]. There are some template variables that are consulted when you compile the setup program. [Programfilesfolder] is the one that will point to the "Program Files" folder in an English version of Windows.

NOTE: this is a full translation of the answer https://stackoverflow.com/a/3028287/1639385 for this same question in English.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.