Hello,

I have the following code snippet:

    <Property Id="INSTALLDIR">
      <RegistrySearch
Id="PreviousInstallLocationRegistrySearch"
                      Root="HKCU" Key="SOFTWARE\My
Name\My App"
                      Name="InstallDir" Type="raw" />
    </Property>

This snippet should set the INSTALLDIR property to the
path where
the app is installed when uninstalling and do nothing
if the
app is being installed.
Writing the path to the registry during install works
perfectly.
Also, the given snippet works, but I wonder why.

If the app is already installed, RegistrySearch finds
something and
this is assigned to the property INSTALLDIR.
But what about the case when RegistrySearch returns
"nothing"?
According to the specification, has INSTALLDIR the
empty string
or is INSTALLDIR untouched?
I think this is not clear when I read the
specifications of the
Property and RegistrySearch elements.
In the description of the Property element, it is said
under "Value":
"Sets a default value for the property. The value will
be
overwritten if the Property is used for a search." -
what does
that mean?

Thanks in advance.

Regards

Sabrina Werscheid



        

        
                
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to