github.com/pojntfx/hydrapp/hydrapp@v0.0.0-20240516002902-d08759d6ca9f/pkg/renderers/msi/wix.wxl (about)

     1  <?xml version="1.0" encoding="utf-8"?>
     2  <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
     3      <Product Id="*" UpgradeCode="{{ .AppID }}" Name="{{ .AppName }}" Manufacturer="{{ (LastRelease .AppReleases).Author }}" Version="{{ (LastRelease .AppReleases).Version }}" Language="1033" Codepage="1252">
     4          <!-- Metadata -->
     5          <Package Id="*" Keywords="Installer" Description="{{ .AppName }} Installer" Comments="Windows Installer Package" Manufacturer="{{ (LastRelease .AppReleases).Author }}" InstallScope="perMachine" InstallerVersion="200" Languages="1033" Compressed="yes" SummaryCodepage="1252" />
     6  
     7          <!-- Launch after installation -->
     8          <CustomAction Id="LaunchAfterInstallation" Execute="immediate" Impersonate="no" Return="asyncNoWait" FileKey="{ StartID }" ExeCommand="" />
     9          <InstallExecuteSequence>
    10              <RemoveExistingProducts Before="InstallInitialize" />
    11              <Custom Action="LaunchAfterInstallation" After="InstallFinalize" />
    12          </InstallExecuteSequence>
    13  
    14          <!-- Media config -->
    15          <Media Id="1" Cabinet="app.cab" EmbedCab="yes" DiskPrompt="CD-ROM #1" />
    16          <Property Id="DiskPrompt" Value="{{ .AppName }} Installer [1]" />
    17  
    18          <!-- Icon -->
    19          <Icon Id="AppIcon" SourceFile="$(var.SourceDir)/icon.ico" />
    20          <Property Id="ARPPRODUCTICON" Value="AppIcon" />
    21  
    22          <Directory Id="TARGETDIR" Name="SourceDir">
    23              <Directory Id="ProgramFilesFolder" Name="PFiles">
    24                  <Directory Id="*" Name="{{ (LastRelease .AppReleases).Author }}">
    25                      <Directory Id="INSTALLDIR" Name="{{ .AppName }}"></Directory>
    26                  </Directory>
    27              </Directory>
    28  
    29              <Directory Id="ProgramMenuFolder">
    30                  <Component Id="StartMenuShortcut" Guid="*">
    31                      <Shortcut Id="ApplicationStartMenuShortcut" Name="{{ .AppName }}" Icon="AppIcon" Target="[#{ StartID }]" WorkingDirectory="INSTALLDIR" />
    32                      <RemoveFolder Id="ProgramMenuFolder" On="uninstall" />
    33                      <RegistryValue Root="HKCU" Key="Software\{{ (LastRelease .AppReleases).Author }}\{{ .AppName }}" Name="installed" Type="integer" Value="1" KeyPath="yes" />
    34                  </Component>
    35              </Directory>
    36  
    37              <Directory Id="DesktopFolder">
    38                  <Component Id="DesktopShortcut" Guid="*">
    39                      <Shortcut Id="ApplicationDesktopShortcut" Name="{{ .AppName }}" Icon="AppIcon" Target="[#{ StartID }]" WorkingDirectory="INSTALLDIR" />
    40                      <RemoveFolder Id="DesktopFolder" On="uninstall" />
    41                      <RegistryValue Root="HKCU" Key="Software\{{ (LastRelease .AppReleases).Author }}\{{ .AppName }}" Name="installed" Type="integer" Value="1" KeyPath="yes" />
    42                  </Component>
    43              </Directory>
    44          </Directory>
    45  
    46          <hydrappDirectories />
    47  
    48          <Feature Id="Complete" Level="1">
    49              <hydrappComponentRefs />
    50              <ComponentRef Id="StartMenuShortcut" />
    51              <ComponentRef Id="DesktopShortcut" />
    52          </Feature>
    53      </Product>
    54  </Wix>