Thanks for this, I'll give it a try. 

Is it possible to add a flag in the RegistryValue to say don't
write/create if value exists?
Probably too late for me, but I think it'll be a useful feature in the
future.


-----Original Message-----
From: p...@hoaske.dk [mailto:p...@hoaske.dk] 
Sent: 09 February 2009 13:09
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Registry Manipulation


Hi Brian,

what about something along the lines of:

<Property Id="MYREGKEYPROP" Value="YetNotSet">
<RegistrySearch Id="MYREGKEYSEARCH" Key="MyKey" Name="RegValueName"
Root="HKLM" Type="raw"/>
</Property>

<Component Id="CreateKeyComponent" Guid="" KeyPath="yes">
 <RegistryValue Id="WRITEREGVALUE" Action="write"  Key="MyKey"
Name="RegValueName" Root="HKLM" Type="string"
Value="NewValue"/>
<Condition>NOT (MYREGKEYPROP~="A-value" OR
MYREGKEYPROP~="YetNotSet")</Condition>
</Component>


Regards,

Hans

On Mon, February 9, 2009 12:19, Yu, Brian wrote:
> Is it possible for wix to search for existing registry value and if it
> exists or equal to a certain value, then leave the registry untouched
>
> But if it does not exist, then create?
>
>
>
> Is it a combination of using RegistrySearch and RegistryKey? How would
> it work?
>
>
>
> Brian Yu
>
>
>
>
> _____________________________________________________________________
> This e-mail was sent to you by EASYSCREEN LIMITED (EASYSCREEN). We are
> incorporated under the laws of England and Wales (company no. 05677531
and
> VAT registration no. 872810613). Our registered office is at 155
> Bishopsgate, London EC2M 3TQ. This e-mail and/or any attached
documents
> may contain privileged and confidential information and should only be
> read by those persons to whom this e-mail is addressed. Use by other
than
> intended recipients is prohibited. If you are not the addressee, you
must
> not copy, distribute, disclose or use any of the information in it. If
you
> have received it in error, please delete it and immediately notify the
> sender. EASYSCREEN reserves the right to monitor all e-mail messages
> passing through its network. As we cannot guarantee the genuineness,
> accuracy or completeness of the information contained in this message,
the
> statements set forth are not legally binding.
>
------------------------------------------------------------------------
------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and
code
> to
> build responsive, highly engaging applications that combine the power
of
> local
> resources and data with the reach of the web. Download the Adobe AIR
SDK
> and
> Ajax docs to start building applications
> today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



------------------------------------------------------------------------
------
Create and Deploy Rich Internet Apps outside the browser with
Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and
code to
build responsive, highly engaging applications that combine the power of
local
resources and data with the reach of the web. Download the Adobe AIR SDK
and
Ajax docs to start building applications
today-http://p.sf.net/sfu/adobe-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

_____________________________________________________________________
This e-mail was sent to you by EASYSCREEN LIMITED (EASYSCREEN). We are 
incorporated under the laws of England and Wales (company no. 05677531 and VAT 
registration no. 872810613). Our registered office is at 155 Bishopsgate, 
London EC2M 3TQ. This e-mail and/or any attached documents may contain 
privileged and confidential information and should only be read by those 
persons to whom this e-mail is addressed. Use by other than intended recipients 
is prohibited. If you are not the addressee, you must not copy, distribute, 
disclose or use any of the information in it. If you have received it in error, 
please delete it and immediately notify the sender. EASYSCREEN reserves the 
right to monitor all e-mail messages passing through its network. As we cannot 
guarantee the genuineness, accuracy or completeness of the information 
contained in this message, the statements set forth are not legally binding.

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to