» An ultimate catalog of computer data
Forum posts for userinit.exe
Qt: QProcess unable to run userinit.exe
I'm developing an application that replaces the explorer as the Windows shell. I haven't yet been able to get a Qt program that can successfully edit the Shell registry value, but in the interest of only asking one question per post, I'll just say that whenever I try to run the Windows program 'userinit.exe' via QProcess, nothing happens. If I run userinit.exe directly from the command line, the shell (in this case let's say it's still explorer.exe) is relaunched successfully.
QProcess* userinit = new QProcess;
userinit->start('C:/Windows/System32/userinit.exe',QStringList());
The errorString it gives back is 'unknown error.' The end goal of this is to start the machine with a custom shell, say 'launcher.exe,' and then change the shell back to explorer.exe and run userinit to get the entire desktop (with the start menu and taskbar) back. As I mentioned, trying to change the registry fails, but I'll focus on why userinit doesn't run for now. This happens even if I right-click>run as administrator the program, so I don't know if it's a permissions issue or not.
View complete forum thread with replies
Other posts related to userinit.exe
See Related Forum Messages: Follow the Links Below to View Complete Thread
Qt: QProcess unable to run userinit.exe
Userinit-Key: execute my own application