Re: [WiX-users] Conditionally installing components based on user's locale

2007-06-19 Thread Rob Mensching
You’ll need a CustomAction, but probably only the really simple Type 51 (e.g. 
Property set).  Take a look at SystemLanguageID property from the MSI SDK and 
you might condition your Type 51 CustomAction.

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Palmer
Sent: Tuesday, June 05, 2007 7:08 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Conditionally installing components based on user's locale

As part of my setup I would like to write certain registry values depending on 
the country setting of the OS.  E.g. for North American users I might set a 
registry value to 1, for European users the value would be set to 2.

Is there an easy way to do this without writing a custom action?
Failing that, is there a custom action that can be written easily?


Thanks,

Scott
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Conditionally installing components based on user's locale

2007-06-11 Thread Igor Maslov

Sorry,

I can't provide source of custom action, it's company property. You can use
combination of localle and time zone settings.  Of course user is free to
set it to anything. There is no guarantee. 

I wrote simple wix script in other post if it will be of any help.

Igor


 

Igor Maslov wrote:
> 
> I wrote custom action in a DLL which identifies country (specifically
> North America or Europe) and saves result in a WiX property (it uses MSI 
> API to store property into the table). Then I use this property in
> component conditions
> 
> 
> 
> Scott Palmer-3 wrote:
>> 
>> As part of my setup I would like to write certain registry values
>> depending
>> on the country setting of the OS.  E.g. for North American users I might
>> set
>> a registry value to 1, for European users the value would be set to 2.
>> 
>> Is there an easy way to do this without writing a custom action?
>> Failing that, is there a custom action that can be written easily?
>> 
>> 
>> Thanks,
>> 
>> Scott
>> 
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Conditionally-installing-components-based-on-user%27s-locale-tf3875424.html#a11071295
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Conditionally installing components based on user's locale

2007-06-11 Thread Igor Maslov


Actually,  I didn't even have to write custom action. Just some WiX script.
Something like this:







  . . . . 

  
 (SystemLanguageID=1033) OR
(SystemLanguageID=4105)
 
 NOT ((SystemLanguageID=1033) OR
(SystemLanguageID=4105))

Hope this will help.


Scott Palmer-3 wrote:
> 
> As part of my setup I would like to write certain registry values
> depending
> on the country setting of the OS.  E.g. for North American users I might
> set
> a registry value to 1, for European users the value would be set to 2.
> 
> Is there an easy way to do this without writing a custom action?
> Failing that, is there a custom action that can be written easily?
> 
> 
> Thanks,
> 
> Scott
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Conditionally-installing-components-based-on-user%27s-locale-tf3875424.html#a11064550
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Conditionally installing components based on user's locale

2007-06-08 Thread Igor Maslov

I wrote custom action in a DLL which identifies country (specifically North
America or Europe) and saves result in a WiX property (it uses MSI  API to
store property into the table). Then I use this property in component
conditions



Scott Palmer-3 wrote:
> 
> As part of my setup I would like to write certain registry values
> depending
> on the country setting of the OS.  E.g. for North American users I might
> set
> a registry value to 1, for European users the value would be set to 2.
> 
> Is there an easy way to do this without writing a custom action?
> Failing that, is there a custom action that can be written easily?
> 
> 
> Thanks,
> 
> Scott
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Conditionally-installing-components-based-on-user%27s-locale-tf3875424.html#a11030742
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Conditionally installing components based on user's locale

2007-06-05 Thread Scott Palmer

As part of my setup I would like to write certain registry values depending
on the country setting of the OS.  E.g. for North American users I might set
a registry value to 1, for European users the value would be set to 2.

Is there an easy way to do this without writing a custom action?
Failing that, is there a custom action that can be written easily?


Thanks,

Scott
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users