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
- :
- Set string variable from inside the script
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 03, 2013
08:10 AM
Set string variable from inside the script
I am trying to create an application directory in IIS. I can set up the website and app name in the designer. However, I want the user to specify the name of the Application and I have a custom dialog for this. When I try to set the string using @ID_STRING51 - which is the string that was created for the IIS app name - I get an error when I compile even though I'm using the correct syntax.
These are the errors I'm getting when I try this:
C8126, -4370, -7132, -6487
Any help with this would be greatly appreciated.
These are the errors I'm getting when I try this:
C8126, -4370, -7132, -6487
Any help with this would be greatly appreciated.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 03, 2013
02:27 PM
I found that if I reference a property in the string, then I can set the property and it will be populated in the string. Ex: {ID_STRING51} [IIS_APP_NAME]
Since IIS_APP_NAME is a property, it set's this to the string value. I am able to use MsiSetProperty command to populate the property.
Since IIS_APP_NAME is a property, it set's this to the string value. I am able to use MsiSetProperty command to populate the property.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)