User profile configuration for WPKG on iPasserelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.4 KiB

<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="userprofile"
name="Configuration du profile utilisateur"
revision="%PKG_VERSION%"
priority="10"
reboot="false">
<variable name='PKG_VERSION' value='1' />
<variable name='REG_PATH' value='HKLM\Software\iPasserelle' />
<check type="registry" condition="equals" path="%REG_PATH%\UserProfileRevision" value="%PKG_VERSION%" />
<!-- Vista/Seven -->
<install cmd='%COMSPEC% /C if exist "%PUBLIC%\Desktop" copy /Y "%SETTINGS%\userprofile\portail.url" "%PUBLIC%\Desktop\Portail.url"' />
<!-- XP -->
<install cmd='%COMSPEC% /C if exist "%ALLUSERSPROFILE%\Bureau" copy /Y "%SETTINGS%\userprofile\portail.url" "%ALLUSERSPROFILE%\Bureau\Portail.url"' />
<!-- Write the current profile revision so we know when we need to upgrade -->
<install cmd='%COMSPEC% /C reg add "%REG_PATH%" /v "UserProfileRevision" /t REG_SZ /d "%PKG_VERSION%" /f' />
<upgrade include="install" />
<downgrade include="install" />
<remove cmd='%COMSPEC% /C if exist "%PUBLIC%\Desktop" del /F "%PUBLIC%\Desktop\Portail.url"' />
<remove cmd='%COMSPEC% /C if exist "%ALLUSERSPROFILE%\Bureau" del /F "%ALLUSERSPROFILE%\Bureau\Portail.url"' />
<remove cmd='%COMSPEC% /C reg delete "%REG_PATH%" /v "UserProfileRevision" /f' />
</package>
</packages>