PDA

View Full Version : Accessing Localized Strings and Preprocessor Defines through DTF



numberofcode
11-21-2014, 04:02 PM
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:

strVar = session["INSTALLDIR"];
I was hoping i could acess a localized string by doing something similar:

strVar = session["ID_MYSTRING"];
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.

MichaelU
12-01-2014, 09: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?