Re: Can't uninstall mysql-connector-net-6.6.4
Posted by: Fernando Gonzalez.Sanchez
Date: February 07, 2013 11:50AM

Ok, thanks for sending the log, and good to know it was solved choosing 'Repair' in 6.6.4,

On the log I found this just before it started doing rollback:

SFXCA: Extracting custom action to temporary directory: C:\Windows\Installer\MSI1887.tmp-\
SFXCA: Binding to CLR version v4.0.30319
Calling custom action MySql.ConnectorInstaller!MySql.ConnectorInstaller.CustomActions.UpdateFlagPackagesFileForVS2012
Exception thrown by custom action:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Extensions\extensions.configurationchanged'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamWriter.CreateFile(String path, Boolean append)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding)
at System.IO.File.WriteAllText(String path, String contents)
at MySql.ConnectorInstaller.CustomActions.UpdateFlagPackagesFileForVS2012(Session session)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
at Microsoft.Deployment.WindowsInstaller.CustomActionProxy.InvokeCustomAction(Int32 sessionHandle, String entryPoint, IntPtr remotingDelegatePtr)
CustomAction VS11_UpdatePackageFile returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (40:A8) [11:05:04:655]: User policy value 'DisableRollback' is 0
MSI (s) (40:A8) [11:05:04:655]: Machine policy value 'DisableRollback' is 0
Action ended 11:05:04: InstallFinalize. Return value 3.


So basically its complaining about not finding the path: 'C:\Extensions\extensions.configurationchanged', that one is not hardcoded in Cnet installer, so it is not clear what it was looking there...


Looking at the code, this line:
string VSpath = System.IO.Path.Combine(session.CustomActionData["VS2012_PathProp"], @"Extensions\extensions.configurationchanged");

is part registration of Connector/NET with VS2012, so for some reason in your machine is returning "" for session.CustomActionData["VS2012_PathProp"]
which is weird, did you still have VS2012 installed? Or have it installed at the comment you installed cnet 6.6.4?

Thanks

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.