Using Registry Search property a custom action argument ?

Giganews Newsgroups
Subject: Using Registry Search property a custom action argument ?
Posted by:  Sharon (SharonG@newsgroups.nospam)
Date: Tue, 18 Sep 2007

I'm using the VS2005 setup project.

I have added a registry search under the 'Launch Condition'' to read a
specific value.
In this registry search I set the property to REGISTRYVAL.

If the registry key is not found (not exist), then this REGISTRYVAL should
be an empty string, otherwise it will contain some directory path.

I want to use this REGISTRYVAL as an argument to a custom action I'm writing
using the VB.NET, so in the custom action CustomActionData a wrote:
/MatlabPath="[REGISTRYVAL]\"

But when I'm installing the generated MSI, I'm getting an error (something
strange of file not found...) caused by this argument (for sure it's because
of this argument).

I also tried  /MatlabPath="[REGISTRYVAL]"    and    /MatlabPath=[REGISTRYVAL]
But non works.
When I changed it to    /MatlabPath="XXX"    there in no error and it works
fine.

How should I use this REGISTRYVAL as an argument to my custom action so it
will work properly?

--
Thanks
Sharon

Replies