Announcement

Collapse
No announcement yet.

WINDOWS OS LANGUAGE-VARIABLE

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • WINDOWS OS LANGUAGE-VARIABLE

    Hi,
    Is there a way to determine the Operation Systems language, and then store it in a variable.

    i need it to selectively display certain initial screens.

    if systemLanguage=English, store in in variable %syslangwin%

    use the %syslandwin% to evaluate the screen conditions.

    thanks
    daniel

  • #2
    Re: WINDOWS OS LANGUAGE-VARIABLE

    Hi,

    You can use the built-in variable %SysLanguage% this is from the Help File:

    %SysLanguage%
    The user's system language ID. A complete list of language IDs can be found in the "Langids.ini" file in the "Data" sub-directory of your Setup Factory 6.0 directory. This value determines which language file and which screens will be displayed during the setup. If your setup does not support the user's language, %SysLanguage% will be set to the ID of your default language as set on the Languages tab of the General Design dialog.

    mark.
    MSI Factory The Next Generation Intelligent Setup Builder

    Comment


    • #3
      Re: WINDOWS OS LANGUAGE-VARIABLE

      Hi Mark,

      I dont think i put my question properly.

      I have three radio buttons screen to start with. Each for a specific language, such as english, german and italian.

      Now depending upon the users windows language settings. The appropriate screen should be displayed.

      Suppose the client has german as his language on his computer, only the radio buttons screens with the german language should show up.

      i used succesfully the %Syslanguage% built in variable for evaluating the screen.

      I have a multi language setup. The first screen is where the user has to select the language. Instead of one i want to have three for each specific language, and this particular screen should show up depending upon the language settings of the users computer.

      thanks
      daniel

      Comment


      • #4
        Re: WINDOWS OS LANGUAGE-VARIABLE

        Hi,

        I'm still unsure as to what you are trying to do.

        If you add a German screen to your installation (Screen Manager, press the ADD button, and then Select German in the drop down on the top right) view it's properties and look at it's screen condition:

        %SysLanguage% = 7

        That screen condition means only display this screen if the users systems default language is German.

        If this does not answer your question please try to explain it to me again.

        It sounds like all you want to do is show screens in German on a German system, Italian on an Italian system, and English on an English system. If this is what you want to do, you could use the built-in screens with their built-in screen conditions.

        mark.
        MSI Factory The Next Generation Intelligent Setup Builder

        Comment


        • #5
          Re: WINDOWS OS LANGUAGE-VARIABLE

          Hi Mark,
          I tried allmost all the tricks that i can think of , but i am sure that the %SysLanguage% variable is exclusively defined and used by setup factory. It has nothing to do with the windows system language.

          I changed my input localed to germany, italy, etc., but still always only the english screen shows up.

          thanks
          daniel

          Comment


          • #6
            Re: WINDOWS OS LANGUAGE-VARIABLE

            Changing your input locale will have no effect on the setup. You need to change the System locale, which can only be done in Windows NT4/2000/XP.

            On Windows 2000/XP, the system locale is changed when you change the "Language settings for the system" setting on the General tab of the "Regional Options" control panel applet.

            One Windows 9x, the system locale cannot be changed.

            More information on localization is available at:
            http://www.microsoft.com/globaldev/FAQs/Locales.asp

            Here are a couple excerpts from that page:

            What is the User Locale?
            The user locale, implemented in Windows 9x, NT4 and Windows 2000, is a per user setting which determines the formats used by default to display dates, times, currency, and numbers, and the sorting order of text. A user locale is specified for each and every account created on a machine.
            Although available user locales are often listed as a language (sometimes in combination with a country), a user locale is NOT a language setting, and has nothing to do with input languages, keyboard layouts, codepages or user interface languages. The Hebrew user locale, for example, only contains data related to the standard regional settings of Israel, not to the Hebrew language.
            What is the System Locale?
            The system locale (sometimes referred to as the system default locale), determines which ANSI, OEM and MAC codepages and associated bitmap font files are used as defaults for the system. These codepages and fonts enable non-Unicode applications to run as they would on a system localized to the language of the system locale.
            ...
            The system locale is implemented in Windows 9x, NT4 and Windows 2000. (Under Windows 9x, the system locale is fixed based on the language version and cannot be changed. Under NT4, the system locale is pre-selected by the language version, but can later be modified in the Regional Settings Control Panel.)

            Windows 2000 supports system locales for any supported locale on all language versions. As the name 'system locale' implies, this is a system-wide setting that affects all users, and therefore requires administrator privileges to change.

            Changing the system locale requires a reboot. Note that only those system locales for which appropriate language groups have been installed will be available to choose from.
            --[[ Indigo Rose Software Developer ]]

            Comment


            • #7
              Re: WINDOWS OS LANGUAGE-VARIABLE

              Just thought I would clarify this option here because I was still confused even after reading the link to Microsoft.

              To change the system locale in Windows 2000:

              1. From Start menu, select Settings then Control Panel.
              2. Start Regional Options.
              3. Click on General tab which should already be displayed.
              4. Click on the button labeled Set default…
              5. Select the appropriate locale.
              6. Click on the button labeled OK.
              7. Click on the button labeled Apply. The system will prompt you to restart/reboot.


              ------------------
              wbrosche

              Comment

              Working...
              X