Launch conditions cannot be totally cleared. - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

JDMils
Posts: 50
Joined: Tue Aug 10, 2010 12:42 pm

Launch conditions cannot be totally cleared.

It looks like when I set the min launch condition on my AI project, that no matter what I do, I cannot remove the option. In the GUI, the only Software Launch Conditions which are set are "Min. Dot Net Version: .Net Framework 2.0", but when I install the app onto my test WinXP machine, I get a warning stating "AppName cannot be installed on systems without Office 2007 Shared Primary Interop Assembly".

If I set the Launch Condition to "Installed Office 2007 PIA- Outlook", I get the same error.
If I set the Launch Condition to "Installed Office 2007 PIA- Outlook", I get the same error.

Looking at the Project file with all Launch Conditions turned off, I can see these lines:

Code: Select all

  <COMPONENT cid="caphyon.advinst.msicomp.MsiPropsComponent">
    <ROW Property="AI_FINDEXE_TITLE" Value="Select the installation package for [|ProductName]" ValueLocId="AI.Property.FindExeTitle"/>
    <ROW Property="AI_MINDOTNETVERSION" MultiBuildValue="DefaultBuild:2.0" ValueLocId="-"/>
    <ROW Property="AI_OFFICE2007SHAREDPIAAPP" MultiBuildValue="DefaultBuild:Office Shared" ValueLocId="-"/>
    <ROW Property="AI_SERVAL_TYPE" Value="1"/>

....
....

  <COMPONENT cid="caphyon.advinst.msicomp.MsiAppSearchComponent">
    <ROW Property="AI_DOTNET20_SEARCH" Signature_="AI_DotNet20SearchSgn" Builds="DefaultBuild"/>
    <ROW Property="AI_DOTNET30_SEARCH" Signature_="AI_DotNet30SearchSgn" Builds="DefaultBuild"/>
    <ROW Property="AI_DOTNET35_CLIENTPROFILE_SEARCH" Signature_="AI_DotNet35ClientProfileSearchSgn" Builds="DefaultBuild"/>
    <ROW Property="AI_DOTNET35_SEARCH" Signature_="AI_DotNet35SearchSgn" Builds="DefaultBuild"/>
    <ROW Property="AI_DOTNET40_CLIENTPROFILE_SEARCH" Signature_="AI_DotNet40ClientProfileSearchSgn" Builds="DefaultBuild"/>
    <ROW Property="AI_DOTNET40_SEARCH" Signature_="AI_DotNet40SearchSgn" Builds="DefaultBuild"/>
    <ROW Property="AI_SETUPEXEPATH" Signature_="AI_EXE_PATH_CU" Builds="DefaultBuild"/>
    <ROW Property="AI_SETUPEXEPATH" Signature_="AI_EXE_PATH_LM" Builds="DefaultBuild"/>
    <ROW Property="AI_OFFICE2007_SHARED_PIA_SEARCH" Signature_="AI_Office2007PIA_SharedSearchSign" Builds="DefaultBuild"/>

....
....

  <COMPONENT cid="caphyon.advinst.msicomp.MsiCompLocatorComponent">
    <ROW Signature_="AI_Office2007PIA_SharedSearchSign" ComponentId="{FAB10E66-B22C-4274-8647-7CA1BA5EF30F}" Type="1"/>
  </COMPONENT>
  <COMPONENT cid="caphyon.advinst.msicomp.MsiControlComponent">

....
....

  <COMPONENT cid="caphyon.advinst.msicomp.MsiLaunchConditionsComponent">
    <ROW Condition="( Version9X OR VersionNT64 OR ( VersionNT AND ((VersionNT <> 400) OR ((VersionNT = 400) AND (ServicePackLevel >= 1))) AND ((VersionNT <> 400) OR ((VersionNT = 400) AND (ServicePackLevel <> 1))) AND ((VersionNT <> 400) OR ((VersionNT = 400) AND (ServicePackLevel <> 2))) AND ((VersionNT <> 400) OR ((VersionNT = 400) AND (ServicePackLevel <> 3))) AND ((VersionNT <> 400) OR ((VersionNT = 400) AND (ServicePackLevel <> 4))) AND ((VersionNT <> 400) OR ((VersionNT = 400) AND (ServicePackLevel <> 5))) AND ((VersionNT <> 400) OR ((VersionNT = 400) AND (ServicePackLevel <> 6))) AND ((VersionNT <> 500) OR ((VersionNT = 500) AND (ServicePackLevel >= 1))) AND ((VersionNT <> 500) OR ((VersionNT = 500) AND (ServicePackLevel <> 1))) AND ((VersionNT <> 500) OR ((VersionNT = 500) AND (ServicePackLevel <> 2))) AND ((VersionNT <> 500) OR ((VersionNT = 500) AND (ServicePackLevel <> 3))) AND ((VersionNT <> 500) OR ((VersionNT = 500) AND (ServicePackLevel <> 4))) ) )" Description="[ProductName] cannot be installed on the following Windows versions: [WindowsTypeNTDisplay]" DescriptionLocId="AI.LaunchCondition.NoSpecificNT" IsPredefined="true" Builds="DefaultBuild"/>
    <ROW Condition="(AI_DOTNET20_SEARCH = "#1") OR (AI_DOTNET30_SEARCH = "#1") OR (AI_DOTNET35_SEARCH = "#1") OR (AI_DOTNET35_CLIENTPROFILE_SEARCH = "#1") OR (AI_DOTNET40_CLIENTPROFILE_SEARCH = "#1") OR (AI_DOTNET40_SEARCH = "#1") OR (AI_DOTNET40_CLIENTPROFILE_SEARCH = "#1") OR (AI_DOTNET40_SEARCH = "#1")" Description="[ProductName] cannot be installed on systems with .NET Framework version lower than [AI_MINDOTNETVERSION]" DescriptionLocId="AI.LaunchCondition.DotNET" IsPredefined="true" Builds="DefaultBuild"/>
    <ROW Condition="AI_OFFICE2007_SHARED_PIA_SEARCH" Description="[ProductName] cannot be installed on systems without Office 2007 Shared Primary Interop Assembly." DescriptionLocId="AI.LaunchCondition.Office2007SharedPIA" IsPredefined="true" Builds="DefaultBuild"/>
    <ROW Condition="VersionNT" Description="[ProductName] cannot be installed on [WindowsType9XDisplay]" DescriptionLocId="AI.LaunchCondition.No9X" IsPredefined="true" Builds="DefaultBuild"/>
  </COMPONENT>

....
....

(Note all the lines containing "AI_Office2007PIA" indicating a launch condition is still ON.)

As a test I then created a new virgin project, saved the file, turned on the Office 2007 launch condition, saved the file as a new name and then turned off the Office 2007 launch condition and saved the file as a new name again. In theory, the first and third file should be the same, and they were.

So somewhere in my project, the project file has lines in it stating that it should check for the Office 2007 launch condition but these lines cannot be removed, unless done manually. I manually removed all lines with "AI_OFFICE2007_SHARED_PIA" and rebuilt the project and it works like it should now. I have AI V8.0 Build 431499M and am in the middle of a large-scale production run so I cannot install the latest version at the moment as it will require a Change Request, testing, etc.

It may help to know that this project was built in AI V7.x originally.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Launch conditions cannot be totally cleared.

Hello,

This was a known bug which has been fixed in the latest version. The workaround solution is indeed to delete the row manually from the .AIP using an appropriate text editor.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”