This is the exact error message:
Krita.exe - System error
The program can't start because komain.dll is missing from your
computer. Try reinstalling the program to fix this problem.
This was from the extremely experimental installer that contains just Krita that was
last updated: 2012-04-23 15:31
Steps to Reproduce:
1. Install krita_unstable.msi
2. go to program files x86/ krita / bin / krita.exe
3. right click > properties > run program as administrator
4. launch program
Missing .dll error message
Windows 7 64bit Ultimate edition
Service pack 1
Intel core 2 duo E8600 3.33 GHz
AMD Radeon HD5870
Thanks for your report. Krita is behaving as expected - Krita on Windows relies on a number of shared libraries, including some provided by KDE on Windows.
The error message you are getting is because Krita\lib (where komain.dll is located) is not on your PATH, so Windows doesn't know it should look there for libraries. However, there a number of other environment variables we need to set for KDE to find plugins, which is why env.bat performs before launching the application. env.bat is designed to be run from the command line, which is useful for testing. As we do not want to cause problems with other KDE on Windows installations, we set up the environment the programs run in each time before launch.
To run Krita, you can use one of the provided shortcuts, or you can make a new shortcut to Krita\StartApp.vbs and in the shortcut properties, add "krita" as a parameter. This runs env.bat without a pop-up command-line window, which in turn launches the application.
May I ask why you are trying to run Krita with elevated privileges? This use-case is not expected or supported at present - whilst I was able to get it running, it caused new errors and behaviour.
We do have plans on simplifying the launch of the application in future.
so we should move the other dll's as well and fix the startup code. On the other hand, Krita shouldn't be run in admin mode. Confirming the bug.
Git commit 8c0ef32ac113db8af7e32d295d3bb4a92f44ca6d by Boudewijn Rempt.
Committed on 29/12/2012 at 11:54.
Pushed by rempt into branch 'master'.
Port the setting of env variables on windows to krita (from sketch)
This makes sure that krita can start, even without the .bat file, but
it shouldn't hamper using the .bat file in the shared calligra windows
M +40 -0 krita/main.cc