Unattended install options

View previous topic View next topic Go down

Unattended install options

Post by suprnova on Thu Oct 27, 2016 7:24 am

Not a huge deal, but /UNATTENDED isn't listed in the options when attempting to create a silent install package. Additionally, the .bat file that's created could use a small tweak that would greatly increase flexibility:

Before:
@echo Installing: K-Lite Codec Pack
@"K-Lite_Codec_Pack_1244_Basic.exe" /verysilent /norestart /LoadInf=".\klcp_basic_unattended.ini"
@echo Done!


After:

@echo off
echo Installing: K-Lite Codec Pack
"%~dp0K-Lite_Codec_Pack_1244_Basic.exe" /verysilent /norestart /LoadInf="%~dp0klcp_basic_unattended.ini"
echo Done!

%~dp0 is replaced by the full path of where the .bat/.cmd file is located (including a trailing "\")

This way, it doesn't matter how the script is run, as long as the installation executable is in the same path, it'll find it.

suprnova

Posts : 1
Join date : 2016-10-27

View user profile

Back to top Go down

Re: Unattended install options

Post by Admin on Fri Oct 28, 2016 4:51 am

Which options do you mean? The ones shown for /help and /? are generic parameters for InnoSetup.

Thanks for the tip!

Admin
Admin

Posts : 2977
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum