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!

jpeterson
Posts: 10
Joined: Thu Mar 27, 2014 2:30 am

Command line option to modify MainAppUrl

How can I modify the value of MainAppUrl in the block below from the command line? There are command line options to modify other URLs that are used by the installer, but I do not see a way to modify this one when you configure the Package Type to "Web installer" in Deployment->Builds->Configuration.

Code: Select all

  
<COMPONENT cid="caphyon.advinst.msicomp.BuildComponent">
    <ROW BuildKey="DefaultBuild" BuildName="DefaultBuild" BuildOrder="1" BuildType="1" PackageFolder="Setup Files" PackageFileName="Setup" Languages="en" InstallationType="4" CabsLocation="1" PackageType="1" FilesInsideExe="true" MainAppUrl="https://www.example.com/download/Setup.msi" ExtractionFolder="[AppDataFolder][|Manufacturer]\[|ProductName] [|ProductVersion]\install" ExtUI="true" UseLargeSchema="true"/>
    <ATTRIBUTE name="CurrentBuild" value="DefaultBuild"/>
  </COMPONENT>
Thank you.
jpeterson
Posts: 10
Joined: Thu Mar 27, 2014 2:30 am

Re: Command line option to modify MainAppUrl

I figured it out. I defined two properties: InstallServer and InstallPath. Then I defined MainAppUrl as

Code: Select all

MainAppUrl="[|InstallServer][|InstallPath]Setup.msi"
Then I can set these properties from the command line to have the correct value in MainAppUrl:

Code: Select all

AdvancedInstaller.com /edit MyProject.aip /SetProperty InstallServer="www.example.com/"
AdvancedInstaller.com /edit MyProject.aip /SetProperty InstallPath="download/"
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Command line option to modify MainAppUrl

Hi,

Indeed, we do not have predefined command line for the filed you mentioned, but the approach you implemented is the recommended one.

Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”