Yes, I have noticed that. this is why I did all the custom action in external
"Technolust" wrote:
>
> 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."
>
>
>
>
>
>
> On Sep 18, 7:48 am, Sharon <Shar...@newsgroups.nospam> wrote:
> > 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
>
>