installation hangs up when writing information to Add/Remove Programs

Reply

Join Date: Jan 2007
Posts: 2
Reputation: edogan is an unknown quantity at this point 
Solved Threads: 0
edogan edogan is offline Offline
Newbie Poster

installation hangs up when writing information to Add/Remove Programs

 
0
  #1
Jan 29th, 2007
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?
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,171
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1439
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: installation hangs up when writing information to Add/Remove Programs

 
0
  #2
Jan 30th, 2007
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.
Last edited by Ancient Dragon; Jan 30th, 2007 at 5:49 am.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 2
Reputation: edogan is an unknown quantity at this point 
Solved Threads: 0
edogan edogan is offline Offline
Newbie Poster

Re: installation hangs up when writing information to Add/Remove Programs

 
0
  #3
Jan 30th, 2007
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC