mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Adding custom action to WIX template to ensure files are not locked during uninstallation (#8871)
* Adding custom action to ensure that no fleetdm related processes are running on a product uninstall scenario. This will ensure that no file locks are present during file removal
This commit is contained in:
parent
a8fe6b4bec
commit
8796ce9a38
1
changes/bug-3563-uninstall-does-not-remove-files
Normal file
1
changes/bug-3563-uninstall-does-not-remove-files
Normal file
@ -0,0 +1 @@
|
||||
* Windows installer now ensures that no files are left on the filesystem when orbit uninstallation process is kicked off
|
@ -95,6 +95,14 @@ var windowsWixTemplate = template.Must(template.New("").Option("missingkey=error
|
||||
</Directory>
|
||||
</Directory>
|
||||
|
||||
<CustomAction Id="StopOrbit_cmd" Property="WixQuietExecCmdLine" Value='"[WindowsFolder]System32\taskkill.exe" /F /IM osqueryd.exe /IM fleet-desktop.exe /IM orbit.exe' />
|
||||
<CustomAction Id="StopOrbit" BinaryKey="WixCA" DllEntry="WixQuietExec" Execute="immediate" Return="check"/>
|
||||
|
||||
<InstallExecuteSequence>
|
||||
<Custom Action='StopOrbit_cmd' Before='RemoveFiles'>(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")</Custom>
|
||||
<Custom Action='StopOrbit' After='StopOrbit_cmd'>(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")</Custom>
|
||||
</InstallExecuteSequence>
|
||||
|
||||
<Feature Id="Orbit" Title="Fleet osquery" Level="1" Display="hidden">
|
||||
<ComponentGroupRef Id="OrbitFiles" />
|
||||
<ComponentRef Id="C_ORBITROOT_REMOVAL" />
|
||||
|
Loading…
Reference in New Issue
Block a user