DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C (http://www.daniweb.com/forums/forum118.html)
-   -   installation hangs up when writing information to Add/Remove Programs (http://www.daniweb.com/forums/thread68574.html)

edogan Jan 29th, 2007 9:03 am
installation hangs up when writing information to Add/Remove Programs
 
Hi to everyone,
I am using createProcess("setup.exe","",...) to launch an installation.
When I call this function from a "normal application program" everything works fine.
However, when I call same function from a service application, it hangs up when writing information to add remove programs.
Can you tell why this happens and how to fix it?

Ancient Dragon Jan 30th, 2007 5:47 am
Re: installation hangs up when writing information to Add/Remove Programs
 
check the login account of that service program -- it may not have permissions to do that. Also service programs do not have a console, so it might be waiting for someone to press the <Ok> button in a message box which can not be displayed.

I don't see the purpose of launching installation programs from a service program anyway. I know I would not want a service program automatically installing something on my computer without my explicit instructions to do so.

edogan Jan 30th, 2007 7:42 am
Re: installation hangs up when writing information to Add/Remove Programs
 
Thanks for your reply,

I have checked the login account of the service and discovered that when I changed the "log on as" information from "local system account" to "this account", everything worked fine.
However changing to "this account" option disables the "allow service to interact with desktop" option which I need to use.

Performing setup automatically is one option of the update service which I am working on. This is why I need that kind of information.


All times are GMT -4. The time now is 5:05 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC