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

How To Get Merge Module's Version Into A Global Property?

I only see access to [ProductVersion] within the MSM. Is there anyway to set a property to "Module Version" either within the MSM or in the parent MSI containing the MSM?
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How To Get Merge Module's Version Into A Global Property

Hello,

You need to do your own custom action. You can use a custom action written in C# or a custom action written in C++.

You can see in the Table Editor page, in the "ModuleSignature" the saving structure for the MergeModule Version.
You will have a custom action which will take from the ModuleSignature table the ModuleID and the Language as a unique identifier for the "Version" and set to a property. Set the “Property Name” to an appropriate name, let's say: “MODULE_VERSION”. You will use this Property Name in your code because this Property holds the version of your Merge Module.

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

Re: How To Get Merge Module's Version Into A Global Property

Yeah I had a feeling that might be the answer.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.

Return to “Common Problems”