?
Solved

Uninstall a service from within an MSI package

Posted on 2009-04-15
2
Medium Priority
?
736 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 2000 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

752 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