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!

edjubuh
Posts: 1
Joined: Thu Jan 26, 2017 4:50 pm

Propagate install type to feature-based prerequisites?

I have an installer which optionally installs an additional feature for our application. Our users would like the ability to specify if the application is installed locally or machine-wide. I'm able to do this for the "master" installer with the Installation type parameter and adding the InstallType dialog. I'd like for this option to automatically apply to the secondary installer as well. I figured this was best done through the "Install Command Lines" section and setting MsiRunningElevated property to the master installer's value, however it appears this property doesn't exist or is inaccessible. Is there any way to achieve this behavior?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Propagate install type to feature-based prerequisites?

Hi and welcome to Advanced Installer forums.

The installation type of a package is normally stored into the "ALLUSERS" property. So, if the feature-based prerequisite allows you to change its installation type, you can use the "ALLUSERS" property of the main package to change the install type of the prerequisite by sending it in the "Install Command Lines" fields (e.g. ALLUSERS=[ALLUSERS]).

Usually, this property needs to be set along with the "MSIINSTALLPERUSER" property. So, you can also send the "MSIINSTALLPERUSER" property through command line (e.g. MSIINSTALLPERUSER=[MSIINSTALLPERUSER]).

Let me know if this helped, otherwise give me more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”