Unattended install options
2 posters
Page 1 of 1
Unattended install options
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.
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-26
Re: Unattended install options
Which options do you mean? The ones shown for /help and /? are generic parameters for InnoSetup.
Thanks for the tip!
Thanks for the tip!
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum