Code : Tout sélectionner
<package
id="Galaad"
name="Galaad"
revision="%version%.1"
priority="31">
<variable name="version" value="3" />
<variable name="PROGFILES" value="%PROGRAMFILES%" architecture="x86"/>
<variable name="PROGFILES" value="%PROGRAMFILES(X86)%" architecture="x64"/>
<variable name="DossierGalaad" value="%PROGFILES%\Galaad" />
<check type="file" condition="exists" path="%PROGFILES%\Galaad" />
<install cmd='"powershell.exe" $(Expand-Archive -Force -LiteralPath '%SOFTWARE%\galaad\installation\galaad.zip' -DestinationPath '%PROGFILES%'; if ($? -eq $True) {exit 0} else {exit 1})' />
<install cmd='%COMSPEC% /C cacls.exe "%DossierGalaad%" /T /C /E /G "utilisateurs":C >NUL' />
<install cmd='cmd /c ftype Galaad=%DossierGalaad%\Galaad.exe %1'/>
<install cmd='cmd /c assoc .gal=Galaad'/>
<install cmd='cmd /c assoc .gli=Galaad'/>
<install cmd='"%SOFTWARE%\Galaad\installation\dongledriver.exe" /S /v/qn' />' />
<upgrade include='install' />
<remove cmd='cmd /C rd /s /q "%DossierGalaad%"' />
</package>