<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
  <Product Name='WhonixStarter'
    Id='1CCD01E3-5673-43B9-9061-40A6CD8A323A'
    UpgradeCode='4845FCB7-255A-4979-A287-275D43D0B1A1'
    Language='1033'
    Codepage='1252'
    Version='$(var.whonixStarterVersion)'
    Manufacturer='$(var.whonixStarterManufacturer)'>

    <Upgrade Id='4845FCB7-255A-4979-A287-275D43D0B1A1'>
      <UpgradeVersion OnlyDetect='no' Property='PREVIOUSFOUND'
        Minimum='0.0.1' IncludeMinimum='yes'
        Maximum='$(var.whonixStarterVersion)' IncludeMaximum='no' />
    </Upgrade>

    <Package Id='*'
      Keywords='Installer'
      Description="$(var.whonixStarterDescription)"
      Comments='Copyright (c) by $(var.whonixStarterManufacturer)'
      Manufacturer='$(var.whonixStarterManufacturer)'
      InstallerVersion='200'
      Languages='1033'
      Compressed='yes'
      SummaryCodepage='1252' />

    <Media Id='1' Cabinet='WhonixStarter.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" />
    <Property Id='DiskPrompt' Value="WhonixStarter Installation [1]" />

    <Directory Id='TARGETDIR' Name='SourceDir'>
      <Directory Id='ProgramFiles64Folder' Name='PFiles'>
        <Directory Id='INSTALLDIR' Name='WhonixStarter'>

          <Component Id='MainComponent' Guid='CEEE1E58-584F-4F8C-8465-9C82C9AB38D0'>
            <File Id='WhonixStarterEXE' Name='WhonixStarter.exe'
              DiskId='1' Source='WhonixStarter.exe' KeyPath='yes'>
              <Shortcut Id="startmenuWhonixStarter" Directory="ProgramMenuDir"
                Name="WhonixStarter" WorkingDirectory='INSTALLDIR'
                Icon="WhonixStarter.ico" IconIndex="0" Advertise="yes" />
              <Shortcut Id="desktopWhonixStarter" Directory="DesktopFolder"
                Name="WhonixStarter" WorkingDirectory='INSTALLDIR'
                Icon="WhonixStarter.ico" IconIndex="0" Advertise="yes" />
            </File>
          </Component>

        </Directory>
      </Directory>

      <Directory Id="ProgramMenuFolder" Name="Programs">
        <Directory Id="ProgramMenuDir" Name="WhonixStarter">
          <Component Id="ProgramMenuDir" Guid="602EA0D2-DBE7-4A4F-ACA4-F6FB23550D3D">
            <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
            <RegistryValue Root='HKCU' Key='Software\[Manufacturer]\[ProductName]'
              Type='string' Value='' KeyPath='yes' />
          </Component>
        </Directory>
      </Directory>

      <Directory Id="DesktopFolder" Name="Desktop" />
    </Directory>

    <Feature Id='Complete' Level='1'>
      <Feature Id='MainProgram' Level='1'>
        <ComponentRef Id='MainComponent' />
      </Feature>
    </Feature>

    <InstallExecuteSequence>
      <RemoveExistingProducts Before="InstallInitialize" />
    </InstallExecuteSequence>

    <Icon Id="WhonixStarter.ico" SourceFile="WhonixStarter.ico" />
    <Property Id="ARPPRODUCTICON" Value="WhonixStarter.ico" />
  </Product>
</Wix>
