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: Accessing Localized Strings and Preprocessor Defines through DTF
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
Nov 21, 2014
03:02 PM
Accessing Localized Strings and Preprocessor Defines through DTF
Hi,
I have my own custom action written in C# using DTF (http://blog.deploymentengineering.com/2008/05/deployment-tools-foundation-dtf-custom.html). I have two questions:
1) Is there a way to access the localized strings in the InstallShield String Editor from within my custom action? Obtaining a property looks like:
[CODE] strVar = session["INSTALLDIR"];[/CODE]
I was hoping i could acess a localized string by doing something similar:
[CODE]strVar = session["ID_MYSTRING"];[/CODE]
But this does not work.
2) Is there a way to access the Preprocessor Defines set in the Product Configuration (in InstallShield) in my custom action?
Thanks.
I have my own custom action written in C# using DTF (http://blog.deploymentengineering.com/2008/05/deployment-tools-foundation-dtf-custom.html). I have two questions:
1) Is there a way to access the localized strings in the InstallShield String Editor from within my custom action? Obtaining a property looks like:
[CODE] strVar = session["INSTALLDIR"];[/CODE]
I was hoping i could acess a localized string by doing something similar:
[CODE]strVar = session["ID_MYSTRING"];[/CODE]
But this does not work.
2) Is there a way to access the Preprocessor Defines set in the Product Configuration (in InstallShield) in my custom action?
Thanks.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 01, 2014
08:27 AM
For MSI-based projects, the localized strings are substituted into the tables of the MSI database, and optionally stored as transforms. What you're looking for is a Localizable Property, created in the Property Manager. You can then look up the property to get the localized value.
As for preprocessor defines, I don't believe so; perhaps the property ISReleaseFlags could give you what you need?
As for preprocessor defines, I don't believe so; perhaps the property ISReleaseFlags could give you what you need?
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)