SDA-2132: fix quitting app on uninstall (#1022)

- Quit SDA when uninstalling on Windows from Control Panel
This commit is contained in:
Vishwas Shashidhar 2020-06-17 13:56:20 +05:30 committed by GitHub
parent bcda5ad498
commit ce5f146516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -563,6 +563,7 @@
<ROW Action="AI_DATA_SETTER" Type="51" Source="CustomActionData" Target="AEkAcwA2ADQAQgBpAHQAAgABAFAAYQByAGEAbQBzAAIAAQBTAGMAcgBpAHAAdAACACMAIABCAGwAbwBjAGsAIABmAG8AcgAgAGQAZQBjAGwAYQByAGkAbgBnACAAdABoAGUAIABzAGMAcgBpAHAAdAAgAHAAYQByAGEAbQBlAHQAZQByAHMALgANAAoAUABhAHIAYQBtACgAKQANAAoADQAKACMAIABZAG8AdQByACAAYwBvAGQAZQAgAGcAbwBlAHMAIABoAGUAcgBlAC4ADQAKAGYAdQBuAGMAdABpAG8AbgAgAHUAdQBpAGQAIABbAFwAewBdACAAWwBcAFsAXQBnAHUAaQBkAFsAXABdAF0AOgA6AE4AZQB3AEcAdQBpAGQAKAApAC4AVABvAFMAdAByAGkAbgBnACgAKQAgAFsAXAB9AF0ADQAKACQAdQB1AGkAZABfAHYAYQBsAHUAZQAgAD0AIAB1AHUAaQBkAA0ACgBBAEkAXwBTAGUAdABNAHMAaQBQAHIAbwBwAGUAcgB0AHkAIABJAE4AUwBUAEEATABMAF8AVgBBAFIASQBBAE4AVAAgACQAdQB1AGkAZABfAHYAYQBsAHUAZQ=="/>
<ROW Action="AI_DATA_SETTER_1" Type="51" Source="CustomActionData" Target="AEkAcwA2ADQAQgBpAHQAAgABAFAAYQByAGEAbQBzAAIAAQBTAGMAcgBpAHAAdAACACMAIABCAGwAbwBjAGsAIABmAG8AcgAgAGQAZQBjAGwAYQByAGkAbgBnACAAdABoAGUAIABzAGMAcgBpAHAAdAAgAHAAYQByAGEAbQBlAHQAZQByAHMALgANAAoAUABhAHIAYQBtACgAKQANAAoADQAKACMAIAB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AGQAZQByACAAUgBlAGcAaQBzAHQAcgB5ACAALQBSAG8AbwB0ACAASABLAEUAWQBfAFUAUwBFAFIAUwAgAC0ARQByAHIAbwByAEEAYwB0AGkAbwBuACAAUwBpAGwAZQBuAHQAbAB5AEMAbwBuAHQAaQBuAHUAZQANAAoAUgBlAG0AbwB2AGUALQBJAHQAZQBtAFAAcgBvAHAAZQByAHQAeQAgAC0AUABhAHQAaAAgACIASABLAFUAOgAuAEQARQBGAEEAVQBMAFQAXABTAG8AZgB0AHcAYQByAGUAXABNAGkAYwByAG8AcwBvAGYAdABcAFcAaQBuAGQAbwB3AHMAXABDAHUAcgByAGUAbgB0AFYAZQByAHMAaQBvAG4AXABSAHUAbgAiACAALQBOAGEAbQBlACAAIgBTAHkAbQBwAGgAbwBuAHkAIgAgAC0ARQByAHIAbwByAEEAYwB0AGkAbwBuACAAUwBpAGwAZQBuAHQAbAB5AEMAbwBuAHQAaQBuAHUAZQ=="/>
<ROW Action="AI_DATA_SETTER_2" Type="51" Source="CustomActionData" Target="Symphony.exe"/>
<ROW Action="AI_DATA_SETTER_3" Type="51" Source="CustomActionData" Target="Symphony.exe"/>
<ROW Action="AI_DATA_SETTER_4" Type="51" Source="CustomActionData" Target="Symphony.exe"/>
<ROW Action="AI_DOWNGRADE" Type="19" Target="4010"/>
<ROW Action="AI_DpiContentScale" Type="1" Source="aicustact.dll" Target="DpiContentScale"/>
@ -587,6 +588,7 @@
<ROW Action="SET_TARGETDIR_TO_APPDIR" Type="51" Source="TARGETDIR" Target="[APPDIR]"/>
<ROW Action="SetDefaults" Type="37" Target="Script Text" TargetUnformatted="if (!Session.Property(&quot;POD_URL&quot;)) {&#13;&#10;&#9;Session.Property(&quot;POD_URL&quot;) = &quot;https://my.symphony.com&quot;;&#13;&#10;} else {&#13;&#10;&#9;Session.Property(&quot;POD_URL&quot;) = Session.Property(&quot;POD_URL&quot;).replace(/^\s\s*/, &apos;&apos;).replace(/\s\s*$/, &apos;&apos;);&#13;&#10;}&#13;&#10;&#13;&#10;var autoLaunchPath = Session.Property(&quot;AUTO_LAUNCH_PATH&quot;);&#13;&#10;if (autoLaunchPath) {&#13;&#10;&#9;Session.Property(&quot;AUTO_LAUNCH_PATH&quot;) = autoLaunchPath.replace(/\\/g, &quot;/&quot;);&#13;&#10;}&#13;&#10;&#13;&#10;if (!Session.Property(&quot;ALWAYS_ON_TOP&quot;))&#13;&#10;{&#13;&#10;&#9;Session.Property(&quot;ALWAYS_ON_TOP&quot;) = &quot;DISABLED&quot;; &#13;&#10;}&#13;&#10;&#13;&#10;if (!Session.Property(&quot;MINIMIZE_ON_CLOSE&quot;))&#13;&#10;{&#13;&#10;&#9;Session.Property(&quot;MINIMIZE_ON_CLOSE&quot;) = &quot;ENABLED&quot;;&#13;&#10;}&#13;&#10;&#13;&#10;if (!Session.Property(&quot;AUTO_START&quot;))&#13;&#10;{&#13;&#10;&#9;Session.Property(&quot;AUTO_START&quot;) = &quot;ENABLED&quot;;&#13;&#10;}&#13;&#10;&#13;&#10;if (!Session.Property(&quot;BRING_TO_FRONT&quot;))&#13;&#10;{&#13;&#10;&#9;Session.Property(&quot;BRING_TO_FRONT&quot;) = &quot;DISABLED&quot;;&#13;&#10;}&#13;&#10;&#13;&#10;if (!Session.Property(&quot;CUSTOM_TITLE_BAR&quot;))&#13;&#10;{&#13;&#10;&#9;Session.Property(&quot;CUSTOM_TITLE_BAR&quot;) = &quot;ENABLED&quot;;&#13;&#10;}&#13;&#10;&#13;&#10;if (!Session.Property(&quot;DEV_TOOLS_ENABLED&quot;))&#13;&#10;{&#13;&#10;&#9;Session.Property(&quot;DEV_TOOLS_ENABLED&quot;) = &quot;true&quot;;&#13;&#10;}&#13;&#10;&#13;&#10;if (!Session.Property(&quot;MEDIA&quot;))&#13;&#10;{&#13;&#10;&#9;Session.Property(&quot;MEDIA&quot;) = &quot;true&quot;;&#13;&#10;}&#13;&#10;&#13;&#10;if (!Session.Property(&quot;LOCATION&quot;))&#13;&#10;{&#13;&#10;&#9;Session.Property(&quot;LOCATION&quot;) = &quot;true&quot;;&#13;&#10;}&#13;&#10;&#13;&#10;if (!Session.Property(&quot;NOTIFICATIONS&quot;))&#13;&#10;{&#13;&#10;&#9;Session.Property(&quot;NOTIFICATIONS&quot;) = &quot;true&quot;;&#13;&#10;}&#13;&#10;&#13;&#10;if (!Session.Property(&quot;MIDI_SYSEX&quot;))&#13;&#10;{&#13;&#10;&#9;Session.Property(&quot;MIDI_SYSEX&quot;) = &quot;true&quot;;&#13;&#10;}&#13;&#10;&#13;&#10;if (!Session.Property(&quot;POINTER_LOCK&quot;))&#13;&#10;{&#13;&#10;&#9;Session.Property(&quot;POINTER_LOCK&quot;) = &quot;true&quot;;&#13;&#10;}&#13;&#10;&#13;&#10;if (!Session.Property(&quot;FULL_SCREEN&quot;))&#13;&#10;{&#13;&#10;&#9;Session.Property(&quot;FULL_SCREEN&quot;) = &quot;true&quot;;&#13;&#10;}&#13;&#10;&#13;&#10;if (!Session.Property(&quot;OPEN_EXTERNAL&quot;))&#13;&#10;{&#13;&#10;&#9;Session.Property(&quot;OPEN_EXTERNAL&quot;) = &quot;true&quot;;&#13;&#10;}&#13;&#10;" WithoutSeq="true"/>
<ROW Action="StopProcess" Type="65" Source="aicustact.dll" Target="StopProcess" WithoutSeq="true" Options="1" AdditionalSeq="AI_DATA_SETTER_4"/>
<ROW Action="StopSymphony" Type="65" Source="aicustact.dll" Target="StopProcess" Options="1" AdditionalSeq="AI_DATA_SETTER_3"/>
<ROW Action="UninstallPreviousVersions" Type="65" Source="aicustact.dll" Target="UninstallPreviousVersions" Options="1"/>
<ROW Action="UpdateInstallVariant" Type="1" Source="PowerShellScriptLauncher.dll" Target="RunPowerShellScript" WithoutSeq="true" Options="1" AdditionalSeq="AI_DATA_SETTER"/>
</COMPONENT>
@ -602,17 +604,19 @@
<ROW Action="AI_DOWNGRADE" Condition="AI_NEWERPRODUCTFOUND AND (UILevel &lt;&gt; 5)" Sequence="210"/>
<ROW Action="AI_STORE_LOCATION" Condition="(Not Installed) OR REINSTALL" Sequence="1502"/>
<ROW Action="AI_PREPARE_UPGRADE" Condition="AI_UPGRADE=&quot;No&quot; AND (Not Installed)" Sequence="1399"/>
<ROW Action="AI_ResolveKnownFolders" Sequence="53"/>
<ROW Action="AI_ResolveKnownFolders" Sequence="55"/>
<ROW Action="AI_GetArpIconPath" Sequence="1402"/>
<ROW Action="AI_SETMIXINSTLOCATION" Sequence="749"/>
<ROW Action="AI_AiBackupImmediate" Sequence="1401"/>
<ROW Action="AI_AiBackupRollback" Sequence="1501"/>
<ROW Action="AI_AiRestoreDeferred" Sequence="6598"/>
<ROW Action="AI_TxtUpdaterInstall" Sequence="5101"/>
<ROW Action="AI_EnableDebugLog" Sequence="51"/>
<ROW Action="AI_EnableDebugLog" Sequence="53"/>
<ROW Action="AI_AiRestoreDeferredImpersonate" Sequence="6599"/>
<ROW Action="PowerShellScriptInline" Condition="( Installed AND ( REMOVE = &quot;ALL&quot; OR AI_INSTALL_MODE = &quot;Remove&quot; ) ) AND ( (VersionNT &gt; 501) OR (VersionNT = 501 AND ServicePackLevel &gt;= 2) )" Sequence="6402"/>
<ROW Action="AI_DATA_SETTER_1" Condition="( Installed AND ( REMOVE = &quot;ALL&quot; OR AI_INSTALL_MODE = &quot;Remove&quot; ) ) AND ( (VersionNT &gt; 501) OR (VersionNT = 501 AND ServicePackLevel &gt;= 2) )" Sequence="6401"/>
<ROW Action="StopSymphony" Condition="( ( Installed AND REMOVE &lt;&gt; &quot;ALL&quot; AND AI_INSTALL_MODE &lt;&gt; &quot;Remove&quot; ) OR ( Installed AND ( REMOVE = &quot;ALL&quot; OR AI_INSTALL_MODE = &quot;Remove&quot; ) ) )" Sequence="52"/>
<ROW Action="AI_DATA_SETTER_3" Condition="( ( Installed AND REMOVE &lt;&gt; &quot;ALL&quot; AND AI_INSTALL_MODE &lt;&gt; &quot;Remove&quot; ) OR ( Installed AND ( REMOVE = &quot;ALL&quot; OR AI_INSTALL_MODE = &quot;Remove&quot; ) ) )" Sequence="51"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiInstallUISequenceComponent">
<ROW Action="AI_ResolveKnownFolders" Sequence="53"/>