-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from cloudradar-monitoring/msi-fixes
Fix MSI upgrage and uninstall flow
- Loading branch information
Showing
9 changed files
with
50 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0"?> | ||
|
||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> | ||
|
||
<Fragment Id="FolderUninstall"> | ||
<?define RegDir="SYSTEM\ControlSet001\services\[Manufacturer]:[ProductName]"?> | ||
<?define RegValueName="InstallDir"?> | ||
<Property Id="INSTALLFOLDER"> | ||
<RegistrySearch Root="HKLM" Key="$(var.RegDir)" Type="raw" | ||
Id="APPLICATIONFOLDER_REGSEARCH" Name="$(var.RegValueName)" /> | ||
</Property> | ||
|
||
<DirectoryRef Id='INSTALLDIR'> | ||
<Component Id="UninstallFolder" Guid="*"> | ||
<CreateFolder Directory="INSTALLDIR"/> | ||
<util:RemoveFolderEx Property="INSTALLDIR" On="uninstall"/> | ||
<RemoveFolder Id="INSTALLDIR" On="uninstall"/> | ||
<RegistryValue Root="HKLM" Key="$(var.RegDir)" Name="$(var.RegValueName)" | ||
Type="string" Value="[INSTALLDIR]" KeyPath="yes"/> | ||
</Component> | ||
</DirectoryRef> | ||
</Fragment> | ||
</Wix> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters