locked
Deploy Registry values RRS feed

  • Question

  • We are rolling out Outlook 2010.  I need to install some Outlook icons to Outlook 2003 so that emails in 2010 using new icons can be opened in 2010.  I have found that these icons may be installed with registry settings.  However, the .cfg files have to be saved under the local profile.  Is there a variable I can use for the local profile, i.e., %USERPROFILE%?  One of the exported keys is: 

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\cfg]
    "b"="C:\\Documents and Settings\\%username%\\Local Settings\\Application Data\\iOutlook\\Config\\NrtFormEmailQueued.cfg" where %username% points to the local profile directory. 

    How can I get this .reg setting to point to the logged in user's profile?

    Thank you.

     

    Friday, January 20, 2012 5:02 AM

Answers

  • I fouind I could use the REG ADD command in a batch file which recognizes the %USERPROFILE% variable as mentioned above.  Parameters are HKCU path /v NameofKey /t TypeofKey /d KeyData /f (overwrite existing without prompting).
    • Edited by orlandp Sunday, January 22, 2012 6:26 PM
    • Marked as answer by orlandp Sunday, January 22, 2012 6:26 PM
    Sunday, January 22, 2012 6:25 PM

All replies