Hi,
In my Merge Module I need to look up a value in the registry which contains (among other things) a file path. I need to parse this value until I get the file path, and based on that I need to construct a new folder name.
Here's what I have done so far, based on this example: http://www.advancedinstaller.com/user-g ... older.html
1. Created a registry search and called it FM_OPEN_CMD. This is the property that contains the file path and that I need to parse.
2. Created a property called FM_EXT_FOLDER, with a value "Your Value". This value should be set by the VBS action.
3. Created a target location also called FM_EXT_FOLDER, pointing to the property FM_EXT_FOLDER
4. Added a script called "GetFMFolder" to the "AppSearch" action.
This line in the script reads the value of the registry search property:
fmCommand = Session.Property("FM_OPEN_CMD")
The script then parses that string and produces a new folder name. This line in the script sets that folder name to the property:
Session.Property("FM_EXT_FOLDER") = fmFolder
I have added some debug messages to my script, and it seems that the variable "fmCommand" is always empty. So the rest of my script does not work either since I'm not getting the correct input.
I have tried various other custom action events since I figured that the registry search had not yet been performed, but it is still always empty. What am I doing wrong?
Thanks
Mat
FOLLOW US
Get the latest news in Application Packaging