I was having problems running KotOR I on a Vista 64-bit with a NVidia driver...
I installed under SP2 as admin, replaced the mss32.dll file, then made a shortcut to the exe. then I added that line to the swkotor.ini file, then edited OpenGL options with Nhancer software. Then I finally saw this and completed Part II and III of the solution above... Finally, now, the game appears to be working. I am eternally grateful with many thanks! When time gives me the opportunity I shall attempt to play through the whole game.