Windows: Wix3 use ForceDeleteOnUninstall
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 22 Jun 2013 22:12:18 +0000 (18:12 -0400)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 14 Sep 2013 02:17:41 +0000 (22:17 -0400)
Patchset 1ad02ec31a33fa8f5c4018e2ba86fa05441e1fb4 removed the
createAndRemoveOnUninistall actions from a number of registry keys.
Get the same behavior with the ForceDeleteOnUninstall Wix 3.x Attribute.

Change-Id: I8c0623fa39055844d10035cbffb3870cc2d39ec6

packages/windows/installer/heimdal-installer.wxs

index e6ae9b1e2d7bae37485fb772359ea13d17196cf2..9ca3c45d874ec0d413a979383115025413f02291 100644 (file)
@@ -83,7 +83,8 @@
     <DirectoryRef Id='dirBin32' DiskId='1'>
       <Component Id='comp.SearchPath.32' Feature='feature.Main'
                  Guid='BA6C1A53-E479-4E87-9B61-7BA793DBAE56' Win64='no'>
-       <RegistryKey Root='HKLM' Key='Software\Heimdal\CurrentVersion'>
+       <RegistryKey ForceDeleteOnUninstall='yes' Root='HKLM'
+                    Key='Software\Heimdal\CurrentVersion'>
           <RegistryValue Name='InstallPath' Type='string'
                          Value='[dirBin32]' KeyPath='yes' />
         </RegistryKey>
     <DirectoryRef Id='dirBin64' DiskId='1'>
       <Component Id='comp.SearchPath.64' Feature='feature.Main'
                  Guid='2F189729-2253-47A1-AA68-06FE3A9697A7' Win64='yes'>
-       <RegistryKey Root='HKLM' Key='Software\Heimdal\CurrentVersion'>
+       <RegistryKey ForceDeleteOnUninstall='yes' Root='HKLM'
+                    Key='Software\Heimdal\CurrentVersion'>
           <RegistryValue Name='InstallPath' Type='string'
                          Value='[dirBin64]' KeyPath='yes' />
         </RegistryKey>
     <DirectoryRef Id='PLUGINDIR32'>
       <Component Id='comp.Plugin.Reg.32' Feature='feature.Main'
                  Guid='4BC44234-70A4-4CC1-A5AF-4CA76E9F9487' Win64='no'>
-       <RegistryKey Root='HKLM' Key='Software\Heimdal'>
+       <RegistryKey ForceDeleteOnUninstall='yes' Root='HKLM'
+                    Key='Software\Heimdal'>
           <RegistryValue Name='plugin_dir' Type='multiString' Action='append'
                          Value='"[PLUGINDIR32]"' KeyPath='yes' />
         </RegistryKey>
     <DirectoryRef Id='PLUGINDIR64'>
       <Component Id='comp.Plugin.Reg.64' Feature='feature.Main'
                  Guid='5A99A52E-A4CD-40F8-AFFD-AD61939FC547' Win64='yes'>
-       <RegistryKey Root='HKLM' Key='Software\Heimdal'>
+       <RegistryKey ForceDeleteOnUninstall='yes' Root='HKLM'
+                    Key='Software\Heimdal'>
           <RegistryValue Name='plugin_dir' Type='multiString' Action='append'
                          Value='"[PLUGINDIR64]"' KeyPath='yes' />
         </RegistryKey>
             <File Name='krb5.conf' KeyPath='yes' Id='krb5_conf' />
             <Environment Id='KRB5_CONFIG_by_krb5.conf' Name='KRB5_CONFIG' Action='set' System='yes' Value='[#krb5_conf]' />
             <!-- Backwards compatibility -->
-           <RegistryKey Root='HKLM' Key='Software\MIT\Kerberos'>
+           <RegistryKey ForceDeleteOnUninstall='yes' Root='HKLM'
+                        Key='Software\MIT\Kerberos'>
               <RegistryValue Name='config' Type='string' Value='[#krb_conf]' />
             </RegistryKey>
             <Condition>Not LEGACYKRB5INI And Not LEGACYKRB5CONF And Not LEGACYKRB5REG32 And Not LEGACYKRB5REG64</Condition>
                       SourceProperty='LEGACYKRB5INI' />
             <Environment Id='KRB5_CONFIG_by_legacy_krb5.ini' Name='KRB5_CONFIG'
                          Action='set' System='yes' Value='[dirCommonKerberos]krb5.conf' />
-           <RegistryKey Root='HKLM' Key='Software\Heimdal\CurrentVersion'>
+           <RegistryKey ForceDeleteOnUninstall='yes' Root='HKLM'
+                        Key='Software\Heimdal\CurrentVersion'>
               <RegistryValue Name='LegacyKrb5IniLocation' Type='string'
                              Value='[LEGACYKRB5INI]' KeyPath='yes' />
             </RegistryKey>
             <!-- Backwards compatibility -->
-           <RegistryKey Root='HKLM' Key='Software\MIT\Kerberos'>
+           <RegistryKey ForceDeleteOnUninstall='yes' Root='HKLM'
+                        Key='Software\MIT\Kerberos'>
               <RegistryValue Name='config' Type='string'
                              Value='[dirCommonKerberos]krb5.conf' />
             </RegistryKey>
                       SourceProperty='LEGACYKRB5CONF' />
             <Environment Id='KRB5_CONFIG_by_legacy_krb5.conf' Name='KRB5_CONFIG'
                          Action='set' System='yes' Value='[dirCommonKerberos]krb5.conf' />
-           <RegistryKey Root='HKLM' Key='Software\Heimdal\CurrentVersion'>
-              <RegistryValue Name='LegacyKrb5ConfLocation' Type='string'
+           <RegistryKey ForceDeleteOnUninstall='yes' Root='HKLM'
+                        Key='Software\Heimdal\CurrentVersion'>
+           <RegistryValue Name='LegacyKrb5ConfLocation' Type='string'
                              Value='[LEGACYKRB5CONF]' KeyPath='yes' />
             </RegistryKey>
             <!-- Backwards compatibility -->
-           <RegistryKey Root='HKLM' Key='Software\MIT\Kerberos'>
+           <RegistryKey ForceDeleteOnUninstall='yes' Root='HKLM'
+                        Key='Software\MIT\Kerberos'>
               <RegistryValue Name='config' Type='string'
                              Value='[dirCommonKerberos]krb5.conf' />
             </RegistryKey>