Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2004
    Posts
    5

    Huh? RegOwner not getting registered user back

    When I run my new 7.0 setup.exe that is created by Setup factory the Name and Company fields have word Micorosoft in them on the User Information window. If I try to display the user info it is null and the below gives me and error message. Can someone explan what the issue is here?

    name = System.GetUserInfo();
    name1 = (User.User);
    Dialog.TimedMessage("Please Wait", "User infromation is being logged for security purposes. You are logged as "..name1..".", 4000, MB_ICONINFORMATION);

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by JeanHarris View Post
    When I run my new 7.0 setup.exe that is created by Setup factory the Name and Company fields have word Micorosoft in them on the User Information window. If I try to display the user info it is null and the below gives me and error message. Can someone explan what the issue is here?
    That info is pulled from the RegisteredOwner information -- which is different than the user that is currently logged in.

    Quote Originally Posted by JeanHarris View Post
    Code:
    name = System.GetUserInfo();
    name1 = (User.User);
    Dialog.TimedMessage("Please Wait", "User infromation is being logged for security purposes. You are logged as "..name1..".", 4000, MB_ICONINFORMATION);
    Your code is flawed, specifically:
    Code:
    name = System.GetUserInfo();
    name1 = (User.User);
    There is no variable "User" defined yet -- so User cannot be indexed by .User.
    Furthermore, System.GetUserInfo() doesn't return a table wtih an element called .User so you're not going to get very far there.

    If you want the registered owner:
    Code:
    cRegOwner = System.GetUserInfo().RegOwner;
    If you want the currently logged in user:
    Code:
    cLoggedInUser = System.GetLANInfo().User


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    May 2004
    Posts
    5

    Cool

    Thanks,
    That help me figure out what was going on. My registry had the RegisteredOwner and RegisteredOrganization in two locations. The second had Microsoft set for both and that is what is being used. This is a new win 7 system...

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\ Windows NT\CurrentVersion\

  4. #4
    Join Date
    May 2004
    Posts
    5
    same behavior on my XP system too. With Setup factory 6.0 I did not have this problem.

  5. #5
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by JeanHarris View Post
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\ Windows NT\CurrentVersion\
    the wow6432node is the 32bit redirect on a 64bit os -- this is where any 32bit program would read from.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  6. #6
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by JeanHarris View Post
    same behavior on my XP system too. With Setup factory 6.0 I did not have this problem.
    Of coruse you would have the exact same problem -- User.User doesn't exist in suf6 either.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

Posting Permissions

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