modules/fxpackager/src/main/resources/com/oracle/tools/packager/windows/template.wxs

Print this page




  23         <Property Id="APPLICATIONFOLDER">
  24             <RegistrySearch Key="SOFTWARE\APPLICATION_VENDOR\APPLICATION_NAME" 
  25                             Root="REGISTRY_ROOT" Type="raw" 
  26                             Id="APPLICATIONFOLDER_REGSEARCH" Name="Path" />
  27         </Property>
  28         <DirectoryRef Id="APPLICATIONFOLDER">
  29             <Component Id="CleanupMainApplicationFolder" Guid="*" Win64="WIN64">
  30                 <RegistryValue Root="REGISTRY_ROOT"
  31                                    Key="SOFTWARE\APPLICATION_VENDOR\APPLICATION_NAME"
  32                                    Name="Path" Type="string" Value="[APPLICATIONFOLDER]"
  33                                    KeyPath="yes" />
  34                 <!-- We need to use APPLICATIONFOLDER variable here or RemoveFolderEx
  35                      will not remove on "install". But only if WiX 3.6 is used. -->
  36                 WIX36_ONLY_START     
  37                   <util:RemoveFolderEx On="uninstall" Property="APPLICATIONFOLDER" />
  38                 WIX36_ONLY_END
  39             </Component>
  40         </DirectoryRef>        
  41         <?include bundle.wxi ?>
  42 UI_BLOCK

  43         <Icon Id="DesktopIcon.exe" SourceFile="APPLICATION_ICON" />
  44         <Icon Id="StartMenuIcon.exe" SourceFile="APPLICATION_ICON" />
  45 SECONDARY_LAUNCHER_ICONS
  46     </Product>
  47 </Wix>


  23         <Property Id="APPLICATIONFOLDER">
  24             <RegistrySearch Key="SOFTWARE\APPLICATION_VENDOR\APPLICATION_NAME" 
  25                             Root="REGISTRY_ROOT" Type="raw" 
  26                             Id="APPLICATIONFOLDER_REGSEARCH" Name="Path" />
  27         </Property>
  28         <DirectoryRef Id="APPLICATIONFOLDER">
  29             <Component Id="CleanupMainApplicationFolder" Guid="*" Win64="WIN64">
  30                 <RegistryValue Root="REGISTRY_ROOT"
  31                                    Key="SOFTWARE\APPLICATION_VENDOR\APPLICATION_NAME"
  32                                    Name="Path" Type="string" Value="[APPLICATIONFOLDER]"
  33                                    KeyPath="yes" />
  34                 <!-- We need to use APPLICATIONFOLDER variable here or RemoveFolderEx
  35                      will not remove on "install". But only if WiX 3.6 is used. -->
  36                 WIX36_ONLY_START     
  37                   <util:RemoveFolderEx On="uninstall" Property="APPLICATIONFOLDER" />
  38                 WIX36_ONLY_END
  39             </Component>
  40         </DirectoryRef>        
  41         <?include bundle.wxi ?>
  42 UI_BLOCK
  43 APP_CDS_BLOCK

  44         <Icon Id="DesktopIcon.exe" SourceFile="APPLICATION_ICON" />
  45         <Icon Id="StartMenuIcon.exe" SourceFile="APPLICATION_ICON" />
  46 SECONDARY_LAUNCHER_ICONS
  47     </Product>
  48 </Wix>