Here is my cli command:
Code: Select all
AdvancedInstaller.com /edit %projfile% /NewPrerequisite "Java Runtime Environment" -prereq_type OpenSite -prereq_path "http://www.oracle.com/technetwork/java/javase/downloads/index.html" -force_install -search_type RegSubKeyEnum -search_path "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" -minversion 1.6 -package
Code: Select all
<COMPONENT cid="caphyon.advinst.msicomp.PreReqComponent">
<ROW PrereqKey="JavaRuntimeEnviron" DisplayName="Java Runtime Environment" SetupFileUrl="http://www.oracle.com/technetwork/java/javase/downloads/index.html" Location="2" ExactSize="0" Operator="1" Options="m"/>
<ATTRIBUTE name="PrereqsOrder" value="JavaRuntimeEnviron"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.PreReqSearchComponent">
<ROW SearchKey="JavaRuntimeEnvironment" Prereq="JavaRuntimeEnviron" SearchType="1" SearchString="HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" VerMin="1.6" Order="1" Property="PREREQSEARCH"/>
</COMPONENT>
Code: Select all
<COMPONENT cid="caphyon.advinst.msicomp.PreReqComponent">
<ROW PrereqKey="EC39D_0B8D_4C2E_A373_7F11E2281A4C" DisplayName="Java Runtime Environment" VersionMin="1.6" SetupFileUrl="http://www.oracle.com/technetwork/java/javase/downloads/index.html" Location="2" ExactSize="0" Operator="1" Options="m"/>
<ATTRIBUTE name="PrereqsOrder" value="EC39D_0B8D_4C2E_A373_7F11E2281A4C"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.PreReqSearchComponent">
<ROW SearchKey="EC39D_0B8D_4C2E_A373_7F11E2281A4C_JRE_SEARCH" Prereq="EC39D_0B8D_4C2E_A373_7F11E2281A4C" SearchType="1" SearchString="HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" VerMin="1.0" Order="1" Property="AI_JRE_PREREQSEARCH_PROP"/>
</COMPONENT>
Thanks!
Rick