Skip to content

Commit

Permalink
SDA-4562 - Change custom action execute settings
Browse files Browse the repository at this point in the history
  • Loading branch information
KiranNiranjan committed May 22, 2024
1 parent 3163ab5 commit 33798d6
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions installer/win/WixSharpInstaller/Symphony.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,15 @@ static public void Main(string[] args)
// Define the custom actions we want to run, and at what point of the installation we want to execute them.
project.Actions = new WixSharp.Action[]
{

// CleanNSISRegistryForCurrentUser
//
// This custom action is to remove any registry entries from HKEY_CURRENT_USER if exists
new ManagedAction(CustomActions.CleanNSISRegistryForCurrentUser, Return.check, When.Before, Step.LaunchConditions, Condition.NOT_Installed )
{
UsesProperties = "INSTALLDIR"
},

// InstallVariant
//
// We want to be able to display the POD URL dialog every time SDA starts after a reinstall, regardless of
Expand All @@ -193,14 +202,6 @@ static public void Main(string[] args)
UsesProperties = "INSTALLDIR,POD_URL,CONTEXT_ORIGIN_URL,MINIMIZE_ON_CLOSE,ALWAYS_ON_TOP,AUTO_START,BRING_TO_FRONT,MEDIA,LOCATION,NOTIFICATIONS,MIDI_SYSEX,POINTER_LOCK,FULL_SCREEN,OPEN_EXTERNAL,CUSTOM_TITLE_BAR,DEV_TOOLS_ENABLED,AUTO_LAUNCH_PATH,USER_DATA_PATH,OVERRIDE_USER_AGENT,CHROME_FLAGS,ENABLE_BROWSER_LOGIN,BROWSER_LOGIN_AUTOCONNECT,FORCE_AUTO_UPDATE,IS_POD_URL_EDITABLE"
},

// CleanNSISRegistryForCurrentUser
//
// This custom action is to remove any registry entries from HKEY_CURRENT_USER if exists
new ManagedAction(CustomActions.CleanNSISRegistryForCurrentUser, Return.check, When.After, Step.InstallFiles, Condition.NOT_BeingRemoved )
{
UsesProperties = "INSTALLDIR"
},

// CleanRegistry
//
// We have some registry keys which are added by the SDA application when it is first launched. This custom
Expand Down

0 comments on commit 33798d6

Please sign in to comment.