Quantcast
Channel: Indigo Rose Software Forums - Forums
Viewing all articles
Browse latest Browse all 2105

Code does not work: Pre-select a check box/Package (depending on language)

$
0
0
Hi!

I am trying to pre-select a check box after the OS language has been determined. Detecting the language works, but not selecting the required check box

Here is my code, which I put in the "On Preload" of the check box screen:

Code:

-- Retrieve the system's default language ID's
tLangID = System.GetDefaultLangID();

-- Check if default primary language is English (9)
if tLangID.Primary == 9 then
    SetupData.SetPackageProperties("Package03", {Install=true});

-- otherwise default
else
    SetupData.SetPackageProperties("Package02", {Install=true});
end

Any ideas why it does not work? Thank you in advance!

Viewing all articles
Browse latest Browse all 2105

Trending Articles