Problem in 23.9 with silent install of pre-req and post-mainfeature subinstalls - Advanced Installer Community
cmconti
Posts: 9
Joined: Mon Mar 04, 2024 5:00 pm

Problem in 23.9 with silent install of pre-req and post-mainfeature subinstalls

Full details of this including logs and the .aip files were emailed a few days ago.

* After upgrading from 21.9 to 23.9 we have run into a problem with silent install behavior.
* Our main installer has some pre- and post- installs
* The desired behavior (which worked in 21.9) was when the main installer is run with '/qn' or '/qn+':
** the main install is silent (except for the optional final confirmation dialog when using '/qn+)
** the pre- installs are silent
** the post- installs show full UI
* After fixes, the observed behavior with the upgraded aip when run with /qn+:
** The pre installs are no longer silent, showing full UI
** The post install does not run at all
* The tested command lines were:
** /qn INST_POST=true
** /qn+ INST_POST=true

From the original 21.9 .aip file: (I've edited the names for posting)

Code: Select all

    <ROW PrereqKey="PREREQINSTALLEREXE" DisplayName="Pre Req Installer" VersionMin="10.1.1.0" SetupFileUrl="Prerequisites\PreReqInstaller.exe" Location="0" ExactSize="0" WinNTVersions="Windows 7 RTM x86" WinNT64Versions="Windows 7 RTM x64, Windows Server 2008 R2 RTM x64" Operator="1" ComLine="[AI_PREREQ_UILEVEL_SWITCH]" NoUiComLine="/qn" Options="myn" TargetName="PreReqInstaller.exe"/>
    <ROW PrereqKey="POSTFEATUREINSTALL" DisplayName="Post Feature Installer" VersionMin="1.0.0.0" SetupFileUrl="Prerequisites\PostFeatureInstaller.exe" Location="0" ExactSize="0" Operator="1" NoUiComLine="/qn" Options="fi" TargetName="PostFeatureInstaller.exe" Feature="PostFeatureInstall" InstallCondition="INST_POST ~= &quot;true&quot;"/>
After the initial upgrade to 23.9 (loading in 23.9 and saving), these lines became:

Code: Select all

    <ROW PrereqKey="PREREQINSTALLEREXE" DisplayName="Pre Req Installer" VersionMin="10.1.1.0" SetupFileUrl="Prerequisites\PreReqInstaller.exe" Location="0" ExactSize="0" WinNTVersions="Windows 7 RTM x86" WinNT64Versions="Windows 7 RTM x64, Windows Server 2008 R2 RTM x64" Operator="1" NoUiComLine=" /qn" Options="myn" TargetName="PreReqInstaller.exe"/>
    <ROW PrereqKey="POSTFEATUREINSTALL" DisplayName="Post Feature Installer" VersionMin="1.0.0.0" SetupFileUrl="Prerequisites\PostFeatureInstaller.exe" Location="0" ExactSize="0" Operator="1" NoUiComLine=" /qn" Options="fi" TargetName="PreReqInstaller.exe" Feature="PostFeatureInstall" InstallCondition="INST_POST ~= &quot;true&quot;"/>
With this version, running with /qn INST_POST=true caused the post install to also be silent
* TBH this feels like the result of a bug fix, since the post install line has a NoUiComLine.
* We fixed this issue by removing NoUiComLine from the post install line, which left us with these:

Code: Select all

    <ROW PrereqKey="PREREQINSTALLEREXE" DisplayName="Pre Req Installer" VersionMin="10.1.1.0" SetupFileUrl="Prerequisites\PreReqInstaller.exe" Location="0" ExactSize="0" WinNTVersions="Windows 7 RTM x86" WinNT64Versions="Windows 7 RTM x64, Windows Server 2008 R2 RTM x64" Operator="1" NoUiComLine=" /qn" Options="myn" TargetName="PreReqInstaller.exe"/>
    <ROW PrereqKey="POSTFEATUREINSTALL" DisplayName="Post Feature Installer" VersionMin="1.0.0.0" SetupFileUrl="Prerequisites\PostFeatureInstaller.exe" Location="0" ExactSize="0" Operator="1" Options="fi" TargetName="PreReqInstaller.exe" Feature="PostFeatureInstall" InstallCondition="INST_POST ~= &quot;true&quot;"/>
With this version, running the main installer with /qn+ INST_POST=true:
* The pre installs are no longer silent, showing full UI
* The post install does not run at all

I did try adding ComLine="[AI_PREREQ_UILEVEL_SWITCH]" BasicUiComLine="[AI_PREREQ_UILEVEL_SWITCH]" to the pre install, but there was no change in behavior
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Problem in 23.9 with silent install of pre-req and post-mainfeature subinstalls

Hello,

Please note that I've replied to your e-mail.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cmconti
Posts: 9
Joined: Mon Mar 04, 2024 5:00 pm

Re: Problem in 23.9 with silent install of pre-req and post-mainfeature subinstalls

Attaching qn+ issue reproduction files
AdvInstTest.7z
logs, aips, and source files with .exe renamed
(158.5 KiB) Downloaded 20 times
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Problem in 23.9 with silent install of pre-req and post-mainfeature subinstalls

Hello,

Thank you for sending the reproduction files.

I have received the archive and I am currently investigating the /qn+ behavior.

I will get back to you as soon as I have more information.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”