Skip to content
Newer
Older
100644 70 lines (53 sloc) 2.86 KB
642a029 @peterhoeg add: irfanview: 4.2.8
peterhoeg authored
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <packages>
4
5 <!--
6 NOTES
7 1) Copy in our INI file which forces Irfanview to use per-user configurations in %APPDATA%
8 2) We run uninstall first as it doesn't like upgrades - we also do that on install as the user may have installed it previously
fd2b76e @peterhoeg change: irfanview: do not associate
peterhoeg authored
9
10 setup.exe /silent /folder="c:\test folder\irfanview" /desktop=1 /thumbs=1 /group=1 /allusers=0 /assoc=1 /ini="%APPDATA%\irfanview"
11
12 Options:
13 folder: destination folder; if not indicated: old IrfanView folder is used, if not found, the "Program Files" folder is used
14 desktop: create desktop shortcut; 0 = no, 1 = yes (default: 0)
15 thumbs: create desktop shortcut for thumbnails; 0 = no, 1 = yes (default: 0)
16 group: create group in Start Menu; 0 = no, 1 = yes (default: 0)
17 allusers desktop/group links are for all users; 0 = current user, 1 = all users
18 assoc: if used, set file associations; 0 = none, 1 = images only, 2 = select all (default: 0)
19 ini: if used, set custom INI file folder (system environment variables are allowed)
20 assocallusers: if used, set associations for all users (Windows XP only)
642a029 @peterhoeg add: irfanview: 4.2.8
peterhoeg authored
21 -->
22
23 <package
24 id="irfanview"
25 name="IrfanView"
fd2b76e @peterhoeg change: irfanview: do not associate
peterhoeg authored
26 revision="%version%-1"
642a029 @peterhoeg add: irfanview: 4.2.8
peterhoeg authored
27 reboot="false"
28 priority="10">
29
30 <variable name="version" value="4.2.8.0" />
31 <variable name="fileversion" value="428" />
3d7ca37 @peterhoeg change: irfanview: handle 64 bit properly
peterhoeg authored
32 <variable name="PKG_DESTINATION" value="%PROGRAMFILES%\IrfanView" architecture="x86" />
33 <variable name="PKG_DESTINATION" value="%PROGRAMFILES(x86)%\IrfanView" architecture="x64" />
642a029 @peterhoeg add: irfanview: 4.2.8
peterhoeg authored
34
3d7ca37 @peterhoeg change: irfanview: handle 64 bit properly
peterhoeg authored
35 <check type="file" condition="versiongreaterorequal" path="%PKG_DESTINATION%\i_view32.exe" value="%version%" />
642a029 @peterhoeg add: irfanview: 4.2.8
peterhoeg authored
36
3d7ca37 @peterhoeg change: irfanview: handle 64 bit properly
peterhoeg authored
37 <install include='remove' />
38 <install cmd='"%SOFTWARE%\irfanview\iview%fileversion%_setup.exe" /silent /folder="%PKG_DESTINATION%" /desktop=0 /group=1 /allusers=1 /assoc=0' />
39 <install cmd='%COMSPEC% /c xcopy /y "%SOFTWARE%\irfanview\i_view32.ini" "%PKG_DESTINATION%\" >NUL' />
642a029 @peterhoeg add: irfanview: 4.2.8
peterhoeg authored
40
3d7ca37 @peterhoeg change: irfanview: handle 64 bit properly
peterhoeg authored
41 <upgrade include='install' />
42 <downgrade include='install' />
642a029 @peterhoeg add: irfanview: 4.2.8
peterhoeg authored
43
3d7ca37 @peterhoeg change: irfanview: handle 64 bit properly
peterhoeg authored
44 <remove cmd='%COMSPEC% /C IF EXIST "%PKG_DESTINATION%\iv_uninstall.exe" "%PKG_DESTINATION%\iv_uninstall.exe" /silent' />
642a029 @peterhoeg add: irfanview: 4.2.8
peterhoeg authored
45 </package>
46
47 <package
48 id="irfanview_plugins"
49 name="Irfanview Plugins"
50 revision="%version%-0"
51 reboot="false"
52 priority="10">
53
54 <variable name="version" value="428" />
3d7ca37 @peterhoeg change: irfanview: handle 64 bit properly
peterhoeg authored
55 <variable name="PKG_DESTINATION" value="%PROGRAMFILES%\IrfanView" architecture="x86" />
56 <variable name="PKG_DESTINATION" value="%PROGRAMFILES(x86)%\IrfanView" architecture="x64" />
642a029 @peterhoeg add: irfanview: 4.2.8
peterhoeg authored
57
58 <depends package-id="irfanview" />
59
3d7ca37 @peterhoeg change: irfanview: handle 64 bit properly
peterhoeg authored
60 <check type="file" condition="exists" path="%PKG_DESTINATION%\plugins\IV_player.exe" />
642a029 @peterhoeg add: irfanview: 4.2.8
peterhoeg authored
61
62 <install cmd='"%SOFTWARE%\irfanview\irfanview_plugins_%version%_setup.exe" /silent' />
3d7ca37 @peterhoeg change: irfanview: handle 64 bit properly
peterhoeg authored
63 <upgrade include='install' />
64 <downgrade include='install' />
642a029 @peterhoeg add: irfanview: 4.2.8
peterhoeg authored
65 <!-- we just need WPKG to see this as removed -->
3d7ca37 @peterhoeg change: irfanview: handle 64 bit properly
peterhoeg authored
66 <remove cmd='%COMSPEC% /c del "%PKG_DESTINATION%\Plugins\IV_player.exe"' />
642a029 @peterhoeg add: irfanview: 4.2.8
peterhoeg authored
67 </package>
68
69 </packages>
Something went wrong with that request. Please try again.