Solved

Uninstall a service from within an MSI package

Posted on 2009-04-15
2
732 Views
Last Modified: 2013-11-14
I will be upgrading JRE using GPO to deploy.  However, due to problems with the JavaQuickStarterService, the installation hangs waiting for user input to stop it.  One solution is to uninstall it using the ServiceControlTable in the MSI (or in my custom MST) and this is what I'm trying to achieve.

The information provided on MSDN is sparse and complicated for the non-developer, but I've had a go anyway, but still can't understand what I need to do for the "component_" part of the table entry.  This is what I have so far in the ServiceControl table:

ServiceControl:   JavaQuickStarterService
Name:   JavaQuickStarterService
Event:   0x0008
Arguments:   <null>
Wait:   <null>
Component_:   <<< What do I need to do here? >>>

Many thanks,
Steve
0
Comment
Question by:sda100
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 500 total points
ID: 24153864
In the table Component, find the component holding the executable comprising the service; what's in the first column of that, specify in the column Component_ in ServiceControlTable .

Also look at the column Wait. If you tell it not to wait, and tell it to stop and uninstall the service by specifying event=10, then even if the service is waiting for user's input, Installer will probably proceed (but then probably will require restart).
0
 
LVL 9

Author Closing Comment

by:sda100
ID: 31570379
Thank you - I ended up just stopping the service rather than uninstalling it, but your ideas pointed me in the right direction ;)
0

Featured Post

Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question