cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Ken_Hartlen
Level 4

ServiceInstall & ServiceStart failing in one VM environments

Hi all,

I have a new Basic MSI installer (version 2.Y) that uses the Install NT Services and Control NT Services to take care of configuring our service.

The service gets installed and started fine everywhere except in one of our VMWare ESX Server environments where the service does not get installed and started during installation. If I go back a to the previous 2.X release, that also uses the same mechanism for installing the service, it works fine. It also works fine in other ESX environments.

I ran the install the 2.X and 2.Y installs with verbose logging for comparison and discovered that there is no indication that the 2.Y install is even trying to install and start the service. I would have expected at least some kind of error in the logs.

Anyone have any idea why: a) what might be the cause of the service will not being installed on this one VM and b) why the ServiceInstall and ServiceStart info isn't being logged?

TIA

Ken
Labels (1)
0 Kudos
(4) Replies
tomerdr
Level 6

Ken,we just got the same problem,i almost sure it is beacuse the permission set for th VM user.

Same installation work fine on none VM machines.

Try to take alook at the event viewer.

also i move to use windows installer tables and only after that got some error message which helped me to figure out it was permission issue
0 Kudos
Ken_Hartlen
Level 4

tomerdr wrote:
Ken,we just got the same problem,i almost sure it is beacuse the permission set for th VM user.


Thanks. A permissions issue had also crossed my mind. I'll pass this info along to our VM gurus.

Ken
0 Kudos
Ken_Hartlen
Level 4

Hi all,

Turns out that the real problem was not a ServiceInstall or ServiceStart issue.

An updated third party DLL used by one of our EXEs in a Custom Action is causing the EXE to fail and start the roll back before the ServiceInstall and ServiceStart are even attempted.

The failure appears to be due to Side-By-Side errors causing our utility to actually crash and when I compared WinSxS directories of the VMs, there were omissions on the troublesome VM compared to other VMs that worked fine.

So, its something with our binaries.

Ken
0 Kudos
Christopher_Pai
Level 16

First I'd try to get rid of the EXE CustomAction. What does the CA do? Is it really needed, is there a better way to do it?

Languages like C++/InstallScript/C#(via DTF) can host CA code better to allow for improved error handling, communications, ectera. You might also be able to eliminate the dll dependency.

If none of that can be done, consider deploying the DLL as a setup prerequisite so that it's properly deployed to the SxS before your MSI starts. You should also write a corrosponding AppSearch/LaunchCondition to block the install if that isn't done. Remove the DLL from your main install since it's predeployed. Now when your EXE runs, it should work.
0 Kudos