Announcement

Collapse
No announcement yet.

How to install files into a folder containing the product version?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to install files into a folder containing the product version?

    Products like Google chrome install files to
    Code:
    C:\user\xyz\AppData\Local\Google\Chrome\Application\48.0.2564.116
    for example, where 48.0.2564.116 is the version number. How do I accomplish something similar in my installer?



    I tried setting the version in a property, [PROP_VERSION]. I also tried [ProductVersion], and $(var.ProductVersion). None of these work. Is this possible to do?

  • #2
    Create a "Set Folder" Custom Action. Set the Folder ID "FolderPProClientVer" to "[ProductVersion]". Schedule the Custom Action to both "After CostFinalize" in InstallExecuteSequence, and "Before WelcomeDlg" in InstallUISequence.

    Ulrich

    Comment

    Working...
    X