root/middleware-offline/trunk/_src/eidmw/minidriver/makemsi/pteidmdrv32release.wxs @ 5

Revision 5, 4.4 KB (checked in by vsilva, 9 years ago)

Initial comit

Line 
1<?xml version="1.0" encoding="utf-8"?>
2<?include $(sys.SOURCEFILEDIR)pteidmdrv-include.wxs ?>
3<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
4     xmlns:difx='http://schemas.microsoft.com/wix/DifxAppExtension'>     
5  <Product UpgradeCode="$(var.UpgradeCode)" Name="Portugal eID Smartcard minidriver (x86)" Id="*" Version="$(var.Version)" Manufacturer="Fedict" Language="1033">
6    <Package Id="*" Manufacturer="Fedict" InstallerVersion="200" Platform="x86" Languages="1033" Compressed="yes" SummaryCodepage="1252" />
7       
8        <!-- do not edit the rtf file with word! The installer will be unable to read the license -->
9        <WixVariable Id="WixUILicenseRtf" Value="Resources\gnu-lgpl.rtf" />
10       
11        <Upgrade Id='$(var.UpgradeCode)'>
12      <UpgradeVersion OnlyDetect='no' Property='OLDERFOUND'
13        Minimum='1.0.0' IncludeMinimum='yes'
14        Maximum='$(var.Version)' IncludeMaximum='no' />
15      <UpgradeVersion OnlyDetect='yes' Property='SELFFOUND'
16        Minimum='$(var.Version)' IncludeMinimum='yes'
17        Maximum='$(var.Version)' IncludeMaximum='yes' />
18      <UpgradeVersion OnlyDetect='yes' Property='NEWERFOUND'
19        Minimum='$(var.Version)' IncludeMinimum='no' />
20    </Upgrade>
21    <CustomAction Id='NoDowngrade' Error='A later version of Portugal eID Smartcard minidriver is already installed.' />
22        <CustomAction Id='AlreadyUpdated' Error='The current version of Portugal eID Smartcard minidriver is already installed.' />
23    <InstallExecuteSequence>
24      <Custom Action='AlreadyUpdated' After='FindRelatedProducts'>SELFFOUND</Custom>
25      <Custom Action='NoDowngrade' After='FindRelatedProducts'>NEWERFOUND</Custom>
26          <RemoveExistingProducts Before="InstallInitialize" />
27        </InstallExecuteSequence>
28        <UIRef Id="WixUI_Minimal" />
29        <UIRef Id="WixUI_ErrorProgressText" />
30        <Directory Id="TARGETDIR" Name="SourceDir">
31          <Directory Id="ProgramFilesFolder">
32            <Directory Id="APPLICATIONROOTDIRECTORY" Name="BeID Minidriver">
33          <Component Id="pteidmdrv" Guid="2bdf2bb0-4f7a-4ed6-a3d4-abcbe212fa14" >
34            <File Id="pteidmdrv.inf" Name="pteidmdrv.inf" Source="$(sys.SOURCEFILEDIR)Release\pteidmdrv.inf" KeyPath="yes" DiskId="1" />
35            <File Id="pteidmdrv.cat" Name="pteidmdrv.cat" Source="$(sys.SOURCEFILEDIR)Release\pteidmdrv.cat" KeyPath="no" DiskId="1" />
36            <File Id="pteidmdrv32.dll" Name="pteidmdrv32.dll" Source="$(sys.SOURCEFILEDIR)Release\pteidmdrv32.dll" KeyPath="no" DiskId="1" />
37            <File Id="pteidmdrv64.dll" Name="pteidmdrv64.dll" Source="$(sys.SOURCEFILEDIR)Release\pteidmdrv64.dll" KeyPath="no" DiskId="1" />
38                <difx:Driver ForceInstall="no" PlugAndPlayPrompt="no" DeleteFiles="no"  />
39          </Component>
40                  <!-- Certificate Propagation Service is a standard Windows service available in from Windows Vista on. In order to use the minidriver
41                           it is necessary that this service is running. When a smart card reader is inserted this service should be started  by the smart card
42                           driver. As not all drivers are following this guidance, we start CertPropSvc during the minidriver install -->
43                  <Component Id="CertPropService" Guid="932459d0-df59-11de-8a39-0800200c9a66" Permanent="yes">
44                    <!-- Start Certificate Propagation Service during startup -->
45                        <RegistryValue Root="HKLM" Key="System\CurrentControlSet\Services\CertPropSvc" Type="integer" Name="Start" Value="2" KeyPath="yes"/>
46                        <!-- Start Certificate Propagation Service now -->
47                        <ServiceControl Id="StartCertPropSvc" Name="CertPropSvc" Start="install" Wait="no" />
48                  </Component>
49                </Directory>
50          </Directory>
51    <!-- Not on all OS'ses the inf installation works OK, so we put the minidriver in system32 ourselves -->
52          <Directory Id="SystemFolder">
53          <Component Id="pteidmdrvsystem32" Guid="a8259480-e408-11de-8a39-0800200c9a66" Permanent="yes">
54            <File Id="system32_pteidmdrv.dll" Name="pteidmdrv32.dll" Source="$(sys.SOURCEFILEDIR)Release\pteidmdrv32.dll" KeyPath="yes" DiskId="1" />
55          </Component>
56          </Directory>
57        </Directory>
58    <Feature Id="DefaultFeature" Level="1">
59      <ComponentRef Id="pteidmdrv" />
60      <ComponentRef Id="pteidmdrvsystem32" />
61          <ComponentRef Id="CertPropService" />
62    </Feature>
63    <Media Id="1" EmbedCab="yes" Cabinet="_2bdf2bb04f7a4ed6a3d4abcbe212fa14" />
64        <Icon Id="pteid.ico" SourceFile="Release\pteid.ico" />
65        <Property Id="ARPPRODUCTICON" Value="pteid.ico" />
66  </Product>
67</Wix>
Note: See TracBrowser for help on using the browser.