How to create a new aip project from cmdline? - 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!

kilcarman
Posts: 10
Joined: Fri Aug 14, 2009 11:13 am

How to create a new aip project from cmdline?

Hi

I am working on cmdline automation of msi generation and builds as part of our build processes.
Is there any way to create a new project using the advancedinstaller.com tool?
This would be useful as I could then use the /edit method to add the required files and folders etc and rebuild.

Also, is there any interface for changing the ProductCode GUID of a project from the command line?

Thanks,
Martin
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: How to create a new aip project from cmdline?

Hello,

There is no command to create a new project in Advanced Installer. You can however use an empty project as a template, and use the copy cmdlet to copy/paste it wherever you need it.

For setting a new product code to the project you can use the SetProductCode option.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
kilcarman
Posts: 10
Joined: Fri Aug 14, 2009 11:13 am

Re: How to create a new aip project from cmdline?

Great thanks Gabriel.
Pity a new basic "empty" project can's be generated but I can easily go with the template model.

Regards,
Martin
drivard
Posts: 50
Joined: Wed Dec 05, 2007 10:14 pm

Re: How to create a new aip project from cmdline?

Our automated build generates a command file that is then passed to a template AIP file with the /execute command on the command line.
It works very nicely for setting properties at build time, including new UpgradeCodes.
kilcarman
Posts: 10
Joined: Fri Aug 14, 2009 11:13 am

Re: How to create a new aip project from cmdline?

Thanks.
Is the SetProductCode only supported for certain versions? I am using 7.1.3 Enterprise and when i try using this command it is not recognised?
See below:

Code: Select all

"C:\Program Files (x86)\Caphyon\Advanced Installer 7.1.3\AdvancedInstaller.com" /edit Test.aip /SetProductCode -langid 1033 -guid {4686B026-E048-4882-A35A-6E3C5C8AAF29}

Advanced Installer version 7.1.3

Usage:
  AdvancedInstaller.com <path_to_project_file>
  AdvancedInstaller.com /help [<command>] | /? [<command>]
  AdvancedInstaller.com /build <path_to_project_file> [-buildslist <builds_list>]
  AdvancedInstaller.com /rebuild <path_to_project_file> [-buildslist <builds_list>]
  AdvancedInstaller.com /edit <path_to_project_file> <command>
  AdvancedInstaller.com /execute <path_to_project_file> <command_file_path> [-nofail]

Supported Commands:
  /SetVersion
  /SetPackageName
  /AddFile
  /DelFile
  /AddFolder
  /DelFolder
  /NewShortcut
  /DelShortcut
  /NewSync
  /ResetSync
  /SetProperty
  /DelProperty
  /GetProperty
  /NewReg
  /AddReg
  /DelReg
  /AddFileSearch
  /DelFileSearch
  /AddDrLocator
  /DelDrLocator
  /DelSearch
  /AddRegLocator
  /DelRegLocator
  /AddCompLocator
  /DelCompLocator
  /AddIniLocator
  /DelIniLocator
  /SetBitmap
  /DuplicateProject
  /SetBuildJreOnly
  /SetUpdatesUrl
  /ImportRegFile
  /NewPrerequisite
  /DelPrerequisite
  /NewEnvironment
  /DelEnvironment
  /SetPackageType
  /SetCurrentFeature
  /AddLanguage
  /DelLanguage
  /GenRegKeys
Martin
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: How to create a new aip project from cmdline?

Hello,

Please note that the /SetProductCode command line option has been made available starting with Advanced Installer 7.2.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
kilcarman
Posts: 10
Joined: Fri Aug 14, 2009 11:13 am

Re: How to create a new aip project from cmdline?

Ah yes - I see that now on the 7.2 release notes - thanks.
Martin

Return to “Common Problems”