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
- :
- Re: MSISetProperty vs TextSubSetValue
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
‎Jul 31, 2008
10:49 AM
MSISetProperty vs TextSubSetValue
OK, I admit. I'm a little behind on the learning curve. Can someone explain to me the difference between using MSISetProperty and TextSubSetValue within an InstallScript MSI project. Are there advantages to one over the other? Disadvantages?
The specific example where I'm trying to use these is to set the web site name, web site port and web site number dynamically prior to installing my web site.
Also, when is the appropriate time to use these functions.
I'm currently using InstallShield 2008 but will be updating to 2009 later today.
The specific example where I'm trying to use these is to set the web site name, web site port and web site number dynamically prior to installing my web site.
Also, when is the appropriate time to use these functions.
I'm currently using InstallShield 2008 but will be updating to 2009 later today.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 31, 2008
11:24 AM
For something like website names, ports, etc. you should work with MSI properties in an InstallScript MSI project. This project type is basically a Windows Installer package with the InstallScript engine driving the user interface and kicking off the MSI installation. That being the case, all the MSI functionality for features like IIS is used instead of the InstallScript functionality. Attempting to use text subs won't work as expected for something like IIS (unless you were working with a pure InstallScript project).
You can call MsiSetProperty from any point in the installation prior to the caExtractIISSuppFiles action that runs in the execute sequence. This would include the OnBegin and OnFirstUIBefore events, or a custom action sequenced in the execute sequence before caExtractIISSuppFiles.
Note that you will want to apply the hotfix provided in KB Q200163 to ensure all websites and virtual directories using properties for their names get installed.
You can call MsiSetProperty from any point in the installation prior to the caExtractIISSuppFiles action that runs in the execute sequence. This would include the OnBegin and OnFirstUIBefore events, or a custom action sequenced in the execute sequence before caExtractIISSuppFiles.
Note that you will want to apply the hotfix provided in KB Q200163 to ensure all websites and virtual directories using properties for their names get installed.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 31, 2008
11:29 AM
Thanks for the info and especially the heads up on the hotfix. I'm sure I would have been banging my head for a bit on that one.