Solved

Uninstall a service from within an MSI package

Posted on 2009-04-15
2
675 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
2 Comments
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 500 total points
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Among others, I monitor the Windows Installer zone and Installer zone. I find that many of the questions could be answered much more quickly if a Windows Installer verbose log were submitted with the question.   However, I do not always have t…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now