win-pvdrivers

changeset 645:748f32b33e5d

Fixed problem with signing
author James Harper <james.harper@bendigoit.com.au>
date Tue Aug 25 11:50:21 2009 +1000 (2009-08-25)
parents 7b9b8806ad93
children 84e37987cdbc
files installer.wxs makedist.bat sign.bat
line diff
     1.1 --- a/installer.wxs	Tue Aug 25 10:17:37 2009 +1000
     1.2 +++ b/installer.wxs	Tue Aug 25 11:50:21 2009 +1000
     1.3 @@ -76,13 +76,13 @@
     1.4            </Directory>
     1.5          </Directory>
     1.6          <Component Id='Cert' Guid='11112EC8-8635-45fb-9AE8-C22310F1E82D'>
     1.7 -          <File Id='ca.cer' Name='ca.cer' DiskId='1' Source='ca.cer' />
     1.8 -          <iis:Certificate Id='ca.cer' Name='ca.cer' Request='no' BinaryKey='ca.cer' StoreLocation='localMachine' StoreName='root' Overwrite='no' />
     1.9 +          <File Id='gplpv.cer' Name='gplpv.cer' DiskId='1' Source='gplpv.cer' />
    1.10 +          <iis:Certificate Id='gplpv.cer' Name='gplpv.cer' Request='no' BinaryKey='gplpv.cer' StoreLocation='localMachine' StoreName='root' Overwrite='no' />
    1.11          </Component>
    1.12        </Directory>
    1.13      </Directory>
    1.14  
    1.15 -    <Binary Id='ca.cer' SourceFile='ca.cer' />    
    1.16 +    <Binary Id='gplpv.cer' SourceFile='gplpv.cer' />    
    1.17  
    1.18      <Feature Id='Cert' Title='Install Certificate' Level='1' AllowAdvertise='no' InstallDefault='local' Absent='allow'>
    1.19        <ComponentRef Id='Cert' />
     2.1 --- a/makedist.bat	Tue Aug 25 10:17:37 2009 +1000
     2.2 +++ b/makedist.bat	Tue Aug 25 11:50:21 2009 +1000
     2.3 @@ -18,6 +18,8 @@ SET PV_DIR=%CD%
     2.4  
     2.5  ECHO PV_DIR=%PV_DIR%
     2.6  
     2.7 +IF NOT EXIST gplpv.cer "%DDK_PATH%"\bin\selfsign\makecert -r -pe -ss PrivateCertStore -n "CN=GPLPV_Test_Cert" gplpv.cer
     2.8 +
     2.9  cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre WXP && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
    2.10  
    2.11  cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre WNET && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
     3.1 --- a/sign.bat	Tue Aug 25 10:17:37 2009 +1000
     3.2 +++ b/sign.bat	Tue Aug 25 11:50:21 2009 +1000
     3.3 @@ -15,18 +15,25 @@ xcopy /D coinst\%BUILDDIR%\coinst.dll xe
     3.4  move xenvbd\%BUILDDIR%\coinst.dll xenvbd\%BUILDDIR%\xencoinst.dll
     3.5  xcopy /D %BASEDIR%\redist\wdf\%_BUILDARCH%\WdfCoInstaller01007.dll xenpci\%BUILDDIR%
     3.6  
     3.7 -IF NOT EXIST SIGN_CONFIG.BAT GOTO DONT_SIGN
     3.8 -CALL SIGN_CONFIG.BAT
     3.9 +REM IF NOT EXIST SIGN_CONFIG.BAT GOTO DONT_SIGN
    3.10 +REM CALL SIGN_CONFIG.BAT
    3.11 +
    3.12 +SET CERT_NAME=GPLPV_Test_Cert
    3.13 +
    3.14 +%DDK_PATH%\bin\selfsign\signtool sign /v /s PrivateCertStore /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenpci\%BUILDDIR%\xenpci.sys xenpci\%BUILDDIR%\WdfCoInstaller01007.dll
    3.15  %DDK_PATH%\bin\selfsign\inf2cat /driver:xenpci\%BUILDDIR% /os:%SIGN_OS%
    3.16 -%DDK_PATH%\bin\selfsign\signtool sign /v /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenpci\%BUILDDIR%\xenpci.sys xenpci\%BUILDDIR%\WdfCoInstaller01007.dll xenpci\%BUILDDIR%\xenpci.cat
    3.17 +%DDK_PATH%\bin\selfsign\signtool sign /v /s PrivateCertStore /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenpci\%BUILDDIR%\xenpci.cat
    3.18  
    3.19 +%DDK_PATH%\bin\selfsign\signtool sign /v /s PrivateCertStore /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xennet\%BUILDDIR%\xennet.sys
    3.20  %DDK_PATH%\bin\selfsign\inf2cat /driver:xennet\%BUILDDIR% /os:%SIGN_OS%
    3.21 -%DDK_PATH%\bin\selfsign\signtool sign /v /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xennet\%BUILDDIR%\xennet.sys xennet\%BUILDDIR%\xennet.cat
    3.22 +%DDK_PATH%\bin\selfsign\signtool sign /v /s PrivateCertStore /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xennet\%BUILDDIR%\xennet.cat
    3.23  
    3.24 +%DDK_PATH%\bin\selfsign\signtool sign /v /s PrivateCertStore /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenvbd\%BUILDDIR%\xenvbd.sys xenvbd\%BUILDDIR%\xencoinst.dll
    3.25  %DDK_PATH%\bin\selfsign\inf2cat /driver:xenvbd\%BUILDDIR% /os:%SIGN_OS%
    3.26 -%DDK_PATH%\bin\selfsign\signtool sign /v /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenvbd\%BUILDDIR%\xenvbd.sys xenvbd\%BUILDDIR%\xencoinst.dll xenvbd\%BUILDDIR%\xenvbd.cat
    3.27 +%DDK_PATH%\bin\selfsign\signtool sign /v /s PrivateCertStore /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenvbd\%BUILDDIR%\xenvbd.cat
    3.28  
    3.29 +%DDK_PATH%\bin\selfsign\signtool sign /v /s PrivateCertStore /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenscsi\%BUILDDIR%\xenscsi.sys
    3.30  %DDK_PATH%\bin\selfsign\inf2cat /driver:xenscsi\%BUILDDIR% /os:%SIGN_OS%
    3.31 -%DDK_PATH%\bin\selfsign\signtool sign /v /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenscsi\%BUILDDIR%\xenscsi.sys xenscsi\%BUILDDIR%\xenscsi.cat
    3.32 +%DDK_PATH%\bin\selfsign\signtool sign /v /s PrivateCertStore /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenscsi\%BUILDDIR%\xenscsi.cat
    3.33  
    3.34  :DONT_SIGN