Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2007
    Posts
    6

    Grin Help with Regkeys

    I'm trying to put some info in a regkey from the users input on the users information screen.

    Registry.CreateKey(HKEY_LOCAL_MACHINE, "Software\\MyApp");
    Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\MyApp", "UserName", "%UserName%", REG_SZ);
    It creates the key "MyApp" and the value "UserName", but it sets the value of "UserName" to "%UserName%". It's not grabbing the value from the session variable.

    The session variable for "UserName" is %UserName%.

    I know it will have to be something simple, but...

  2. #2
    Join Date
    Sep 2007
    Posts
    6
    Never mind, I should have searched the forum before asking...

    Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\MyApp", "Username", SessionVar.Expand("%UserName%"), REG_SZ);

Similar Threads

  1. Help With Installer (RegKeys)
    By PROPHET07 in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 05-03-2007, 11:55 AM

Posting Permissions

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