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: changing value of string table identifier within the Installscript
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
‎Apr 22, 2009
08:06 PM
changing value of string table identifier within the Installscript
Is it possible to change the value of a string table identifier within the Installscript? I have an Installscript MSI project that creates two websites in IIS as well as virtual directories and application pools, and I would like for the user to be able to provide names for these during the installation. I thought I could set these up in the IDE using a variable name for the ID_STRING value and then substitute the user response for each through the script. So far no luck, and I don't want to spend any more time on it if it isn't possible.
I would greatly appreciate any insight.
I would greatly appreciate any insight.
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 23, 2009
02:11 AM
Try and use following for accessing property in install script.
MsiSetProperty(ISMSI_HANDLE, "MYPROPERTY", svName);
Sandip Deshmukh
________________
Software Developer
MsiSetProperty(ISMSI_HANDLE, "MYPROPERTY", svName);
Sandip Deshmukh
________________
Software Developer
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 07, 2019
10:32 PM
It only work with properties, not String Identifiers
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 23, 2009
07:53 AM
The following may help:
Using Windows Installer Properties to Dynamically Modify IIS Settings
Using Windows Installer Properties to Dynamically Modify IIS Settings
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 24, 2009
01:00 PM
Thanks, that is quite helpful. An additional question: is it possible to validate a user's port number response? i.e., ensure that the port number is not already assigned to another website in IIS?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 07, 2019
10:31 PM
You are able to read with the method LoadStringFromStringTable ("ID_STRING", svIdString);
equivalent to svIdString = @ID_STRING; //Not ANSI supported
unlike of
MsiGetProperty (hMSI, "YourProperty", svYourProperty, nvSize); that it is for read Property values.
But there is no way to set values into StringTable, I think it is due to the string names are converted to its value in compilation time (I am not sure at 100% of this)
equivalent to svIdString = @ID_STRING; //Not ANSI supported
unlike of
MsiGetProperty (hMSI, "YourProperty", svYourProperty, nvSize); that it is for read Property values.
But there is no way to set values into StringTable, I think it is due to the string names are converted to its value in compilation time (I am not sure at 100% of this)
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)