Hi:

 

I have an installer (built with WIX v. 2.0.2912.0) that has been working on 
Windows 2003 Server, but on Windows 2008 Server it fails during uninstall.  The 
point where it fails is when it tries to connect to SQL Server.  The error is 
"SQL Server does not exist or access denied."

 

What happens is the SQL Server service gets shut down, so the attempt to 
connect fails.  I watched services manager during an uninstall, and it shows 
SQL Server service shutting down sometime before the uninstall gets to the 
point where it needs to connect to SQL Server.

 

I don't see anything that should cause this service to stop - there is a 
StopServices action in InstallExecuteSequence, but in ServiceControl table 
there is only the service we install and MSMQServiceControl.

 

In our environment we use CAs to work with the database, including installing 
and uninstalling.  Here's an excerpt from the verbose log, showing the failure 
coming from InstallFinalize, immediately after the call to the CA:

MSI (s) (3C:60) [14:18:06:731]: Executing op: ActionStart(Name=ATDropDB,,)
Action 14:18:06: ATDropDB. 
MSI (s) (3C:60) [14:18:06:731]: Executing op: 
CustomActionSchedule(Action=ATDropDB,ActionType=9222,Source=Function 
CheckForNgDiagDB_Status()

...(a few lines of CA source code)
Action ended 14:18:38: InstallFinalize. Return value 3.

 

Is there a behavior change with Windows Server 2008 that breaks this, and if so 
what is the correct approach to working with a database during uninstall?  
Otherwise, what do I do to prevent the service from shutting down?  If I can't 
prevent it from shutting down, what about adding a new CA to start it up after 
the point in the InstallExecuteSequence where it is automatically stopped?

 

Thanks,

Greg

_________________________________________________________________
Windows Live™ Hotmail®…more than just e-mail. 
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_howitworks_022009
-- 
View this message in context: 
http://n2.nabble.com/Can-I-prevent-shut-down-of-SQL-Server-service-during-uninstall-on-Windows-2008-Server--tp2379802p2379802.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to