PDA

View Full Version : Changing a string table entry value in Installscript



Dogbert
07-07-2004, 12:49 PM
I have a product that uses FindAllFiles() to search for a third-party program on a user's computer and installs a file "XYZ" to the directory in which that program is located.

When I created my project and added the XYZ component, I set the destination to the String table entry NEW_DIRECTORY_3.

FindAllFiles() is working correctly, but I am having trouble setting NEW_DIRECTORY_3 to the directory returned by FindAllFiles().

Is this even possible, and if so... how do I do it?

I learned it is not possible to assign something to a string table entry in Installscript.

example:
svMyString = @NEW_DIRECTORY_3

will compile but

@NEW_DIRECTORY_3 = svMyString

will NOT compile.



Thanks for any help, kind of an emergency :-/

RobertDickau
07-09-2004, 09:39 AM
I believe you can't change the value of a string-table entry, but you can use FeatureSetTarget to change the value of a variable you've used as a component destination...