< prev index next >

src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/template.wxs

Print this page




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


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

  47     </Product>
  48 </Wix>
< prev index next >