944,192 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1923
  • C RSS
Jan 29th, 2007
0

installation hangs up when writing information to Add/Remove Programs

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
edogan is offline Offline
2 posts
since Jan 2007
Jan 30th, 2007
0

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.
Last edited by Ancient Dragon; Jan 30th, 2007 at 5:49 am.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2283
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,963 posts
since Aug 2005
Jan 30th, 2007
0

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
edogan is offline Offline
2 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Cryptography In C
Next Thread in C Forum Timeline: Mangled Names





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC