microsoft / SCXcore

System Center Cross Platform Provider for Operations Manager
Microsoft Public License
36 stars 31 forks source link

Add force option in scx uninstall script #78

Closed vimish closed 7 years ago

vimish commented 7 years ago

@Microsoft/ostc-devs @lagalbra

Uninstall script should be used remove packages during upgrade failure recovery. Since scx and omi have to be forcibly removed, uninstall script is updated to accept force parameter. Also if uninstall script is not present then install check will not be performed before removing the scx and omi packages.

lagalbra commented 7 years ago

LGTM once Jeff approves.

vimish commented 7 years ago

@jeffaco

Made the change to use OMI's service control for start/stop OMI in uninstall script. Existing logic is now made a fallback code for the cases where service control script is not present.