If a Component condition has already been evaluated it will not be evaluated 
again (like in repair) unless the Component is marked Transitive.

-----Original Message-----
From: Tony Juricic [mailto:tjuri...@tradestation.com] 
Sent: Monday, February 09, 2009 11:54
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Registry Manipulation

I'll give it a try again as I am obviously missing something. I am
specifically referring to reinstall where REINSTALLMODE has option u
meaning:

Rewrite all required registry entries from the Registry Table that go to
the
HKEY_CURRENT_USER
or 
HKEY_USERS
registry hive.

You are saying that, if I condition the component out, this above won't
apply to that particular Registry entry/component?

-----Original Message-----
From: Rob Mensching [mailto:rob.mensch...@microsoft.com] 
Sent: Monday, February 09, 2009 12:15 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Registry Manipulation

If you condition out a Component then nothing in that Component should
be installed/uninstalled/repaired.

-----Original Message-----
From: Tony Juricic [mailto:tjuri...@tradestation.com] 
Sent: Monday, February 09, 2009 08:36
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Registry Manipulation

Would this really work? I ask because I have never managed to get
conditions to work for Registry components. In my experience Registry is
handled in bulk. All the components (i.e. Registry keys and values)
either get created/written or no.

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

Hi Brian,

after doing the RegistrySearch the property "MYREGKEYPROP" will be
assigned the value if the key exists. If the key doesn't exist, the
property "MYREGKEYPROP" will be assigned the default value "YetNotSet".

You can use that fact in the condition for the component that
writes/creates the key as explained:

Component Id="CreateKeyComponent" Guid="" KeyPath="yes">
<RegistryValue Id="WRITEREGVALUE" Action="write" 
Key="SOFTWARE\SomeThing\MyKey"
 Name="RegValueName" Root="HKLM" Type="string"
 Value="NewValue"/>
 <Condition>MYREGKEYPROP~="YetNotSet"</Condition>
</Component>

It should now create the key if the Registry value was not found (Which
means "MYREGKEYPROP" was assigned the default value "YetNotSet".


Kind regards,

Hans



On Mon, February 9, 2009 14:33, Yu, Brian wrote:
> 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
>





------------------------------------------------------------------------
------
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


------------------------------------------------------------------------------
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