tuto:gestion_de_parc:wpkg:pdfcreator

PDF Creator

pdfcreator.xml
<?xml version="1.0" encoding="UTF-8"?>
<packages>
    <package id="pdfcreator"
             name="Imprimante virtuelle PDFCreator"
             revision="14"
             reboot="false"
             priority="10">
 
        <variable name="PKG_VERSION" value='1.7.2' />
        <variable name="EXE_PATH" value='PDFCreator-1_7_2_setup.exe' />
 
        <variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\PDFCreator" />
        <variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\PDFCreator" />
 
        <check type="uninstall" condition="versiongreaterorequal" path="PDFCreator" value="%PKG_VERSION%" />
 
        <install include="remove" />
        <install cmd='%COMSPEC% /C sc config "Spooler" start= auto' />
        <install cmd='%COMSPEC% /C sc start "Spooler" 1>NUL 2>NUL'>
            <exit code="any" />
        </install>
        <install cmd='%SOFTWARE%\pdfcreator\%EXE_PATH% /LOADINF="%SOFTWARE%\pdfcreator\setup.inf" /DontUseYahooSearch /NOCANCEL /VERYSILENT /NORESTART /SP-' />
        <install cmd='%COMSPEC% /C REG ADD "HKLM\SOFTWARE\PDFCreator\Program" /v "UpdateInterval" /t REG_SZ /d "0" /f' />
 
        <upgrade include='install' />
 
        <downgrade include="install" />
 
        <remove cmd='%COMSPEC% /C if exist "%INSTALL_PATH%\unins000.exe" "%INSTALL_PATH%\unins000.exe" /VERYSILENT' />
        <remove cmd='%COMSPEC% /C if exist "%INSTALL_PATH%\unins001.exe" "%INSTALL_PATH%\unins001.exe" /VERYSILENT' />
        <remove cmd='%COMSPEC% /C ping -n 1 127.0.0.1 1>NUL 2>NUL' />
        <remove cmd='%COMSPEC% /C if exist "%INSTALL_PATH%" rmdir /S /Q "%INSTALL_PATH%"'/>
    </package>
</packages>

Placez également dans le répertoire %SOFTWARE%\pdfcreator un fichier setup.inf (vous pouvez installer à la main sur un poste pour le récupérer), par exemple:

setup.inf
[Setup]
Lang=french
Group=PDFCreator
NoIcons=1
SetupType=custom
Components=program,ghostscript,comsamples,comsamples,helpfiles,helpfiles\french,languages,languages\french
Tasks=fileassoc,winexplorer
Printername=PDF
ServerInstallation=0
Win9xPrinterdriver=0
WinNtPrinterdriver=0
Win2k32bitPrinterdriver=0
Win2k64bitPrinterdriver=0
Toolbar=0
  • tuto/gestion_de_parc/wpkg/pdfcreator.txt
  • Dernière modification: 18/12/2013 13:31
  • de dani