Hugin

Silent installer for Hugin, a panorama photo stitching program.

The Hugin website is at http://hugin.sourceforge.net/.

The Hugin installer makes shortcuts in the current user's profile, or does not create shortcuts at all if nobody is logged in.

WPKG Package

  <package id="hugin" name="Hugin Panoramic Stitcher" revision="5" reboot="false" priority="3">
   <check type="uninstall" condition="exists" path="Hugin 2010.4.0" />
   <install cmd='"%SOFTWARE%\graphics\HuginSetup_2010.4.0-32bit_Windows.exe"  /S' />
   <install cmd='"%SOFTWARE%\graphics\hugin_mklink.bat"' />
   <upgrade cmd='"%SOFTWARE%\graphics\HuginSetup_2010.4.0-32bit_Windows.exe" /S' />
   <remove cmd='"%PROGRAMFILES%\hugin\uninstall.exe" /S' />
   <remove cmd='%COMSPEC% /c rmdir /q /s "%ALLUSERSPROFILE%\Start Menu\Programs\Hugin"' />
</package>

hugin_mklink.bat

      mkdir "%ALLUSERSPROFILE%\Start Menu\Programs\Hugin\" > "%TEMP%\mkdir.out.txt" 2>&1
      CALL "%SOFTWARE%\XXMKLINK.exe" "%ALLUSERSPROFILE%\Start Menu\Programs\Hugin\Hugin" "%PROGRAMFILES%\Hugin\bin\Hugin.exe" "" "%PROGRAMFILES%\Hugin\"
      REM XXMKLINK.exe is at http://www.xxcopy.com/xxcopy38.htm