Groups | Blog | Home
all groups > visual studio .net setup > september 2007 >

visual studio .net setup : Using Registry Search property a custom action argument ?



Sharon
9/18/2007 7:48:02 AM
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
[quoted text, click to view]
/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
Technolust
10/26/2007 8:44:13 PM

I tried to do the same thing with the registry search. I wanted to
check for the existence of a registry item, but ran across the
following when searching for a solution using online help:

http://msdn2.microsoft.com/en-us/library/4awx1f1d(VS.80).aspx

After item 4, a note reads:
"A registry search cannot verify that a registry key exists unless the
registry key contains a non-null value."






[quoted text, click to view]

Sharon
10/27/2007 12:38:00 AM
Yes, I have noticed that. this is why I did all the custom action in external
VB DLL.


--
Thanks
Sharon


[quoted text, click to view]
AddThis Social Bookmark Button