1<?xml version="1.0"?> 2<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> 3 <?define ProductVersion="2.1.0" ?> 4 <?define ProductName="Yubico PIV Tool (x86)" ?> 5 6 <Product Id="*" UpgradeCode="1aa2f085-add9-4556-9e21-299b078e6273" Name="$(var.ProductName)" Version="$(var.ProductVersion)" Manufacturer="Yubico AB" Language="1033"> 7 <Package InstallerVersion="301" Compressed="yes" InstallScope="perMachine" Platform="x86" Description="$(var.ProductName) $(var.ProductVersion)" /> 8 <Media Id="1" Cabinet="yubiopivtool.cab" EmbedCab="yes"/> 9 10 <WixVariable Id="WixUIDialogBmp" Value="..\icons\yubico-msi-background.png" /> 11 <WixVariable Id="WixUIBannerBmp" Value="..\icons\yubico-msi-y-banner.png" /> 12 13 <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" /> 14 15 <Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" /> 16 <Upgrade Id="1aa2f085-add9-4556-9e21-299b078e6273"> 17 <UpgradeVersion 18 Minimum="1.0.0.0" 19 Property="PREVIOUSVERSIONSINSTALLED" 20 IncludeMinimum="yes" IncludeMaximum="no" /> 21 </Upgrade> 22 23 <InstallExecuteSequence> 24 <RemoveExistingProducts Before="InstallInitialize" /> 25 </InstallExecuteSequence> 26 27 <UI> 28 <UIRef Id="WixUI_InstallDir" /> 29 <Publish Dialog="WelcomeDlg" 30 Control="Next" 31 Event="NewDialog" 32 Value="InstallDirDlg" 33 Order="2">1</Publish> 34 <Publish Dialog="InstallDirDlg" 35 Control="Back" 36 Event="NewDialog" 37 Value="WelcomeDlg" 38 Order="2">1</Publish> 39 </UI> 40 41 <Directory Id="TARGETDIR" Name="SourceDir"> 42 <Directory Id="ProgramFilesFolder" Name="PFiles"> 43 <Directory Id="YubicoDir" Name="Yubico"> 44 <Directory Id="INSTALLDIR" Name="Yubico PIV Tool"> 45 </Directory> 46 </Directory> 47 </Directory> 48 <Directory Id="ProgramMenuFolder"> 49 <Directory Id="ApplicationProgramsFolder" Name="Yubico PIV Tool"/> 50 </Directory> 51 </Directory> 52 53 <DirectoryRef Id="ApplicationProgramsFolder"> 54 <Component Id="ApplicationShortcut" Guid="1aa2f085-add9-4556-9e21-299b078e6273"> 55 <RemoveFolder Id="CleanUpShortCut" Directory="ApplicationProgramsFolder" On="uninstall"/> 56 <RegistryValue Root="HKCU" Key="Software\Yubico\Yubico PIV Tool" Name="installed" Type="integer" Value="1" KeyPath="yes"/> 57 <util:RemoveFolderEx Id="Remove" On="install" Property="INSTALLDIR" /> 58 </Component> 59 </DirectoryRef> 60 61 <DirectoryRef Id="TARGETDIR"> 62 <Merge Id="VCRedist" SourceFile="$(env.MERGEDPATH)" DiskId="1" Language="0"/> 63 </DirectoryRef> 64 65 <Feature Id="VCRedist" Title="Visual C++ Runtime" AllowAdvertise="no" Display="hidden" Level="1"> 66 <MergeRef Id="VCRedist"/> 67 </Feature> 68 69 <Feature Id="DefaultFeature" Level="1"> 70 <ComponentGroupRef Id="ApplicationFiles"/> 71 </Feature> 72 73 <Feature Id="MainApplication" Title="Main Application" Level="1"> 74 <ComponentRef Id="ApplicationShortcut" /> 75 </Feature> 76 77 </Product> 78</Wix>