Wieso möchtest du so einen Installer per AutoIt automatisieren? Du schießt mit Kanonen auf Spatzen... Bevor ich eine Anwendung automatisiere, überprüfe ich zuerst, ob das Gewünschte in der Anwendung nicht schon enthalten ist. Und siehe da, nach einer kurzen Google-Suche nach "irfanview silent install" habe ich auf der IrfanView-Homepage im FAQ das hier gefunden:
ZitatAlles anzeigen
Q: I am an administrator. How can I silently install/uninstall IrfanView?
A: Usually, you can download the ZIP version of IrfanView and Plugins and deploy the files.Self install versions have special start options for silent install (examples, version 4.20):
1) IrfanView:
iview420_setup.exe /silent /folder="c:\test folder\irfanview"
iview420_setup.exe /silent /folder="c:\test folder\irfanview" /desktop=1 /thumbs=1 /group=1 /allusers=0 /assoc=1 /ini="%APPDATA%\irfanview"
iview420_setup.exe /silent /folder="c:\test folder\irfanview" /ini="c:\temp"Options:
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)