Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2007
    Posts
    452

    Grin vista registry help

    works on xp but not vista !!!

    Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\My App\\Users", "Username", ""..EncryptedUsername.."", REG_SZ);
    Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\My App\\Users", "Password", ""..EncryptedPassword.."", REG_SZ);
    Code:
    user = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\My App\\Users", "Username", true);
    pass = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\My App\\Users", "Password", true);
    how can i make it work in all os ?

  2. #2
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    1,546
    Why not just use
    Code:
    result = System.GetOSName();
    to determine the OS, then use an if/then statement to apply the appropriate regkey pathway?

    Of course, you'd need to know the correct regkey paths for each OS beforehand, but I'm sure some members here can give you the equivalent pathways for Vista, Windows-7, etc ...

    I use XP myself, so can't help out in that regard ... but I know there are one or two members here who run multiple virtual OS's, who could give that info.

  3. #3
    Join Date
    Oct 2009
    Location
    Merton, United Kingdom
    Posts
    684
    Well to access the registry on Vista you'll probably need to run the program as an Administrator..

  4. #4
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    1,546
    Quote Originally Posted by Sakuya View Post
    Well to access the registry on Vista you'll probably need to run the program as an Administrator..
    Really??? I don't use Vista so am on unfamiliar ground, but I find that surprising! I know Vista prevents file-write access to the system-drive without Administrator rights, but surely AMS can still access its registry, regardless???

    Can someone who uses Vista confirm Sakuya's assumption, please? I'd very much like to know this, myself.

  5. #5
    Join Date
    Oct 2009
    Location
    Merton, United Kingdom
    Posts
    684
    Well, That's why IndigoRose added System.GetUserInfo().IsVistaLimitedToken.

  6. #6
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    1,546
    Quote Originally Posted by Sakuya View Post
    Well, That's why IndigoRose added System.GetUserInfo().IsVistaLimitedToken.
    I hear you, Sakuya ... but wasn't that for the purpose of determining file-write access issues, rather than registry issues???

  7. #7
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by mystica View Post
    I hear you, Sakuya ... but wasn't that for the purpose of determining file-write access issues, rather than registry issues???
    Registry is classed also a system protected element in windows vista and windows 7 i have had access problem before with reg not using admin level
    so i always request admin levels now unless the program as no need to talk to the pc part from the main run.

  8. #8
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    1,546
    Ah, okay ... thanks for confirming that rexzooly.

    PS.
    In the meantime, can someone please bomb, blow-up, or otherwise destroy all copies of both Vista and Windows-7!
    Last edited by mystica; 10-19-2009 at 12:05 PM.

  9. #9
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by mystica View Post
    Ah, okay ... thanks for confirming that rexzooly.
    Not a problem, windows vista is a bank with a option to ender with right id, problem with this is if your low level and you still work at the bank it makes
    life harder lol.

    Windows 7 is littler better but still very up in your face.

    P.S

    I like 7 over all windows 0S's from ME up
    Last edited by rexzooly; 10-19-2009 at 12:08 PM.

Posting Permissions

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