This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- InstallScript: setting a merge module property at runtime
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 07, 2007
04:12 AM
InstallScript: setting a merge module property at runtime
Hello,
We are using an installscript project for installing our application.
I added a merge module in the project, but this merge module needs to be configured via a property.
When I added this merge module in the corresponding feature, an object "New Merge Module Holder Object 1" has been created, so I do not have a direct access in the script to the merge module (I tried with the GetObject in the script but I do not have access to the merge module contained in it...)
My Colleagues are using custom actions in their msi projects to configure this merge module, but in my installscript project I cannot add any custom action...
Is there a way to set this property at run time in an installscript project? What can I do for accessing this property at run time?
Thanks,
Cédric.
We are using an installscript project for installing our application.
I added a merge module in the project, but this merge module needs to be configured via a property.
When I added this merge module in the corresponding feature, an object "New Merge Module Holder Object 1" has been created, so I do not have a direct access in the script to the merge module (I tried with the GetObject in the script but I do not have access to the merge module contained in it...)
My Colleagues are using custom actions in their msi projects to configure this merge module, but in my installscript project I cannot add any custom action...
Is there a way to set this property at run time in an installscript project? What can I do for accessing this property at run time?
Thanks,
Cédric.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 10, 2007
12:57 AM
Can anyone help me plz?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 29, 2008
07:57 AM
Nobody can answer the question? The problem is still opened...
Thanks,
Cédric.
Thanks,
Cédric.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 07, 2019
11:35 AM
Have tried by yourself? Got any fix on the issue? I also need to change property at run time. Regards, Vasanth
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 10, 2019
09:11 AM
Hi @vasanthakumarmk ,
I would suggest you to use TextSubSetValue function.You might need to do the following to get it working:
- Create a property entry in Property table via Direct Editor->Property->New Property(Say ComboBoxProperty)->Value->False
- Associate this property with control you want to use
- In Script(Setup.rul) under whichever event you want to call say after "OnFirstUIAfter" try to set property value with string value since TextSubSetValue will work with string entries
E.g
string strPropertyValue,svValue;
strPropertyValue="false";
TextSubSetValue("<ComboBoxProperty>",strPropertyValue, TRUE )
If you want to validate whether it is been set properly or not,you can validate with TextSubGetValue function
E.gTextSubGetValue(("<ComboBoxProperty>",svValue,TRUE,FALSE) with messagebox.
I dont think so any other way might help you setting this other than this function.
Hope it helps,
Thanks,
Jenifer
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)