Actually, I didn't even have to write custom action. Just some WiX script.
Something like this:
<Property Id="IsNorthAmerica" Value = "1">
<CustomAction Id='SetNorthAmerica' Property=IsNorthAmericaValue='1'/>
<CustomAction Id='SetNotNorthAmerica' Property='IsNorthAmerica'
Value='0'/>
<InstallExecuteSequence>
. . . .
<Custom Action='SetNorthAmerica' Before='MyAction'>
(SystemLanguageID=1033) OR
(SystemLanguageID=4105)</Custom>
<Custom Action='SetNotNorthAmerica' Before='MyAction'>
NOT ((SystemLanguageID=1033) OR
(SystemLanguageID=4105))</Custom>
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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users