Link to home
Start Free TrialLog in
Avatar of sda100
sda100Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Uninstall a service from within an MSI package

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
ASKER CERTIFIED SOLUTION
Avatar of Vadim Rapp
Vadim Rapp
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sda100

ASKER

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