mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-26 02:40:24 -06:00
SDA-2516 Extract programs folder location into property
This commit is contained in:
parent
32d1b2bf69
commit
eff6ee7118
@ -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.
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user