Donny Brooks <dbro...@mdah.state.ms.us> writes: > What would be the proper syntax for a single entry in a package.xml > file for me to install Ultravnc via an msi install file to both 32 and > 64 bit clients? I have copied the 7-zip example from the silent > installers wiki and tried to edit it to fit to no avail. I am using > individual package xml files in the packages directory. Also I have > created two msi files that should install ultravnc configured to our > needs. One is for the 32 bit client and the other is 64 bit. Both > should already be silent installers. Could someone guide me to the > correct syntax to create this package file. Thanks in advance.
Hello, Here we use simple cmd script to handle this[1], the WPKG package looks like this: #v+ <?xml version='1.0' encoding='utf-8'?> <packages> <package id='ultravnc' name='UltraVNC' revision='1.0.8.2.2' reboot='false' priority='500'> <check type='uninstall' condition='exists' path='UltraVNC 1.0.8.2'/> <check type='file' condition='versionequalto' path='%ProgramFiles%\UltraVNC\winvnc.exe' value='1.0.8.2'/> <check type='file' condition='exists' path='%PROGRAMFILES%\UltraVNC\ultravnc.ini' /> <check type='execute' path='findstr /R /C:"passwd=$" "%PROGRAMFILES%\UltraVNC\ultravnc.ini" > NUL' condition='exitcodeequalto' value='1' /> <check type='execute' path='%ComSpec% /c netsh firewall show allowedprogram | find /I "winvnc.exe" > NUL' condition='exitcodeequalto' value='0' /> <install cmd='"%SOFTWARE%\ultravnc\1.0.8.2\install.cmd"'/> <upgrade cmd='"%SOFTWARE%\ultravnc\1.0.8.2\install.cmd"'/> <remove cmd='"%SOFTWARE%\ultravnc\1.0.8.2\remove.cmd"'/> </package> </packages> #v- and the install.cmd: #v+ @echo off REM Do not export variables SETLOCAL set PROGRAM_NAME=UltraVNC 1.0.8 REM Command to run set CMD32=ultravnc_1.0.8.2_setup.exe set CMD64=ultravnc_1.0.8.2_x64_setup.exe set CMD_PATH=%~dp0 set CMD_OPTS=/loadinf=%CMD_PATH%ultravnc.inf REM Unattended installer set INSTALLER=unattended.cmd set INSTALLER_TYPE=innoinstall set INSTALLER_LOC=%~dp0 :install echo Installing %PROGRAM_NAME% call "%INSTALLER_LOC%%INSTALLER%" %INSTALLER_TYPE% "%CMD32%" "%CMD64%" "%CMD_PATH%" "%CMD_OPTS%" set EXIT_CODE=%ERRORLEVEL% :end exit /B %EXIT_CODE% REM End of local variables ENDLOCAL REM Local Variables: REM mode: cmd REM comment-start: "REM " REM comment-end: "" REM End: #v- The inf file: #v+ [Setup] Lang=fr Dir=C:\Program Files\UltraVNC Group=UltraVNC NoIcons=0 SetupType=server_silent Components=ultravnc_server_s Tasks= #v- Note for myself: test if I can remove the "Dir" in the inf file to let the installer detect it automatically ;-) Regards. Footnotes: [1] http://wpkg.org/User:Dad -- Daniel Dehennin RAIP de l'Orne
pgpLXNEoHjR0y.pgp
Description: PGP signature
------------------------------------------------------------------------- wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ _______________________________________________ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users