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!

Julian@Intellek
Posts: 2
Joined: Fri Jan 06, 2023 1:30 pm

Read msiexec puplic property into Installer Project

Hi,

I have a checkbox property on one of the installation screens that is responsible for writing a value to a registry Key on MSI installation.
This works.

I want to read a property passed at command line stage when executing msiexec into a variable in the Advanced Installer (AI) project when it runs the MSI. This is so that I can set the registry value during installation if the MSI is run silently by an administrator using Group Policy for instance.

Hope that makes sense, and I think this is possible but I can't find where to read it in AI.

Thanks,

Julian
Julian@Intellek
Posts: 2
Joined: Fri Jan 06, 2023 1:30 pm

Re: Read msiexec puplic property into Installer Project

Doh!

Didn't realise that the 'Properties' in Advanced Installer (AI) can in fact relate to the public properties passed via command line.
All good.

So I set a 'Property' in AI, and if passed in via command line when msiexec is run, this property is set, as long as it is not private I guess. But that's fine.

All works.
Liviu
Posts: 1420
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Read msiexec puplic property into Installer Project

Hello Julian and welcome to our forums,

Thank you for your follow-up on this.

Indeed, private properties (which contain lowercase letters, e.g. SiteName) cannot be set from the command line. Their values are not passed from the UI Execution stage to the Install Execution stage.

You can take a look at the Msiexec.exe Command Line
article, where the paragraph below is specified:
allowing you to set:
  • public properties which are used by the installation
The name of a public property contains only uppercase letters (for example PROPERTY). This type of properties can be set through the command line like this: PROPERTY="value".


Let us know if you have any other questions.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”