Property Folder Can't Be Passed Into MSM Configurable - 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!

sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Property Folder Can't Be Passed Into MSM Configurable

I have a Property Folder in my parent MSI that is set when clicking on the NEXT> button in the CustomizeDlg. I set installer property INSTALLDIR from [APPDIR] (which is assigned to the install folder text box in the dialog).

I pass in INSTALLDIR to all three of our merge modules via the configurable "Folder" but when the merge mdoules install they install files in what appears to be the original, unmodified APPDIR property as originally defined by the parent MSI and the SET_APPDIR custom action.

Is what I'm trying to do not attainable? Is the merge module not picking up my INSTALLDIR property? Is the module merged in before runtime starts up and consequently it's using the original APPDIR?
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Property Folder Can't Be Passed Into MSM Configurable

Hi,

In order to set the merge module path to your INSTALLDIR property-based folder, you can go in the Merge Modules page, double-click on the merge module you added and in the newly appeared dialog click on the [...] button then select the folder you want from the list.

Then, for the new path to be correctly assigned to the INSTALLDIR property on the "CustomizeDlg" dialog, you should add a new "Verify and set the selected folder path" published event after the "Set installer property" event and write INSTALLDIR in the "Argument" text field.

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Property Folder Can't Be Passed Into MSM Configurable

Eusebiu,

I had most of that already implemented other than the "Verify and set the selected folder path" event. I will see what I can do to try it as I've compensated in my merge modules by moving all files to their own property based INSTALLDIR folder, which seems to work, other than all the extra CAs to make sure INSTALLDIR is properly set.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Property Folder Can't Be Passed Into MSM Configurable

Eusebiu,

I changed one of my 4 merge modules to not do all the CA stuff with an INSTALLDIR property and added the "Verify and set the selected folder path" to the parent MSI and initial testing seems to indicate it worked. I will roll it out to the other 3 merge modules and report back.

Thanks,
Scott
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Property Folder Can't Be Passed Into MSM Configurable

You're welcome. I'm glad you got this working.

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

Return to “Common Problems”