Pegaz.NET

Pegaz.NET is Polish insurance software. More infos from here.

Pegaz.NET Komponenty Systemowe

<package id="pegaznetsystem" name="PegazNet, Komponenty systemowe" revision="2" reboot="false" priority="100" timeout="600" >
        <check type="file" condition="exists" path="%PROGRAMFILES%\Atena\PegazNETSys\wersjanetsys-2.1" />
        <install cmd='"%PACKAGES%\pegaz\install-pegaznetsys.bat"' />
        <upgrade cmd='"%PACKAGES%\pegaz\install-pegaznetsys.bat"' />
        <remove cmd='"%PROGRAMFILES%\Atena\PegazNETSys\UNWISE.EXE" "%PROGRAMFILES%\Atena\PegazNETSys\INSTALL.LOG"' />
</package>

Pegaz.NET

<package id="pegaznet" name="PegazNet" revision="26" reboot="false" priority="52" timeout="600" >
        <depends package-id="pegaznetsystem"/>
        <check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\Atena\Pegaz.NET\bin\Pegaz.exe" value="2.1.152.00" />
        <install cmd='cmd /c "%PACKAGES%\pegaz\PegazNET.EXE" /s' />
<install cmd='cmd /c copy /Y  "%PACKAGES%\pegaz\pegazSettings.xml" "%ALLUSERSPROFILE%\Dane aplikacji\PegazNET\pegazSettings.xml"' />
        <upgrade cmd='cmd /c "%PACKAGES%\pegaz\PegazNET.EXE" /s' />
        <remove cmd='"%PROGRAMFILES%\Atena\Pegaz.NET\OLDPEGAZ\UNWISE.EXE" "%PROGRAMFILES%\Atena\Pegaz.NET\OLDPEGAZ\INSTALL.LOG"' />
</package>

Pegaz Eurotax:

<package id="pegazeurotax" name="Pegaz Eurotax" revision="15" reboot="false" priority="1" timeout="300">
        <depends package-id="pegaznet"/>
        <check type="registry" condition="equals" path="HKLM\SOFTWARE\Atena\PegazNET\Eurotax\Version" value="200711" />
        <install cmd='"%PACKAGES%\pegaz\Eurotax2007_11.EXE" /s' />
        <upgrade cmd='"%PACKAGES%\pegaz\Eurotax2007_11.EXE" /s' />
        <remove cmd='echo ok' />
</package>

Pegaz Hestia Podróże:

<package id="pegazhp" name="Pegaz Hestia Podroze" revision="1" reboot="false" priority="1" timeout="300">
   <depends package-id="pegaznet"/>
      <check type="registry" condition="equals" path="HKLM\SOFTWARE\Atena\Pegaz\HI\AddOn\HP" value="0480" />
      <install cmd='"%PACKAGES%\pegaz\PegazHI_HP" /s' />
      <upgrade cmd='"%PACKAGES%\pegaz\PegazHI_HP" /s' />
      <remove cmd='cmd /c rem' />
</package>

Pegaz Eurotax - baza zdjeć

<package id="pegazbazazdjec" name=" Pegaz Eurotax Zdjecia" revision="3" reboot="false" priority="1" timeout="800" >
        <depends package-id="pegazeurotax"/>
        <check type="registry" condition="equals" path="HKLM\SOFTWARE\Atena\PegazNET\Eurotax\photosVersion" value="200705" />
        <install cmd='cmd /c "%PACKAGES%\pegaz\EurotaxZdjecia.EXE" /s' />
        <upgrade cmd='cmd /c "%PACKAGES%\pegaz\EurotaxZdjecia.EXE" /s' />
        <remove cmd='echo "ok"' />
</package>
<package id="backuppegaznet" name="Backup MSSQL PegazNET" revision="2" priority="1" reboot="false">
        <check type="file" condition="exists" path="%windir%\Tasks\Backup MSSQL PegazNET.job" />
        <install cmd='schtasks /create /tn "Backup MSSQL PegazNET" /tr "\"%PROGRAMFILES%\Atena\Pegaz.NET\bin\BackupDatabase.exe\" /s SERVERNAME\PEGAZ_NET /b BASENAME /p D:\backup\nazwa.azb /t " /sc cotygodniowo /mo 1 /d Pn,Cz /ru System /st 12:00:00'/>
        <upgrade cmd='schtasks /change  ... ' />
        <remove cmd='schtasks /delete /f /tn "Backup MSSQL PegazNET" ' />
</package>

install-pegaznetsys.bat:

"%PACKAGES%\pegaz\PegazNETSys.EXE" /s
IF ERRORLEVEL 0 copy "%PACKAGES%\pegaz\wersjanetsys-*" "%PROGRAMFILES%\Atena\PegazNETSys\"