Do both searches then use SetProperty conditioned by the ALLUSERS to set
another Property to the final value.

On Mon, Aug 13, 2012 at 2:47 AM, Huang, Deqing <deqing.hu...@intel.com>wrote:

> Hi All,
>
> My program will be installed to a path in registry, which has two
> different values for single user and all users.
> So I'd like to have something like:
> <Property Id="MYINSTALLDIR">
>     if single user, then <RegistrySearch Id='MyRegistry' Type='raw'
> Root='HKCU' Key='Software\MyApp\Foo' Name='InstallDir' />
>     else if ALLUSERS, then <RegistrySearch Id='MyRegistry' Type='raw'
> Root='HKLM' Key='Software\MyApp\Foo' Name='InstallDir' />
> </Property>
>
> Christopher in stackoverflow told me to use SetProperty custom action to
> assign different properties. But I'm still not sure how to write such a
> custom action.
>
> Could anyone shed some light?
>
> Thanks in advance.
>
> Regards,
> Deqing
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
virtually,

   Rob Mensching
   http://RobMensching.com LLC
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to