mirror of
https://github.com/agersant/polaris
synced 2024-11-10 10:14:12 +00:00
During uninstall, remove files created at runtime
This commit is contained in:
parent
ee4a7f8f15
commit
7dd285ebf3
2 changed files with 16 additions and 4 deletions
|
@ -23,8 +23,8 @@ Copy-Item .\web\ .\release\tmp\ -recurse
|
|||
|
||||
""
|
||||
"Creating installer"
|
||||
candle -wx -arch x64 -out .\release\tmp\installer.wixobj .\res\windows\installer\installer.wxs
|
||||
light -wx -spdb -ext WixUIExtension -out .\release\Polaris_0.2.0.msi .\release\tmp\installer.wixobj
|
||||
candle -wx -ext WixUtilExtension -arch x64 -out .\release\tmp\installer.wixobj .\res\windows\installer\installer.wxs
|
||||
light -wx -ext WixUtilExtension -ext WixUIExtension -spdb -out .\release\Polaris_0.2.0.msi .\release\tmp\installer.wixobj
|
||||
|
||||
"Cleaning up"
|
||||
Remove-Item -Recurse .\release\tmp
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version='1.0' encoding='windows-1252'?>
|
||||
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
|
||||
<Product Name='Polaris' Id='33986EB1-E35C-4E01-817C-FA23F0C0FB88' UpgradeCode='9D86F109-E1EC-4C67-826C-8FB813838C49' Language='1033' Codepage='1252' Version='0.2.0' Manufacturer='Antoine Gersant'>
|
||||
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi' xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
|
||||
<Product Name='Polaris' Id='33986EB1-E35C-4E01-817C-FA23F0C0FB88' UpgradeCode='9D86F109-E1EC-4C67-826C-8FB813838C49' Language='1033' Codepage='1252' Version='0.2.0' Manufacturer='Antoine Gersant'>
|
||||
|
||||
<Package Id='*' Keywords='Installer' Platform='x64' InstallPrivileges='elevated' InstallScope='perMachine' Description='Polaris Installer' Manufacturer='Antoine Gersant' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
|
||||
|
||||
|
@ -98,6 +98,17 @@
|
|||
|
||||
</Directory>
|
||||
|
||||
<!--Remove extra files after uninstall (db, thumbnails, etc.)-->
|
||||
<Property Id="EXTRADATAPATH">
|
||||
<RegistrySearch Root="HKLM" Key="SOFTWARE\Polaris" Name="ExtraDataPath" Type="raw" Id="ExtraDataPathSearch" />
|
||||
</Property>
|
||||
<DirectoryRef Id="AppDataPolaris">
|
||||
<Component Id="CleanupExtraData" Guid="A74F0BA0-797F-4088-AF43-E7874AE679C7">
|
||||
<RegistryValue Root="HKLM" Key="SOFTWARE\Polaris" Name="ExtraDataPath" Type="string" Value="[AppDataPolaris]" KeyPath="yes" />
|
||||
<util:RemoveFolderEx On="uninstall" Property="EXTRADATAPATH" />
|
||||
</Component>
|
||||
</DirectoryRef>
|
||||
|
||||
<Feature Id='Complete' Level='1'>
|
||||
<ComponentRef Id='MainExecutable' />
|
||||
<ComponentRef Id='OpenSSL' />
|
||||
|
@ -108,6 +119,7 @@
|
|||
<ComponentRef Id='WebUIStyle' />
|
||||
<ComponentRef Id='WebUITags' />
|
||||
<ComponentRef Id='ProgramMenuDir' />
|
||||
<ComponentRef Id='CleanupExtraData' />
|
||||
</Feature>
|
||||
|
||||
<Icon Id='polaris.exe' SourceFile='polaris.exe' />
|
||||
|
|
Loading…
Reference in a new issue