Create Configurable Merge Module
Posted 11 August 2003 - 16:08
I have created a configurable Merge Module for installing a service. The configurable parameters are a username and password for setting the identity under which the service must run.
I added two entries to the ModuleConfiguration table:
I added two entries to the ModuleSubstitution table:
The properties should get filled this way, and these propertiesI use to fill customactiondata in order to be able to use them in my custom action vbscript. Other properties in my customactiondata are available but not the accountname and password, so what am I doing wrong here?
Thanks in advance,
Posted 12 August 2003 - 12:04
Posted 12 August 2003 - 14:06
Making them global was not the solution, but you put me on the right track. When I was in the Property Manager doing your suggestion, I also changed the value colum, from nothing to a random value. This did the trick. Now the value got substituted.
Last issue now is to fill the configurable item with a dynamic value (another property?) that comes from a dialog. I have read that it is not possible to reference another property in a property value, so this can become complicated. Anyone a suggestion?
Posted 12 August 2003 - 19:59
Posted 12 August 2003 - 21:01
Thanks for your reply. I do not understand completely where I would insert your proposed custom action type 51. In the merge module or in the overall installer (MSI)?
My current scenario is as follows:
- On a dialog I have an edit field (textbox), which has a property attribute set to, let's say "DlgAccountName"
- I configure my merge module with parameter "CfgMMAccountName" set to value [DlgAccountName]. For this reason I have an entry in the ModuleConfiguration table.
- In my configurable Merge Module I have an entry in the ModuleSubstitution table so that property "MMAccountName" will get the substitued value of "CfgMMAcountName"
- The property MMAccountName will be transferred into CustomActionData with a CA type 51, just before my deferred CA.
When I use ORCA to see how the overall (compiled) installer has it's properties set after the merging has taken place, I see in the property table that MMAccountName has the following string value: "[DlgAccountName]". Unfortunatly this way of using properties is not allowed, because of circular reference problems.
Maybe you can help me by pointing at the place where I must put your suggestion.
Thanks in advance,