cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
numberofcode
Level 3

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.
Labels (1)
0 Kudos
(1) Reply
MichaelU
Level 12 Flexeran
Level 12 Flexeran

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?
0 Kudos