rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

How To set a patch name using CLI

Hi,

how can I set the name of a patch using the command line version of AI?
I'd like to have it show up in the control panel like
Update for XY
Hotfix for XY

Alternatively, is there a way to set the classification using the CLI?
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How To set a patch name using CLI

Hello,

I'm afraid we don't have a command line functionality for this.

All the best,
Danie
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Re: How To set a patch name using CLI

Hi,
is there any change for this topic for the current release? (v 10)
I think this is very basic functionality when I look at the aip file for a patch project.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How To set a patch name using CLI

Hello,

Unfortunately, this command line functionality wasn't included in our last version (10.0) of Advanced Installer. However, we have this improvement on our TODO list and it will be available in a future version of Advanced Installer, but since yours is the only request implementing it has very low priority. So, I'm afraid I cannot give you an ETA at this moment.

Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Re: How To set a patch name using CLI

Hi,

I doubt that creating MSPs in an automated build environment is such an uncommon use case. From looking at the aip structure for patch projects I guess that modifying additional fields is a very simple task for you. We are on the enterprise maintenance plan for over 3 years now which is a lot of money...

Can you give me any advice on how to set the fields for patch name or classification with the current tools available (maybe vb script or similar)? Thanks in advance.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How To set a patch name using CLI

Hello,

As a workaround you can use in the "Patch Name" field (from your patch project) an unique string identifier (e.g. CustomPatchName). Then, before you build your .aip file you can call an an EXE, a VB Script, etc. which will search for "CustomPatchName" identifier within the .aip file and will replace it with a desired string.

Also, if you want to change the "Classification" field, then you can proceed like this:
- Open your .aip file (of your patch project) and save it.
- Change the "Classification" field and save the project under a different name.
- Now you can make a diff between the two .aip files.
- Before you build your .aip file you can call an an EXE, a VB Script, etc. which will edit (in the .aip file) the corresponding Classification row accordingly.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Re: How To set a patch name using CLI

thanks, this should work in the meantime.

Return to “Building Installers”