Welcome to MSDN Blogs Sign in | Join | Help

Remembering Calculator and Character Map Settings

Here’s an odd little one you might not have noticed.  The Windows Calculator applet remembers whether it was last displayed in “Standard” or “Scientific” view, and whether digit grouping was selected, and restores those settings the next time you use it.  Because this applet dates back to the very early days of Windows, it saves these settings in the win.ini file in the Windows folder.  There are two problems with this:  1) the settings apply to all users of the computer, and 2) you need to be an administrator to write your settings into this file.  Likewise, the Character Map applet remembers the last font and codepage selected, and whether “Advanced view” was checked – but only if the user is an admin.

 

The odd thing is that Windows NT and its successors have always had a mechanism to redirect .ini file access to the registry.  For some reason, this was never applied to calc.exe or charmap.exe.  But you can fix this.

 

Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

 

·        Run regedit.exe as an administrator

·        Browse to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\win.ini

·        To “fix” Calculator, create a new String value called SciCalc.  Set the data for this string value to
USR:Software\Microsoft\SciCalc

·        To “fix” Character Map, create a new String value called MSUCE.  Set the data for this string value to:
USR:Software\Microsoft\CharMap

·        Reboot the computer.  (Rebooting is required only if you have used Calculator or CharMap since the previous reboot.)

 

This will cause the applications’ settings to be written to the registry under HKEY_CURRENT_USER\Software\Microsoft\SciCalc and HKEY_CURRENT_USER\Software\Microsoft\CharMap, respectively.  The application settings are now per-user, and admin is no longer required to save settings!

 

Thanks to Michael Entin for the CharMap fix.

Published Wednesday, February 09, 2005 11:57 PM by Aaron Margosis
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Remembering Calculator and Character Map Settings

Sunday, February 27, 2005 2:57 PM by Stefan Kanthak
Hmm...
There is already an (apparently unused) entry for "MS CharMap" in Windows 2000 and XP. Will this be removed?
Other "applets" installed with Windows have their entries below HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\. Shouldn't this be the place for SciCalc and CharMap`too?

# More Great Non-Admin Resources

Tuesday, March 01, 2005 10:23 PM by Geek Noise

# re: Remembering Calculator and Character Map Settings

Monday, March 07, 2005 12:17 AM by Aaron Margosis
No idea about whether the apparently unused entry will be removed. As far as whether HKCU\...\Applets\ would be the proper place for SciCalc and CharMap - my guess is simply that these applets go back to Windows 3.0 and probably earlier, when win.ini was where the settings were stored. It was *probably* considered not worth the risk/effort to touch that portion of the code for those and many other apps/applets, particularly when the IniFileMapping mechanism was available.

# Tools 2 Use - Do You LUA?

Sunday, April 10, 2005 12:58 PM by tonyso
If you have not read Jen's article on LUA, you should be asking yourself why not?

This article...

# Table of contents, Aaron Margosis' non-admin blog

Monday, April 18, 2005 8:22 PM by Aaron Margosis' WebLog
Complete list of Aaron Margosis' non-admin / least privilege posts, for easy lookup.

# Spread the LUA joy

Friday, June 10, 2005 12:12 PM by tonyso
Get your friends and family, all those folks that come to you for computer help once their machines have...

# re: Remembering Calculator and Character Map Settings

Friday, September 30, 2005 9:04 AM by Googie
Thanks for tip dude...
very helpful

Wish I had admin privileges on my comp :(

# re: Remembering Calculator and Character Map Settings

Saturday, February 04, 2006 11:09 PM by Mitchell
Does anybody know where i can download the microsoft character map and calculator from? mine are missing.

# re: Remembering Calculator and Character Map Settings

Saturday, February 04, 2006 11:24 PM by Aaron Margosis
Mitchell: they aren't downloadable - they are part of the OS. I don't think you can even not install them or uninstall them using the Add/Remove Programs UI (you can probably choose not to install them if you use a customized unattended installation script). Are the Start menu shortcuts missing, or the actual executables? You should find both charmap.exe and calc.exe in %windir%\system32. Character Map is in the Accessories \ System Tools submenu of the Start menu; Calculator should be in Accessories.

HTH

# Fixing "LUA bugs", Part I

Thursday, February 16, 2006 3:49 AM by Aaron Margosis' WebLog
A systematic approach for working around LUA bugs that avoids unnecessary exposure

# re: Remembering Calculator and Character Map Settings

Monday, March 13, 2006 7:55 PM by Tyler
Uhhh yea mine are missing too. I think it might of happened when I uninstalled the IE 7 program. I found the new calculator software luckily but not the char map.

# re: Remembering Calculator and Character Map Settings

Monday, May 01, 2006 6:13 AM by Mike
Aaron, you can remove the calculator and other 'built-in' apps from the add/remove programs ui quite easily.

Have a look at http://www.winguides.com/registry/display.php/1261/ for more info.

# re: Remembering Calculator and Character Map Settings

Thursday, May 31, 2007 2:16 PM by Pete

Any chance MS could create a Help & Support article for this article as it always takes me half an hour to find it every time I run in to the problem again.

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker