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!

natecope
Posts: 38
Joined: Tue Feb 03, 2015 4:27 pm

Set the product code from a command file?

Is it possible to set the product code from a command file? I realize it's possible to do it at the command line. Specifically, I want to do something like:
SetProperty ProductCode="{71917288-ED1F-4DF7-9EAA-F4E9E32BB9C7}"

But besides the guid, there's also the requirement of the language code. I don't know how to put both requirements on one line in the command file...
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Set the product code from a command file?

Hello,

Yes, you can set the value of ProductCode property. For this, use the Set Product Code Option.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
natecope
Posts: 38
Joined: Tue Feb 03, 2015 4:27 pm

Re: Set the product code from a command file?

This doesn't really answer my question.

I know I can do it from the command line.

I want to know how to do it from a command FILE.

Example:

;aic
SetProperty ProductCode="{3D77994E-FBD0-4DA3-83C2-192388207AB5}"
SetProperty UpgradeCode="{719F7288-ED1F-4DF7-9EAA-F4E9E32BB9C7}"
Save
Rebuild

I don't think the productcode is working. I'm building two different products, and I think they're retaining the productcode in the aip.

-n
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Set the product code from a command file?

Hello,

To set the "ProductCode" and "UpgradeCode" of your project you can use a file of commands like this:

Code: Select all

;aic
SetProductCode -langid 1033 -guid {3D77994E-FBD0-4DA3-83C2-192388207AB5}
SetProperty UpgradeCode={719F7288-ED1F-4DF7-9EAA-F4E9E32BB9C7}
Save
Rebuild
and, then just run the following command:
  • AdvancedInstaller.com /execute <path_to_project_file> <path_to_command_file>
If you have any questions just let us know.

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

Return to “Building Installers”