Merge pull request #1093 from mattias-symphony/SDA-2516

fix: SDA-2516 Extract programs folder location into property
This commit is contained in:
mattias-symphony
2020-10-14 13:18:21 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -157,7 +157,8 @@ class Script
new PublicProperty("OPEN_EXTERNAL", "true"), new PublicProperty("OPEN_EXTERNAL", "true"),
new PublicProperty("POD_URL", "https://my.symphony.com"), new PublicProperty("POD_URL", "https://my.symphony.com"),
new PublicProperty("POINTER_LOCK", "true"), 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. // 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 // Install for all users
Runtime.Session["MSIINSTALLPERUSER"] = ""; // per-machine Runtime.Session["MSIINSTALLPERUSER"] = ""; // per-machine
Runtime.Session["INSTALLDIR"] = System.Environment.ExpandEnvironmentVariables(@"%PROGRAMFILES%\" + Runtime.ProductName); Runtime.Session["INSTALLDIR"] = Runtime.Session["PROGRAMSFOLDER"] + @"\" + Runtime.ProductName;
} }
Shell.GoNext(); Shell.GoNext();