PDA

View Full Version : Running NT service hangs uninstall



Riko Eksteen
11-18-2003, 08:09 AM
Hi

I am writing a basic msi setup that installs an NT service. I use the ServceInstall and ServiceControl tables. The service is installed and started fine on uninstall, as well as stopped and removed on uninstall.

If the service is running prior to uninstall, the installer sits for a minute doing nothing during the InstallValidate custom action.

If I stop the service before I run the uninstall, or condition InstallValidate not to run, the install doesn't wait but continues to the uninstallation of the service immediately.

I have looked at the uninstall log (relevant part included below), and there seems to be no difference between the service running and not running that I can determine (apart from the time lapse).

I think it has something to do with the fact that the exe is "in use" (running as a service), but I'm not sure.

PLEASE can somebody help me - I don't know what to do anymore.

Thanks
Riko

Action start 11:20:15: InstallValidate.
MSI (s) (14:90): Feature: Plugins; Installed: Local; Request: Absent; Action: Absent
MSI (s) (14:90): Feature: ProgramFiles; Installed: Local; Request: Absent; Action: Absent
MSI (s) (14:90): Feature: SystemFiles; Installed: Local; Request: Absent; Action: Absent
MSI (s) (14:90): Component: W2kPlugin_LogicalDisk.dll; Installed: Local; Request: Absent; Action: Absent
MSI (s) (14:90): Component: W2kPlugin_NTServices.dll; Installed: Local; Request: Absent; Action: Absent
MSI (s) (14:90): Component: MonAgentSvc.exe; Installed: Local; Request: Absent; Action: Absent
MSI (s) (14:90): Component: AgentCode.dll; Installed: Local; Request: Absent; Action: Absent
MSI (s) (14:90): Component: EventLogMessages.dll; Installed: Local; Request: Absent; Action: Null
MSI (s) (14:90): Component: __MonAgentSvc.exe65; Installed: Null; Request: Absent; Action: Absent
MSI (s) (14:90): Component: __MonAgentSvc.exe66; Installed: Null; Request: Absent; Action: Absent
MSI (s) (14:90): Note: 1: 2262 2: BindImage 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: ProgId 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: PublishComponent 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: SelfReg 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: Extension 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: Font 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: Shortcut 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: Class 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: MoveFile 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: Shortcut 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: DuplicateFile 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: ReserveCost 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: MsiFileHash 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: BindImage 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: ProgId 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: PublishComponent 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: SelfReg 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: Extension 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: Font 3: -2147287038
MSI (s) (14:90): Note: 1: 2262 2: Class 3: -2147287038
MSI (s) (14:90): Note: 1: 2727 2:
MSI (s) (14:90): Note: 1: 2727 2:
Action ended 11:21:22: InstallValidate. Return value 1.