Fog Creek Software
Discussion Board

Inability to run as a normal user on Windows NT

This sounds familiar.  We've seen similar issues, particularly with Windows 2000.  It's not clear to me whether every Windows developer is obligated to line up and pay Veritest some money to resolve this.
What was the cause in the CityDesk case?

Friday, November 9, 2001

(1) We were trying to register our extension (.CTY) on startup. In some systems non-admins do not have write permission on HKEY_CLASSES_ROOT in the registry. Solved by making this step fail silently.

(2) We kept our .INI file in the CityDesk installation directory. Non admins generally do not have write-permission on Program Files. Solved by moving all preferences into HKEY_CURRENT_USER\Software\... where it belongs.

(3) VB applications that are compiled as ActiveX EXE Servers get "Unexpected error; quitting" when running as non-admin. Fixed by changing to Standard EXE.

Joel Spolsky
Friday, November 9, 2001

*  Recent Topics

*  Fog Creek Home