IrfanView is a very fast, small, compact and innovative FREEWARE (for non-commercial use) graphic viewer for Windows 9x, ME, NT, 2000, XP, 2003 , 2008, Vista, Windows 7, Windows 8, Windows 10. It is designed to be simple for beginners and powerful for professionals.
Deploying IrfanView with SCCM can be easily done with one command.
Example: "%DPused%iview436_setup.exe" /silent /desktop=0 /thumbs=0 /group=1 /allusers=1 /assoc=0
The following settings can be configured:
folder: destination folder; if not indicated: old IrfanView folder is used, if not found, the "Program Files" folder is used
desktop: create desktop shortcut; 0 = no, 1 = yes (default: 0)
thumbs: create desktop shortcut for thumbnails; 0 = no, 1 = yes (default: 0)
group: create group in Start Menu; 0 = no, 1 = yes (default: 0)
allusers: desktop/group links are for all users; 0 = current user, 1 = all users
assoc: if used, set file associations; 0 = none, 1 = images only, 2 = select all (default: 0)
assocallusers: if used, set associations for all users (Windows XP only)
ini: if used, set custom INI file folder (system environment variables are allowed)
There is only one little 'problem' if you want to set the /ini to %appdata%/irfanview ( /ini=%APPDATA%/IrfanView ). SCCM converts %APPDATA% to the current user, which is the SYSTEM account, and NOT the APPDATA folder of the end-user. Result: the application still doesn't save it settings into the APPDATA of the end-user.
After an installation (without /ini option) the default INI location is C:\Program Files (x86)\IrfanView\. So all settings will be saved in: C:\Program Files(x86)\IrfanView\i_view32.ini. To change this, you need to put the following setting into the file (remove all the other settings) :
The application will create a new i_view32.ini under the end-user APPDATA Folder when you change a setting in the application.
To automatically do this, i created a little 'script' which overwrites the .INI located in C:\Program Files(x86)\IrfanView.
My source files for the Application Deployment includes the following files:
iview32.ini got the following info:
Install.cmd got the following commands:
So the script installer will first install IrfanView. After this is done, it copies the i_view32.ini into C:\Program Files(x86)\IrfanView. The application will be successfully installed with the correct setting for the INI file :)