- Vista CoInstaller CreateProcess Help
- Posted by Jerome on December 16th, 2005
On Vista, I have a CoInstaller that calls CreateProcess to start an
application. I call CreateProcess and I get returned TRUE. I then do a
WaitForSingleObject with an INFINITE argument on the thread for completion.
But the app never starts so I get stuck in a loop because I never get
returned back. The ODD thing is under WinXP, this CoInstaller in using
CreateProcess, this works perfectly. Has something changed in Vista regarding
CoInstallers?
- Posted by Ivan Brugiolo [MSFT] on December 16th, 2005
Which process is the CoInstaller being executed into ?
In Vista session-0 is isolated and non-interactive by-default.
Myabe the process is happily running in session-0
where nobody can see it.
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Jerome" <Jerome@discussions.microsoft.com> wrote in message
news:45C48714-6811-4EA7-BBF3-7D8A5A643361@microsoft.com...
- Posted by Don Burn on December 16th, 2005
Yes things have changed, driver install and system services run in their own
session. Take a look at
http://www.microsoft.com/whdc/system.../services.mspx
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply
"Jerome" <Jerome@discussions.microsoft.com> wrote in message
news:45C48714-6811-4EA7-BBF3-7D8A5A643361@microsoft.com...
- Posted by Pavel A. on December 16th, 2005
If your process is interactive, it will not work on Vista because
no interactive stuff can run in session 0.
Instead, in Vista you schedule a final step of the setup wizard that
runs in interactive user context. Move running your process to that
step. Details are somewhere in Vista articles on microsoft.com/whdc
--PA
"Jerome" wrote:
- Posted by Jerome on December 17th, 2005
Thanks all for the Reply. I very much appreciate the great help.
I looked at the document at
http://www.microsoft.com/whdc/driver...h_Install.mspx.
It talks about using the DIF_FINISHINSTALL_ACTION (DIF) code and the
DI_FLAGSEX_FINISHINSTALL_ACTION flag. Which DDK contains the correct
setupapi.h file?
"Pavel A." wrote:
- Posted by Pavel A. on December 18th, 2005
"Jerome" wrote:
the LH beta WDK.
--PA