I have the following registry searches, the 1st one fails on _some_ machines,
the 2nd works as expected.

                <Property Id="MY_EXISTING_TARGETDIR" Secure="yes">
                        <RegistrySearch Id="TargetDirSearch" Root="HKLM"
                                Key="Software\MyCompany\MyProduct" 
Name="ProgramPath" Type="directory"/>
                </Property>
                
                <Property Id="MY_EXISTING_VERSION" Secure="yes">
                        <RegistrySearch Id="VersionSearch" Root="HKLM"
                                Key="Software\MyCompany\MyProduct" 
Name="Version" Type="raw"/>
                </Property>

Nearly identical, except the 1st one uses Type="directory". So I'm wondering
why the 1st one fails.

This gets written to the log file during AppSearch:

Action start 10:14:18: AppSearch.
AppSearch: Property: MY_EXISTING_TARGETDIR, Signature: TargetDirSearch
AppSearch: Property: MY_EXISTING_VERSION, Signature: VersionSearch
MSI (c) (64:54) [10:14:18:288]: PROPERTY CHANGE: Adding MY_EXISTING_VERSION
property. Its value is '1.0.0.1'.

So "TargetDirSearch" was not able to retrieve the registry value
"ProgramPath". This wouldn't come at a big surprise if "ProgramPath" didn't
exist in the registry. 
But there is a hint in the log that "ProgramPath" actually existed, because
later in the log, there was a rollback where a value was written back to
"ProgramPath":

MSI (s) (4C:8C) [10:15:00:802]: Executing op:
RegAddValue(Name=ProgramPath,Value=C:\Programme\MyCompany\MyOldProgram,)

So any ideas, why the RegistrySearch with Type="directory" could fail,
though the registry value was there?

Best Regards



-- 
View this message in context: 
http://n2.nabble.com/RegistrySearch-fails-with-type%3D%22directory%22-tp1614664p1614664.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to