Running toolkit on XP

Is running toolkit 3.6.4 on XP supported ?

I got error:

Desktop] value [PreferredUILanguages].
[06-16-2015 13:27:49.706] [Initialization] [Convert-RegistryPath] :: Return full
y qualified registry key path [Registry::HKEY_USERS\S-1-5-21-3867341295-44720584
-2279505957-500\Control Panel\Desktop\MuiCached].
[06-16-2015 13:27:49.706] [Initialization] [Get-RegistryKey] :: Registry key [Re
gistry::HKEY_USERS\S-1-5-21-3867341295-44720584-2279505957-500\Control Panel\Des
ktop\MuiCached] does not exist.
[06-16-2015 13:27:49.737] [Initialization] [Convert-RegistryPath] :: Return full
y qualified registry key path [Registry::HKEY_USERS\S-1-5-21-3867341295-44720584
-2279505957-500\Control Panel\International].
[06-16-2015 13:27:49.753] [Initialization] [Get-RegistryKey] :: Get registry key
[Registry::HKEY_USERS\S-1-5-21-3867341295-44720584-2279505957-500\Control Panel
\International] value [LocaleName].
[06-16-2015 13:27:49.768] [Initialization] [Convert-RegistryPath] :: Return full
y qualified registry key path [Registry::HKEY_USERS\S-1-5-21-3867341295-44720584
-2279505957-500\Control Panel\International].
[06-16-2015 13:27:49.784] [Initialization] [Get-RegistryKey] :: Get registry key
[Registry::HKEY_USERS\S-1-5-21-3867341295-44720584-2279505957-500\Control Panel
\International] value [Locale].
Write-Error : Module [C:\Test\PSAppDeployToolkit_v3.6.4_SK\AppDeployToolkit\App
DeployToolkitMain.ps1] failed to load:
Cannot convert value “0000041b” to type “System.Int32”. Error: “Input string wa
s not in a correct format.”

At C:\Test\PSAppDeployToolkit_v3.6.4_SK\AppDeployToolkit\AppDeployToolkitMain.p
s1:272 char:21

  •         [int32]$HKULocale <<<<  = Get-RegistryKey -Key 'HKCU\Control Pane
    

l\International’ -Value ‘Locale’ -SID $RunAsActiveUser.SID
At C:\Test\PSAppDeployToolkit_v3.6.4_SK\Deploy-Application.ps1:93 char:14

  •     Write-Error <<<<  -Message "Module [$moduleAppDeployToolkitMain] fail
    

ed to load: n$($.Exception.Message)n `n$($.InvocationInfo.PositionMessage)"
-ErrorAction ‘Continue’
+ CategoryInfo : NotSpecified: (:slight_smile: [Write-Error], WriteErrorExcep
tion
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
n,Microsoft.PowerShell.Commands.WriteErrorCommand

We are using Slovak windows XP
I tested previous version:
3.5.0 is working OK
3.6.0 working, but not recognize language
3.6.1 errors
3.6.3 errors

Can you help me, or I must rewrite Deployments scripts to 3.5.0 version?

Thx

Rudolf

Hi,

I solve my problem by changing Lines 270-281 to:

#  Read language for Win XP machines
		If (-not $HKULanguages) {
            #Rudo
            #[string]$HKULocale = Get-RegistryKey -Key 'HKCU\Control Panel\International' -Value 'Locale' -SID $RunAsActiveUser.SID
			[int32]$HKULocale = [Convert]::ToInt32((Get-RegistryKey -Key 'HKCU\Control Panel\International' -Value 'Locale' -SID $RunAsActiveUser.SID),16)
			If ([string]$HKULocale) {
				#Rudo
                #[int32]$HKULocale = '0x' + $HKULocale
                [string[]]$HKULanguages = ([Globalization.CultureInfo]($HKULocale)).Name
                
			}
		}

I will test it on other platforms.

Rudo

It looks like you implemented the fix from the 3.6.5 beta for this issue for anyone else having the same problem on XP.