Call MSI With Parameter - 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!

lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Call MSI With Parameter

I want to restrict running MSI by double click on it.
The only way to run it is to pass to it a parameter. For example: "MFile.msi /r"

How can I perform that?

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

Re: Call MSI With Parameter

Hi,

You can pass parameters to your installer like this:

Code: Select all

msiexec.exe /i "C:\Example.msi" MY_PROP="myValue"
and then program your installer's functionality depending on that property. In your case use the Prerequisites->Custom Launch Conditions tab to conditionally display an error message if your property has no value.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Re: Call MSI With Parameter

Thanks Gabriel,
It didn't work for me probably because I used Small letters as my condition...

Return to “Common Problems”