Page 1 of 2 12 LastLast
Results 1 to 5 of 7

Thread: How to know the regionnal settings of user ?!

  1. #1
    Join Date
    Jul 2006
    Location
    Belgium namur
    Posts
    188

    How to know the regionnal settings of user ?!

    Hi everybody,

    I have a setup project made with installshield 11.5 windows and i d like to know if there is possible to know WHEN I REMOVE THE PROGRAM to know the regionnal settings of the users !?

    i think it will be possible by script ?!
    have tou got any sample ?!


    Thanks to all
    Christophe

  2. #2
    Join Date
    Oct 2001
    Location
    Here and there
    Posts
    16,233
    What type of project? What regional settings do you want to retrieve? With MSI, for example, there are UserLanguageID, SystemLanguageID, and ProductLanguage properties that might be of use.
    Robert Dickau - This and That - Flexera Software

    Want help? See Windows Installer white papers, training courses, newsletters, HelpNet, forum search, Knowledge Base, ...
    Want more help?
    See our InstallTalk blog.
    Want even more help? See our relatively new Advanced Windows Installer (MSI) training course.

  3. #3
    Join Date
    Jul 2006
    Location
    Belgium namur
    Posts
    188
    Hi robert,

    thanks you for your reply !

    i've retrieve the language regionnal settings with script !
    my project is a basic msi !

    here is it my code :
    Code:
    NumToStr( szLang, LOWORD( SYSINFO.nUserLangID ) );
    //szLang contains => 1033, 1040 or it all depends on language
                
             /** SWITCH FOR TO HAVE THE LANGUAGE **/
                
             switch (szLang)
                
                //English
            	case "1033": 
                	szMsg = "Please close the program before removing.";
                 
                 //french
                 ..............
    I must to do that because when a user remove one of our product the user must be close the program before to remove the product !

    thanks you for your information, for your time and so on !

    Great product installshield but too big to learn all possibility !!!
    Christophe

  4. #4
    Join Date
    Oct 2001
    Location
    Here and there
    Posts
    16,233
    As an aside, could you use a string-table entry (which automatically resolves according to language) instead of a switch statement with multiple hard-coded strings?
    Robert Dickau - This and That - Flexera Software

    Want help? See Windows Installer white papers, training courses, newsletters, HelpNet, forum search, Knowledge Base, ...
    Want more help?
    See our InstallTalk blog.
    Want even more help? See our relatively new Advanced Windows Installer (MSI) training course.

  5. #5
    Join Date
    Jul 2006
    Location
    Belgium namur
    Posts
    188
    Hi robert,

    Yes but is this possible for my problem !

    i must to displays a warning message when someone try to remove one of our products !?

    I've search a little perhpas :-) but in help i've find the fonction (SYSINFO.nUserLangID) and i think to do my action with this function will be the right think !

    I'm a true beginner with IS !
    have you good any solution ?!

    Thanks in advvnce
    Christophe

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •