Adding a version number to an application folder in a Visual Studio installation project

I have a Visual Studio installation project that has an application folder DefaultLocationinstalled on [ProgramFilesFolder][Manufacturer]\[ProductName]. I would like to change this to include the software version number, for example [ProgramFilesFolder][Manufacturer]\[ProductName][Version], but Visual Studio does not seem to support it.

Is there an alternative to manually changing the application folder DefaultLocationevery time I create a new version?

+3
source share
3 answers

You can use [ProductVersion] just like [ProductName] and set the product version in the project properties window.

+6
source

, , post-build, Javascript-, MSI. .

script, MSI
EXE MSI?

script , , Orca script, , , MSI, .

db.

0

[ProgramFilesFolder][Manufacturer]\[ProductName][Version] [ProgramFilesFolder][Manufacturer]\[ProductName]\[ProductVersion] , [ProductName]

0

Source: https://habr.com/ru/post/1721923/


All Articles