win-pvdrivers

annotate installer.wxs @ 1025:aa2e51f67f7c

Fix hibernate under Win8. Change debugprints.
author James Harper <james.harper@bendigoit.com.au>
date Tue Feb 19 15:14:53 2013 +1100 (2013-02-19)
parents 9dbd45b40726
children 85b99b9795a6
rev   line source
james@537 1 <?xml version='1.0' encoding='windows-1252'?>
james@537 2 <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi' xmlns:difx='http://schemas.microsoft.com/wix/DifxAppExtension' xmlns:iis='http://schemas.microsoft.com/wix/IIsExtension'>
james@537 3 <?if $(env._BUILDARCH) = x86 ?>
james@537 4 <?define ARCHDIR = i386 ?>
james@537 5 <?elseif $(env._BUILDARCH) = AMD64 ?>
james@537 6 <?define ARCHDIR = amd64 ?>
james@537 7 <?endif ?>
james@537 8
james@538 9 <Product Name='GPL PV Drivers for Windows' Id='*'
james@537 10 UpgradeCode='4EDE5DEC-3208-4a1e-8E52-DAC44F7D7062'
james@538 11 Language='1033' Codepage='1252' Version='$(env.GPLPV_VERSION)' Manufacturer='James Harper'>
james@537 12
james@537 13 <Package Id='*' Keywords='Installer' Description="GPL PV Drivers for Windows"
james@537 14 Comments='no comment' Manufacturer='James Harper'
james@537 15 InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
james@537 16
james@550 17 <WixVariable Id="WixUILicenseRtf" Value="license.rtf" />
james@550 18
james@731 19 <UI>
james@731 20 <UIRef Id="WixUI_Mondo" />
james@731 21 <UIRef Id="WixUI_ErrorProgressText" />
james@731 22 </UI>
james@537 23
james@537 24 <Media Id='1' Cabinet='gplpv.cab' EmbedCab='yes' />
james@537 25
james@1015 26 <?if $(env.DDK_TARGET_OS) != Win2K ?>
james@731 27 <Binary Id='waitfordevices.vbs' SourceFile='waitnopendinginstallevents\waitfordevices.vbs'/>
james@731 28 <Binary Id='waitnopendinginstallevents.exe' SourceFile='waitnopendinginstallevents\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\waitnopendinginstallevents.exe'/>
james@819 29 <?endif?>
james@538 30 <CustomAction Id='InstallShutdownMonService' FileKey='shutdownmon.exe' ExeCommand='-i' Execute='deferred' Return='check'/>
james@762 31 <CustomAction Id='UnInstallShutdownMonService' FileKey='shutdownmon.exe' ExeCommand='-u' Execute='deferred' Return='check' Impersonate='no'/>
james@819 32 <?if $(env.DDK_TARGET_OS) != Win2K ?>
james@762 33 <CustomAction Id='WaitForDevices' BinaryKey='waitfordevices.vbs' VBScriptCall='DoWaitForDevices' Execute='deferred' Return='check' Impersonate='no'/>
james@762 34 <CustomAction Id='WaitNoPendingInstallEvents' BinaryKey='waitnopendinginstallevents.exe' ExeCommand='300000' Execute='deferred' Return='check' Impersonate='no'/>
james@762 35 <CustomAction Id='CopyConfig' FileKey='copyconfig.exe' ExeCommand='' Execute='deferred' Return='check' Impersonate='no'/>
james@819 36 <?endif?>
james@538 37
james@753 38 <Property Id="SYSTEMSTARTOPTIONS">
james@753 39 <RegistrySearch Id="SystemStartOptions"
james@753 40 Root="HKLM"
james@753 41 Key="SYSTEM\CurrentControlSet\Control"
james@753 42 Name="SystemStartOptions"
james@753 43 Type="raw" />
james@753 44 </Property>
james@753 45
james@959 46 <?ifdef env.CERT_PUBLIC_FILENAME?>
james@959 47 <?if $(env._BUILDARCH) = AMD64?>
james@753 48 <Condition Message="Testsigning must be on for x64 when installing on Vista or newer.">
james@765 49 <![CDATA[(VersionNT < 600) OR (SYSTEMSTARTOPTIONS >< "TESTSIGNING")]]>
james@753 50 </Condition>
james@753 51 <?endif ?>
james@959 52 <?endif ?>
james@753 53
james@537 54 <Directory Id='TARGETDIR' Name='SourceDir'>
james@537 55 <Directory Id='ProgramFilesFolder' Name='PFiles'>
james@537 56 <Directory Id='XenProgramFilesDir' Name='Xen PV Drivers'>
james@537 57 <Directory Id='BinDir' Name='bin'>
james@537 58 <Component Id='ShutdownMon' Guid='BF8DC887-4B46-4e77-ACD3-125E8A2BAB8E'>
james@537 59 <File Id='shutdownmon.exe' Name='shutdownmon.exe' DiskId='1' Source='shutdownmon\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\shutdownmon.exe' />
james@537 60 </Component>
james@819 61 <?if $(env.DDK_TARGET_OS) != Win2K ?>
james@537 62 <Component Id='CopyConfig' Guid='C01F8A97-1410-41ce-A16E-76E6072FDFF8'>
james@537 63 <File Id='copyconfig.exe' Name='copyconfig.exe' DiskId='1' Source='copyconfig\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\copyconfig.exe' />
james@537 64 </Component>
james@819 65 <?endif ?>
james@698 66 </Directory>
james@537 67 <Directory Id='DocDir' Name='doc'>
james@698 68 <Component Id='Docs' Guid='C827FAD8-F459-42bf-9F77-921E04261B72'>
james@698 69 <File Id='Changelog.txt' Name='Changelog.txt' DiskId='1' Source='Changelog.txt' />
james@698 70 </Component>
james@537 71 </Directory>
james@537 72 <Directory Id='DriversDir' Name='drivers'>
james@537 73 <Directory Id='XenPciDir' Name='xenpci'>
james@537 74 <Component Id='XenPci' Guid='D6BB9B5F-61F9-4b6e-8FAD-289706F5EBEB'>
james@541 75 <File Id='xenpci.cat' Name='xenpci.cat' DiskId='1' Source='xenpci\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xenpci.cat' />
james@537 76 <File Id='xenpci.inf' Name='xenpci.inf' DiskId='1' Source='xenpci\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xenpci.inf' />
james@537 77 <File Id='xenpci.sys' Name='xenpci.sys' DiskId='1' Source='xenpci\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xenpci.sys' />
james@716 78 <File Id='$(env.WDFFILENAME)' Name='$(env.WDFFILENAME)' DiskId='1' Source='xenpci\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\$(env.WDFFILENAME)' />
james@610 79 <difx:Driver Sequence='99' Legacy='yes' PlugAndPlayPrompt='no' ForceInstall='yes' />
james@537 80 </Component>
james@537 81 </Directory>
james@1016 82 <?if $(env.DDK_TARGET_OS) = Win2K OR $(env.DDK_TARGET_OS) = WinXP OR $(env.DDK_TARGET_OS) = WinNET ?>
james@537 83 <Directory Id='XenVbdDir' Name='xenvbd'>
james@537 84 <Component Id='XenVbd' Guid='1F05DC54-974C-40f6-BF41-0EFDB3EBD1DC'>
james@1015 85 <File Id='xenvbd.cat' Name='xenvbd.cat' DiskId='1' Source='xenvbd_scsiport\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xenvbd.cat' />
james@1015 86 <File Id='xenvbd.inf' Name='xenvbd.inf' DiskId='1' Source='xenvbd_scsiport\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xenvbd.inf' />
james@1015 87 <File Id='xenvbd.sys' Name='xenvbd.sys' DiskId='1' Source='xenvbd_scsiport\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xenvbd.sys' />
james@1015 88 <File Id='xenvbdfilter.sys' Name='xenvbdfilter.sys' DiskId='1' Source='xenvbd_scsiport\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xenvbdfilter.sys' />
james@610 89 <difx:Driver Sequence='1' Legacy='yes' PlugAndPlayPrompt='no' ForceInstall='yes'/>
james@537 90 </Component>
james@537 91 </Directory>
james@1015 92 <?else ?>
james@1015 93 <Directory Id='XenVbdDir' Name='xenvbd'>
james@1015 94 <Component Id='XenVbd' Guid='1F05DC54-974C-40f6-BF41-0EFDB3EBD1DC'>
james@1015 95 <File Id='xenvbd.cat' Name='xenvbd.cat' DiskId='1' Source='xenvbd_storport\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xenvbd.cat' />
james@1015 96 <File Id='xenvbd.inf' Name='xenvbd.inf' DiskId='1' Source='xenvbd_storport\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xenvbd.inf' />
james@1015 97 <File Id='xenvbd.sys' Name='xenvbd.sys' DiskId='1' Source='xenvbd_storport\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xenvbd.sys' />
james@1015 98 <difx:Driver Sequence='1' Legacy='yes' PlugAndPlayPrompt='no' ForceInstall='yes'/>
james@1015 99 </Component>
james@1015 100 </Directory>
james@1015 101 <?endif ?>
james@819 102 <?if $(env.DDK_TARGET_OS) != Win2K ?>
james@537 103 <Directory Id='XenScsiDir' Name='xenscsi'>
james@537 104 <Component Id='XenScsi' Guid='47C9AB48-3A7D-42b2-AE2C-7F9235C8B7B4'>
james@541 105 <File Id='xenscsi.cat' Name='xenscsi.cat' DiskId='1' Source='xenscsi\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xenscsi.cat' />
james@537 106 <File Id='xenscsi.inf' Name='xenscsi.inf' DiskId='1' Source='xenscsi\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xenscsi.inf' />
james@537 107 <File Id='xenscsi.sys' Name='xenscsi.sys' DiskId='1' Source='xenscsi\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xenscsi.sys' />
james@610 108 <difx:Driver Sequence='2' Legacy='yes' PlugAndPlayPrompt='no' ForceInstall='yes' />
james@537 109 </Component>
james@537 110 </Directory>
james@821 111 <?endif ?>
james@537 112 <Directory Id='XenNetDir' Name='xennet'>
james@537 113 <Component Id='XenNet' Guid='F16B1EC7-35B1-42c2-9017-22DC23D80BE7'>
james@541 114 <File Id='xennet.cat' Name='xennet.cat' DiskId='1' Source='xennet\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xennet.cat' />
james@537 115 <File Id='xennet.inf' Name='xennet.inf' DiskId='1' Source='xennet\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xennet.inf' />
james@537 116 <File Id='xennet.sys' Name='xennet.sys' DiskId='1' Source='xennet\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xennet.sys' />
james@610 117 <difx:Driver Sequence='3' Legacy='yes' PlugAndPlayPrompt='no' ForceInstall='yes' />
james@537 118 </Component>
james@537 119 </Directory>
james@821 120 <?if $(env.DDK_TARGET_OS) != Win2K ?>
james@661 121 <Directory Id='XenUsbDir' Name='xenusb'>
james@661 122 <Component Id='XenUsb' Guid='83746E68-DBCC-4feb-B521-09D5328D3BB0'>
james@661 123 <File Id='xenusb.cat' Name='xenusb.cat' DiskId='1' Source='xenusb\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xenusb.cat' />
james@661 124 <File Id='xenusb.inf' Name='xenusb.inf' DiskId='1' Source='xenusb\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xenusb.inf' />
james@661 125 <File Id='xenusb.sys' Name='xenusb.sys' DiskId='1' Source='xenusb\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\xenusb.sys' />
james@661 126 <!-- we deliberately use the file from xenpci so that wix can deduplicate it -->
james@716 127 <File Id='$(env.WDFFILENAME)_usb' Name='$(env.WDFFILENAME)' DiskId='1' Source='xenpci\obj$(env.BUILD_ALT_DIR)\$(var.ARCHDIR)\$(env.WDFFILENAME)' />
james@661 128 <difx:Driver Sequence='3' Legacy='yes' PlugAndPlayPrompt='no' ForceInstall='yes' />
james@661 129 </Component>
james@661 130 </Directory>
james@819 131 <?endif ?>
james@537 132 </Directory>
james@537 133 </Directory>
james@959 134 <?ifdef env.CERT_PUBLIC_FILENAME?>
james@537 135 <Component Id='Cert' Guid='11112EC8-8635-45fb-9AE8-C22310F1E82D'>
james@959 136 <File Id='$(env.CERT_PUBLIC_FILENAME)' Name='$(env.CERT_PUBLIC_FILENAME)' DiskId='1' Source='$(env.CERT_PUBLIC_FILENAME)' />
james@959 137 <iis:Certificate Id='$(env.CERT_PUBLIC_FILENAME)_root' Name='$(env.CERT_PUBLIC_FILENAME)' Request='no' BinaryKey='$(env.CERT_PUBLIC_FILENAME)' StoreLocation='localMachine' StoreName='root' Overwrite='no' />
james@959 138 <iis:Certificate Id='$(env.CERT_PUBLIC_FILENAME)_trustedPublisher' Name='$(env.CERT_PUBLIC_FILENAME)' Request='no' BinaryKey='$(env.CERT_PUBLIC_FILENAME)' StoreLocation='localMachine' StoreName='trustedPublisher' Overwrite='no' />
james@537 139 </Component>
james@959 140 <?endif ?>
james@537 141 </Directory>
james@537 142 </Directory>
james@537 143
james@959 144 <?ifdef env.CERT_PUBLIC_FILENAME?>
james@959 145 <Binary Id='$(env.CERT_PUBLIC_FILENAME)' SourceFile='$(env.CERT_PUBLIC_FILENAME)' />
james@959 146 <?endif ?>
james@537 147
james@959 148 <?ifdef env.CERT_PUBLIC_FILENAME?>
james@537 149 <Feature Id='Cert' Title='Install Certificate' Level='1' AllowAdvertise='no' InstallDefault='local' Absent='allow'>
james@537 150 <ComponentRef Id='Cert' />
james@537 151 </Feature>
james@959 152 <?endif ?>
james@698 153 <Feature Id='Docs' Title='Install Docs' Level='1' AllowAdvertise='no' InstallDefault='local' Absent='disallow'>
james@698 154 <ComponentRef Id='Docs' />
james@698 155 </Feature>
james@537 156 <Feature Id='Drivers' Title='Drivers' Level='1' AllowAdvertise='no' InstallDefault='local' Absent='allow'>
james@537 157 <Feature Id='XenPci' Title='XenPci Driver' Level='1' AllowAdvertise='no' InstallDefault='local' Absent='disallow'>
james@537 158 <ComponentRef Id='XenPci' />
james@537 159 </Feature>
james@537 160 <Feature Id='XenVbd' Title='XenVbd Driver' Level='1' AllowAdvertise='no' InstallDefault='local' Absent='allow'>
james@537 161 <ComponentRef Id='XenVbd' />
james@537 162 </Feature>
james@819 163 <?if $(env.DDK_TARGET_OS) != Win2K ?>
james@538 164 <Feature Id='XenScsi' Title='XenScsi Driver' Level='1' AllowAdvertise='no' InstallDefault='local' Absent='allow'>
james@537 165 <ComponentRef Id='XenScsi' />
james@537 166 </Feature>
james@821 167 <?endif ?>
james@537 168 <Feature Id='XenNet' Title='XenNet Driver' Level='1' AllowAdvertise='no' InstallDefault='local' Absent='allow'>
james@537 169 <ComponentRef Id='XenNet' />
james@537 170 </Feature>
james@821 171 <?if $(env.DDK_TARGET_OS) != Win2K ?>
james@661 172 <Feature Id='XenUsb' Title='XenUsb Driver' Level='1' AllowAdvertise='no' InstallDefault='local' Absent='allow'>
james@661 173 <ComponentRef Id='XenUsb' />
james@661 174 </Feature>
james@819 175 <?endif ?>
james@537 176 </Feature>
james@537 177 <Feature Id='ShutdownMon' Title='Shutdown Monitor' Level='1' AllowAdvertise='no' InstallDefault='local' Absent='allow'>
james@537 178 <ComponentRef Id='ShutdownMon' />
james@537 179 </Feature>
james@819 180 <?if $(env.DDK_TARGET_OS) != Win2K ?>
james@537 181 <Feature Id='CopyConfig' Title='Copy Network Config' Level='1' AllowAdvertise='no' InstallDefault='local' Absent='allow'>
james@537 182 <ComponentRef Id='CopyConfig' />
james@537 183 </Feature>
james@819 184 <?endif ?>
james@537 185
james@537 186 <InstallExecuteSequence>
james@537 187 <ScheduleReboot After='InstallFinalize' />
james@538 188 <Custom Action='UnInstallShutdownMonService' Before='StopServices'>$ShutdownMon=2</Custom>
james@538 189 <Custom Action='InstallShutdownMonService' After='StartServices'>$ShutdownMon>2</Custom>
james@819 190 <?if $(env.DDK_TARGET_OS) != Win2K ?>
james@731 191 <Custom Action='WaitForDevices' After='MsiProcessDrivers'>1</Custom>
james@731 192 <Custom Action='WaitNoPendingInstallEvents' After='WaitForDevices'>1</Custom>
james@731 193 <Custom Action='CopyConfig' After='WaitNoPendingInstallEvents'>$CopyConfig>2</Custom>
james@819 194 <?endif?>
james@537 195 </InstallExecuteSequence>
james@537 196 </Product>
james@537 197 </Wix>