Generate Multiple instance Product code - Advanced Installer Community
manuel_armas
Posts: 23
Joined: Fri Jun 13, 2014 6:20 pm

Generate Multiple instance Product code

Hi,

Is there a way to generate new product code of the instances thru comand line?
8-23-2014 12-44-54 AM.png
8-23-2014 12-44-54 AM.png (18.41 KiB) Viewed 8056 times

Thanks,
Manny
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Generate Multiple instance Product code

Hello Manny,

Yes, this can be done by using our "/GenerateMIGuid" command.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
manuel_armas
Posts: 23
Joined: Fri Jun 13, 2014 6:20 pm

Re: Generate Multiple instance Product code

Hi,

I have follow up question..

when doing the version change thru the AI application, below message pops up.
10-15-2014 1-34-29 AM.jpg
10-15-2014 1-34-29 AM.jpg (61.07 KiB) Viewed 7994 times
Hows this work when setting the product version thru command line? what its default?


Thanks,
Manny
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Generate Multiple instance Product code

Hello Manny,

You can set the ProductVersion trough command line by using our "/SetVersion" command. If the "-noprodcode" switch is used then it will not be generated a new ProductCode (equivalent of the "Patch" option within UI). If the "-noprodcode" switch is omitted then a new ProductCode is generated (equivalent of the "Major Upgrade" option within UI).

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
manuel_armas
Posts: 23
Joined: Fri Jun 13, 2014 6:20 pm

Re: Generate Multiple instance Product code

HI,

I'm trying the transform feature...
in relation to setting the version of the project.. is there a away to automatically change the version of a transform file (.mst)? so it will matches the version that I'm setting to the AIP.

Thanks,
Manny
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Generate Multiple instance Product code

Hello Manny,

I'm afraid I don't completely understand what you are trying to achieve. Can you please try to give us more details about this, maybe iterate a test case which we can follow?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
manuel_armas
Posts: 23
Joined: Fri Jun 13, 2014 6:20 pm

Re: Generate Multiple instance Product code

Hi,

Do you know how the transform works?

Because I'm trying that feature...

here is the scenario..

im trying to execute the installer (msi) thru vb script below..
-------------------------------
Function Wrapper()
dim msiResourceFilename
dim msiTransformFilename

'This will contain the full path of the MSI installer.
msiResourceFilename = Session.Property ("TempFolder") & "\" & "myInstaller.msi"
msiTransformFilename = Session.Property ("TempFolder") & "\" & "myInstallerTransform.mst"

'We create the full command to execute the MSI files.
extractCommand = "msiexec.exe /i " & msiResourceFilename & " TRANSFORMS=" & msiTransformFilename
set Wsh = CreateObject("WScript.Shell")

Wsh.Run extractCommand,1,false

End Function

Wrapper()

---------

the base installer which is myInstaller.msi has the version (Product Version) of 14.3, or could be higher, we do the versioning in automated process.
in my transform file which is myInstallerTransform.mst, still in lower version. let say 14.2.

Since we automate the creation of the build, I'm asking if the transform file(.mst) could be also edited/modified programmatically in AdvancedInstaller, so it will have the latest product version, thus when we run the transform that version number will be use.

I'm using the transform for changing property like ProductName, and some of my default property.

Thanks,
Manny
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Generate Multiple instance Product code

Hello Manny,

I'm afraid we don't have predefined support to automatically change properties inside an MST file. You can though achieve this by using the UI of our application. Here is what you should do:
1. open the Advanced Installer application
2. go to "File menu -> Open" option and choose your MST file
3. in the "Select base MSI file for transform" choose your MSI
4. go to "Product Details" page and set the new ProductVersion
5. save and build the MST

Please keep in mind that our "MSI Quick-Edit" feature is available only in the "Architect" edition of Advanced Installer.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
manuel_armas
Posts: 23
Joined: Fri Jun 13, 2014 6:20 pm

Re: Generate Multiple instance Product code

thanks like what I have I'm testing that feature already... but we want to automate the build.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Generate Multiple instance Product code

Hello,

I'm afraid we don't have any option which could help you to automate the build.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”