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.
47 lines
4.1 KiB
47 lines
4.1 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<packages>
|
|
<package id="fwsupdates"
|
|
name="Client de mises à jour"
|
|
revision="%PKG_VERSION%"
|
|
reboot="false"
|
|
priority="95">
|
|
|
|
<variable name="PKG_VERSION" value="1.8" />
|
|
|
|
<check type="registry" condition="equals" path="HKLM\Software\FWS\Updates\ClientVersion" value="%PKG_VERSION%" />
|
|
|
|
<install cmd='%COMSPEC% /C if not exist "%SYSTEMROOT%\system32\GroupPolicy\Machine\Scripts\Shutdown" mkdir "%SYSTEMROOT%\system32\GroupPolicy\Machine\Scripts\Shutdown"' />
|
|
<install cmd='%COMSPEC% /C copy /Y "%SOFTWARE%\fwsupdates\fwsupdates.vbs" "%SYSTEMROOT%\system32\GroupPolicy\Machine\Scripts\Shutdown\fwsupdates.upgrade.vbs"' />
|
|
<install cmd='%COMSPEC% /C if not exist "%SystemDrive%\FWSUpdates" mkdir "%SystemDrive%\FWSUpdates"' />
|
|
<install cmd='%COMSPEC% /C xcopy /I /E /Y "%SOFTWARE%\fwsupdates\FWSUpdates\assets" "%SystemDrive%\FWSUpdates\assets.upgrade"' />
|
|
<install cmd='%COMSPEC% /C xcopy /I /E /Y "%SOFTWARE%\fwsupdates\FWSUpdates\bin" "%SystemDrive%\FWSUpdates\bin.upgrade"' />
|
|
<install cmd='%COMSPEC% /C xcopy /I /E /Y "%SOFTWARE%\fwsupdates\FWSUpdates\lang" "%SystemDrive%\FWSUpdates\lang.upgrade"' />
|
|
<install cmd='%COMSPEC% /C copy /Y "%SOFTWARE%\fwsupdates\offline_upgrade.bat" "%SystemDrive%\FWSUpdates"' />
|
|
<install cmd='%COMSPEC% /C if not exist "%SystemDrive%\FWSUpdates\repository" mkdir "%SystemDrive%\FWSUpdates\repository"' />
|
|
<install cmd='%COMSPEC% /C if not exist "%SystemDrive%\FWSUpdates\status" mkdir "%SystemDrive%\FWSUpdates\status"' />
|
|
<install cmd='%COMSPEC% /C if not exist "%SystemDrive%\FWSUpdates\conf\adm" mkdir "%SystemDrive%\FWSUpdates\conf\adm"' />
|
|
<install cmd='%COMSPEC% /C if not exist "%SystemDrive%\FWSUpdates\prodkeys" mkdir "%SystemDrive%\FWSUpdates\prodkeys"' />
|
|
<install cmd='%COMSPEC% /C copy /Y "%SETTINGS%\fwsupdates\adm_conf.bat" "%SystemDrive%\FWSUpdates\conf\adm\conf.bat"' />
|
|
<install cmd='%COMSPEC% /C copy /Y "%SETTINGS%\fwsupdates\user_conf.bat" "%SystemDrive%\FWSUpdates\conf\user\conf.bat"' />
|
|
<install cmd='icacls.exe "%SystemDrive%\FWSUpdates" /inheritance:d /t /c /q' />
|
|
<install cmd='icacls.exe "%SystemDrive%\FWSUpdates" /remove:g "*S-1-5-11" /t /c /q' />
|
|
<install cmd='icacls.exe "%SystemDrive%\FWSUpdates\repository" /remove:g "*S-1-5-32-545" /t /c /q' />
|
|
<install cmd='icacls.exe "%SystemDrive%\FWSUpdates\status" /remove:g "*S-1-5-32-545" /t /c /q' />
|
|
<install cmd='icacls.exe "%SystemDrive%\FWSUpdates\conf\adm" /remove:g "*S-1-5-32-545" /t /c /q' />
|
|
<install cmd='icacls.exe "%SystemDrive%\FWSUpdates\prodkeys" /remove:g "*S-1-5-32-545" /t /c /q' />
|
|
<install cmd='%COMSPEC% /C copy /Y "%SOFTWARE%\fwsupdates\chkupd_bgmon.vbs" "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Startup\"'/>
|
|
<install cmd='%COMSPEC% /C regedit /S %SETTINGS%\fwsupdates\gp.reg' />
|
|
<install cmd='%COMSPEC% /C regedit /S %SETTINGS%\fwsupdates\dav_limit.reg' />
|
|
<install cmd='%COMSPEC% /C regini %SETTINGS%\fwsupdates\run_on_shutdown_reg.txt' />
|
|
<install cmd='cscript //Nologo "%SOFTWARE%\fwsupdates\create_shortcut.vbs' />
|
|
<install cmd='cscript //Nologo "%SOFTWARE%\fwsupdates\localgp.vbs" fwsupdates.vbs false MACHINE' />
|
|
<install cmd='schtasks.exe /Create /tn "sync_wpkg" /sc hourly /mo 3 /ru "SYSTEM" /tr "%SystemDrive%\FWSUpdates\bin\delayed_sync.bat" /f' />
|
|
<install cmd='reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v WPKGUpgrade /t REG_SZ /d "cmd.exe /c \"%SystemDrive%\FWSUpdates\offline_upgrade.bat\"" /f' />
|
|
<install cmd='%COMSPEC% /C echo reg add "HKLM\Software\FWS\Updates" /v "ClientVersion" /t REG_SZ /d "%PKG_VERSION%" /f >> %SystemDrive%\FWSUpdates\offline_upgrade.bat' />
|
|
<install cmd='%COMSPEC% /C echo cscript "%SystemDrive%\FWSUpdates\repository\wpkg.js" /nonotify /upgrade:fwsupdates >> %SystemDrive%\FWSUpdates\offline_upgrade.bat' />
|
|
|
|
<upgrade include='install' />
|
|
|
|
</package>
|
|
</packages>
|
|
|
|
|