
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comfort Software :: Foren :: Development | |||
|
|||
Programmatically start CKeyboard.exe |
| Autor | Eintrag |
| Michael Night |
| ||
![]() Dabei seit: Mon Oct 10 2011, 10:09AM Einträge: 2 | Hello, i'm testing Comfort On-Screen Keyboard for my company, if the software conforms our requirements. The software should be copied programmatically (Java) to every machine (win xp, win 7) without setup. This works so far. The second step is starting CKeyboard.exe programmatically, but it crashes on my Win7 machine: "The requested operation requires elevation" (but the files are saved on d:) Is the reason, that i'm testing the trialversion?
| ||
| Nach oben |
| Comfort |
| ||
![]() ![]() ![]() Dabei seit: Wed Sep 19 2007, 03:42PM Einträge: 617 | No, this is not depends on the trialversion. If you use Windows Vista or Windows 7, the program must be installed in the Program Files folder. It's a security-related requirement for these operating systems. Or try to launch the program with other method. Have a nice day | ||
| Nach oben |
| Michael Night |
| ||
![]() Dabei seit: Mon Oct 10 2011, 10:09AM Einträge: 2 | I have installed on Program Files, but it still doesn't work (even as administrator). | ||
| Nach oben |
| Comfort |
| ||
![]() ![]() ![]() Dabei seit: Wed Sep 19 2007, 03:42PM Einträge: 617 | Maybe it's better to try something simple:
Runtime.getRuntime().exec("\"C:/Program Files/ComfortKeyboard/CKeyboard.exe\"");
Have a nice day | ||
| Nach oben |
| Menico |
| ||
![]() Dabei seit: Thu Jan 12 2012, 04:47AM Einträge: 1 | Hi, the problem is the very restrictive way UAC acts like under Win7. The JVM always runs in a non elevated way and cannot execute priviledged actions. I've tried several methods to start the exe... 1. Runtime.getRuntime().exec(...); 2. ProcessBuilder 3. External "elevators" like PSExec. 4. With a manifest.mf file 5. Wrapperclass to run the jar-File priviledged. Nothing worked. But finally I've found a very convenient and easy way to start CKeyboard.exe with UAC activated (givven that the logged on windowsuser has read rigths on Ckeyboard.exe). @Comfort If you're interested in getting the sourcecode for the solution, please contact me via e-Mail or PM. @Michael Nigth If you are who I think you are, you already got my solution ![]() [ Bearbeitet Thu Jan 12 2012, 04:58AM ] | ||
| Nach oben |
| Moderatoren: Comfort |