Control Service stop and delete not working

Got a problem you cannot solve? Try here.
Bjarne
Posts: 100
Joined: Mon Apr 07, 2008 2:38 am
Contact:

Control Service stop and delete not working

Post by Bjarne »

Hi!
I have a problem where "Control Service stop and delete" isn't working during the "Previous Version Uninstallation" phase.
The service(s) are neither stopped or deleted.

If I uninstall the package (no update) through the "normal" maintenance dialog (modify/repait/remove) the services are successfully both stopped and deleted.

Whats the difference between the two uninstallations?

I'm running IA9 R2 Moya.sp2.050510
bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Re: Control Service stop and delete not working

Post by bokkie »

Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
Bjarne
Posts: 100
Joined: Mon Apr 07, 2008 2:38 am
Contact:

Re: Control Service stop and delete not working

Post by Bjarne »

Nope.
Similar problem, but that concerned normal uninstall operation through maintenance dialog which is working fine in my scenario.

My problem is only during the "Prevous version uninstallation" phase when performing an update.
The service properties in IA is not changed in any way between the versions, only the installed binaries, which are updated.
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Control Service stop and delete not working

Post by mills »

Do you have the option checked to Wait for service state change completion?

I didn't get a chance to test it, but I'm wondering if it makes a difference whether the Control Service: stop and delete command is placed immediately before Apply Uninstall?
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
Bjarne
Posts: 100
Joined: Mon Apr 07, 2008 2:38 am
Contact:

Re: Control Service stop and delete not working

Post by Bjarne »

No, this option is not checked as I don't want any installer failures or hanging/freezing if the service action fails.
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Control Service stop and delete not working

Post by mills »

Did you try moving the command?
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
Bjarne
Posts: 100
Joined: Mon Apr 07, 2008 2:38 am
Contact:

Re: Control Service stop and delete not working

Post by Bjarne »

Nope, I didn't. Whats the difference between the the automatic uninstallation during "Previous Version Uninstallation" execution and the Uninstall option in the maintenance dialog?
Bjarne
Posts: 100
Joined: Mon Apr 07, 2008 2:38 am
Contact:

Re: Control Service stop and delete not working

Post by Bjarne »

Well, tried to move the command, but it didn't improve anything :(
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Control Service stop and delete not working

Post by mills »

Is the command being placed before Apply Install (even though you want it stopped and deleted at Uninstall)?

View the Help (F1 in IA) index: "Setup Commands Preceding Apply Uninstall"
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
Bjarne
Posts: 100
Joined: Mon Apr 07, 2008 2:38 am
Contact:

Re: Control Service stop and delete not working

Post by Bjarne »

Yes, it is.
The thing is that it works perfectly when installing the application, the service(s) are registered and started as expected.
If I uninstall the application by running the same installer again, thus invoking maintenance mode (Modify/Repair/Remove), and choosing "Remove", the services are also stopped and deleted from the system, this is also working perfectly.

The problem -only- occur when upgrading the same application and the installer goes through the prerequisite step "Previous Version Uninstallation".
During this step the services are -never- stopped or deleted.
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Control Service stop and delete not working

Post by mills »

I have verified this behavior.

Could you verify whether the service is being stopped, but not deleted? I ran the test on a service that doesn't run...
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
Bjarne
Posts: 100
Joined: Mon Apr 07, 2008 2:38 am
Contact:

Re: Control Service stop and delete not working

Post by Bjarne »

Hi!
The services are neither stopped or deleted.
I installed two services and started one of them manually after the installation.

I then updated the installer and ran it.
Both services were still there, one running, after the previous version installation step has finished.
Bjarne
Posts: 100
Joined: Mon Apr 07, 2008 2:38 am
Contact:

Re: Control Service stop and delete not working

Post by Bjarne »

FYI
I've upgraded to IA 9.1 SP3 and the problem is still not resolved.

Here's a snip from a previous post of mine (totally forgot that this problem occurred before in IA 9.0...)
http://www.installaware.com/forum/viewt ... 20&start=0
I have to compilations, Installation_A & Installation_B, of the exact same project both compiled with latest IA ( 9.0.6 Moya SP1 )

- I run Installation_A - The service is now installed and started successfully.

I now have two scenarios to choose from; I either uninstall Installation_A before upgrading ( run Installation_A installer again )
or run Installation_B directly, which automatically uninstalls Installation_A before installing Installation_B.

- If I run Installation_A again the maintenance mode is invoked. I choose Uninstall and the service is now stopped and deletes successfully.

- If I run Installation_B instead the "Uninstall previous version" is proposed.
I proceed and upgrade Installation_A, in this case the service is never stopped and deleted.
The problem was reported and also fixed in IA 9.0 and has now reoccurred in IA 9.x SPx in other words...
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Control Service stop and delete not working

Post by mills »

We are looking into this, but haven't been able to pinpoint the cause, yet.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Control Service stop and delete not working

Post by mills »

It looks like the Arguments field of the ServiceControl table of the msi files being produced by IA contain an invalid entry. Deleting the value fixes this. For now, you can edit the tables manually on an uncompressed install, but we should have a fix for this soon.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
Post Reply