SDA-2516 Extract programs folder location into property

This commit is contained in:
Mattias Gustavsson 2020-10-14 09:08:49 +02:00
parent 32d1b2bf69
commit eff6ee7118
2 changed files with 3 additions and 2 deletions

View File

@ -157,7 +157,8 @@ class Script
new PublicProperty("OPEN_EXTERNAL", "true"),
new PublicProperty("POD_URL", "https://my.symphony.com"),
new PublicProperty("POINTER_LOCK", "true"),
new Property("MSIINSTALLPERUSER", "1")
new Property("MSIINSTALLPERUSER", "1"),
new Property("PROGRAMSFOLDER", System.Environment.ExpandEnvironmentVariables(@"%PROGRAMFILES%"))
};
// Define the custom actions we want to run, and at what point of the installation we want to execute them.

View File

@ -51,7 +51,7 @@ namespace Symphony
{
// Install for all users
Runtime.Session["MSIINSTALLPERUSER"] = ""; // per-machine
Runtime.Session["INSTALLDIR"] = System.Environment.ExpandEnvironmentVariables(@"%PROGRAMFILES%\" + Runtime.ProductName);
Runtime.Session["INSTALLDIR"] = Runtime.Session["PROGRAMSFOLDER"] + @"\" + Runtime.ProductName;
}
Shell.GoNext();