Difference between revisions of "Hugin"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
(New version. Now using nsis installer.)
 
Line 2: Line 2:
  
 
The Hugin website is at http://hugin.sourceforge.net/.
 
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==
 
==WPKG Package==
  
 
<source lang="xml">
 
<source lang="xml">
   <package id="hugin" name="Hugin" revision="1" reboot="false" priority="3">
+
   <package id="hugin" name="Hugin Panoramic Stitcher" revision="5" reboot="false" priority="3">
   <check type="uninstall" condition="exists" path="Hugin 0.7.0 (SVN 3465)" />
+
   <check type="uninstall" condition="exists" path="Hugin 2010.4.0" />
   <install cmd='"%SOFTWARE%\graphics\hugin-0.7.0_win32-setup.exe" /LOADINF="%SOFTWARE%\graphics\hugin.inf" /VERYSILENT /SP-' />
+
   <install cmd='"%SOFTWARE%\graphics\HuginSetup_2010.4.0-32bit_Windows.exe" /S' />
   <upgrade cmd='"%SOFTWARE%\graphics\hugin-0.7.0_win32-setup.exe" /LOADINF="%SOFTWARE%\graphics\hugin.inf" /VERYSILENT /SP-' />
+
  <install cmd='"%SOFTWARE%\graphics\hugin_mklink.bat"' />
   <remove cmd='"%PROGRAMFILES%\hugin\unins000.exe" /VERYSILENT' />
+
   <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>
 
</package>
</source>
 
  
The inf file can be created by running the installer with /SAVEINF=hugin.inf, or it can be skipped altogether if you're happy with the defaults.
+
</source>
  
==Hugin.inf==
+
==hugin_mklink.bat==
  
<source lang="ini">
+
<source lang="dos">
[Setup]
+
      mkdir "%ALLUSERSPROFILE%\Start Menu\Programs\Hugin\" > "%TEMP%\mkdir.out.txt" 2>&1
Lang=default
+
      CALL "%SOFTWARE%\XXMKLINK.exe" "%ALLUSERSPROFILE%\Start Menu\Programs\Hugin\Hugin" "%PROGRAMFILES%\Hugin\bin\Hugin.exe" "" "%PROGRAMFILES%\Hugin\"
Dir=C:\Program Files\Hugin
+
      REM XXMKLINK.exe is at http://www.xxcopy.com/xxcopy38.htm
Group=Hugin
+
NoIcons=0
+
SetupType=custom
+
Components=core,translations,enblend,panotools,ap_c,p_matic
+
Tasks=modifypath,default_settings,programfiles
+
 
</source>
 
</source>
  
 
[[Category: Silent Installers]]
 
[[Category: Silent Installers]]

Latest revision as of 21:37, 11 April 2011

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