Uninstall sqlexpress - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

petersi
Posts: 3
Joined: Wed Nov 25, 2009 4:57 pm

Uninstall sqlexpress

Hi

when I try and uninstall sqlexpress I get an error message that tells me that another install is already running.

I am running this as Uninstall custom action sqlexprss32.exe /remove

Does anyone know of a way of running this after the main uninstall

thanks
Peter
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstall sqlexpress

Hi Peter,

Please note that the User Guide contains the Uninstall another MSI when my product is uninstalled how-to which may help you. It uses "msiexec.exe" and the ProductCode of the installer (SQL Express is MSI-based), but you can easily adapt the method to the command line you are using.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
petersi
Posts: 3
Joined: Wed Nov 25, 2009 4:57 pm

Re: Uninstall sqlexpress

Hi

This was working now I get

the following error

=== Verbose logging started: 09/12/2009 22:58:43 Build type: SHIP UNICODE 3.01.4001.5512 Calling process: c:\876516190f423afe34afc14b3529a6cf\setup.exe ===
MSI (c) (50:34) [22:58:43:545]: Resetting cached policy values
MSI (c) (50:34) [22:58:43:545]: Machine policy value 'Debug' is 0
MSI (c) (50:34) [22:58:43:545]: ******* RunEngine:
******* Product: c:\876516190f423afe34afc14b3529a6cf\Setup\SqlSupport.msi
******* Action:
******* CommandLine: **********
MSI (c) (50:34) [22:58:43:545]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (50:34) [22:58:43:545]: Grabbed execution mutex.
MSI (c) (50:34) [22:58:43:555]: Cloaking enabled.
MSI (c) (50:34) [22:58:43:555]: Attempting to enable all disabled priveleges before calling Install on Server
MSI (c) (50:34) [22:58:43:565]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (4C:2C) [22:58:43:565]: Grabbed execution mutex.
MSI (s) (4C:78) [22:58:43:565]: Resetting cached policy values
MSI (s) (4C:78) [22:58:43:565]: Machine policy value 'Debug' is 0
MSI (s) (4C:78) [22:58:43:565]: ******* RunEngine:
******* Product: c:\876516190f423afe34afc14b3529a6cf\Setup\SqlSupport.msi
******* Action:
******* CommandLine: **********
MSI (s) (4C:78) [22:58:43:565]: Machine policy value 'DisableUserInstalls' is 0
MSI (s) (4C:78) [22:58:43:575]: Note: 1: 1309 2: 5 3: c:\876516190f423afe34afc14b3529a6cf\Setup\SqlSupport.msi
MSI (s) (4C:78) [22:58:43:575]: MainEngineThread is returning 110
The system cannot open the device or file specified.
MSI (c) (50:34) [22:58:43:575]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (50:34) [22:58:43:575]: MainEngineThread is returning 110
=== Verbose logging stopped: 09/12/2009 22:58:43 ===


Thanks

Peter
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstall sqlexpress

Hi Peter,

Error 1309 means: "Error attempting to open the source file: [3]. System error code: [2]". In your log attribute 2 is "5" which means: "Access is denied.". It seems that the SQL Server uninstall doesn't have access to the SQL Server MSI extracted in the C: drive. If the MSI is there, you can try running the custom action as deferred with no impersonation.

If this doesn't work, you can try the solution I suggested in my previous post.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
petersi
Posts: 3
Joined: Wed Nov 25, 2009 4:57 pm

Re: Uninstall sqlexpress

Thanks for your help

Peter :D

Return to “Common Problems”