mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-23 09:26:27 -06:00
Merge pull request #1093 from mattias-symphony/SDA-2516
fix: SDA-2516 Extract programs folder location into property
This commit is contained in:
commit
c13a6a16ad
@ -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