"Adding" is not overridding, it is creating.
That would suggest that there is no InstallDir value at 
HKLM\Software\Acme\Foobar 1.0
Do you have a 32-bit MSI and are trying to read a 64-bit registry location, per 
chance? Or vice versa?

> From: rob...@softdev.net
> To: wix-users@lists.sourceforge.net
> Date: Mon, 26 Aug 2013 06:31:51 +0000
> Subject: [WiX-users] RegistrySearch example in tutorial
> 
> I'm a novice user, going through Getting Started. I cannot get the 
> RegistrySearch to work, or FILEEXISTS - both from "Where to Install?" page in 
> your tutorial.
> 
> I suspect it is because this element:
> <Property Id="INSTALLDIR">
>   <RegistrySearch Id='AcmeFoobarRegistry' Type='raw' Root='HKLM' 
> Key='Software\Acme\Foobar 1.0' Name='InstallDir' />
> </Property>
> 
> is overridden by the subsequent
> 
>     <Directory Id='TARGETDIR' Name='SourceDir'>
>       <Directory Id='ProgramFilesFolder' Name='PFiles'>
>         <Directory Id='Acme' Name='Acme'>
>           <Directory Id='INSTALLDIR' Name='Foobar 1.0'>
> 
> Meaning that if the registry sets a directory outside of program files, then 
> it seems to not work because later in the wxs file it is contained within 
> ProgramFilesFolder. Logging reveals it is overridden:
> 
> MSI (c) (50:AC) [16:21:36:966]: PROPERTY CHANGE: Adding INSTALLDIR property. 
> Its value is 'C:\Program Files (x86)\... etc
> 
> I realise the file is not read sequentially.
> 
> Regards,
> Robert
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and 
> AppDynamics. Performance Central is your source for news, insights, 
> analysis and resources for efficient Application Performance Management. 
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
                                          
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to