1<?xml version="1.0" encoding="UTF-8"?>
2<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3<?define BackgroundDlg="..\..\..\..\lib\resources\images\windows_setup\setup_screen-01.png"?>
4<?define BannerDlg="..\..\..\..\lib\resources\images\windows_setup\setup_screen-02.png"?>
5<?define RenodeIcon="..\..\..\..\lib\resources\images\windows_setup\renode.ico"?>
6<?define RenodeNoBgIcon="..\..\..\..\lib\resources\images\windows_setup\renode_nobg.ico"?>
7  <Product Id="*" Name="Renode" Language="1033" Version="$(var.VERSION)" Manufacturer="Antmicro" UpgradeCode="7e549c3f-a15a-4101-8071-9d52a16a28f6">
8    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
9
10    <MajorUpgrade AllowDowngrades="no" DowngradeErrorMessage="A newer version of this software is already installed." AllowSameVersionUpgrades="no" />
11    <Media Id="1" Cabinet="cabinet.cab" EmbedCab="yes" />
12
13    <WixVariable Id="WixUIDialogBmp" Value="$(var.BackgroundDlg)" />
14    <WixVariable Id="WixUIBannerBmp" Value="$(var.BannerDlg)" />
15    <WixVariable Id="WixUIExclamationIco" Value="$(var.RenodeIcon)" />
16    <WixVariable Id="WixUIInfoIco" Value="$(var.RenodeIcon)" />
17
18    <Icon Id="Renode.ico" SourceFile="$(var.RenodeIcon)"/>
19    <Icon Id="RenodeNoBg.ico" SourceFile="$(var.RenodeNoBgIcon)"/>
20    <Property Id="ARPPRODUCTICON" Value="Renode.ico" />
21
22    <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
23
24    <Directory Id="TARGETDIR" Name="SourceDir">
25      <Directory Id="ProgramFiles64Folder">
26        <Directory Id="INSTALLDIR" Name="Renode">
27        </Directory>
28        <Directory Id="ProgramMenuFolder">
29          <Directory Id="ApplicationProgramsFolder" Name="Renode"/>
30        </Directory>
31        <Directory Id="DesktopFolder" Name="Renode" />
32      </Directory>
33    </Directory>
34
35    <DirectoryRef Id="INSTALLDIR">
36      <Component Id="EnvVar" Guid="e6b0e9a4-b3c0-43dc-b9a6-a2c4b953aad8" KeyPath="yes">
37        <Condition>PATHOPTION</Condition>
38        <Environment Id="PATH" Name="PATH" Value="[INSTALLDIR]bin" Permanent="no" Part="first" Action="set" System="yes" />
39      </Component>
40    </DirectoryRef>
41
42    <DirectoryRef Id="ApplicationProgramsFolder">
43      <Component Id="ApplicationShortcut" Guid="674dc986-f515-4abd-b191-7ee813bd29b5">
44        <Condition>STARTMENUSHORTCUT</Condition>
45        <Shortcut Id="ApplicationStartMenuShortcut" Name="Renode" Description="Renode" Target="[INSTALLDIR]bin\Renode.exe" WorkingDirectory="INSTALLDIR" Icon="RenodeNoBg.ico"/>
46        <RemoveFolder Id="CleanUpShortCut" Directory="ApplicationProgramsFolder" On="uninstall"/>
47        <RegistryValue Root="HKCU" Key="Software\Renode" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
48      </Component>
49    </DirectoryRef>
50
51    <DirectoryRef Id="DesktopFolder">
52      <Component Id="ApplicationShortcutDesktop" Guid="b066e160-840b-4dc9-ad6e-31e9d9bb74a1">
53        <Condition>DESKTOPSHORTCUT</Condition>
54        <Shortcut Id="ApplicationDesktopShortcut" Name="Renode" Description="Renode" Target="[INSTALLDIR]bin\Renode.exe" WorkingDirectory="INSTALLDIR" Icon="Renode.ico"/>
55        <RemoveFolder Id="DesktopFolder" On="uninstall"/>
56        <RegistryValue Root="HKCU" Key="Software\Renode" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
57      </Component>
58    </DirectoryRef>
59
60    <Feature Id="Complete" Title="Renode">
61      <Feature Id="MainProgram" Level="1" ConfigurableDirectory="INSTALLDIR" >
62        <ComponentGroupRef Id="Items" />
63      </Feature>
64      <Feature Id="Options" Level="1">
65        <ComponentRef Id="EnvVar" />
66        <ComponentRef Id="ApplicationShortcut" />
67        <ComponentRef Id="ApplicationShortcutDesktop" />
68      </Feature>
69    </Feature>
70
71    <UIRef Id="WixUI_RenodeInstall" />
72  </Product>
73</Wix>
74