rahnajoseh
Posts: 18
Joined: Tue Dec 16, 2014 6:58 am

Failed to uninstall custom action

Hi Team,

We are not able to uninstall the custom action from the user machine, Please check the below steps for more information.

1. We are trying to achieve silent uninstall with following command

psexec.exe -s -i cmd /c msiexec.exe /x {1ABC3A9F-11A7-498F-B8EA-F55CF391271B} /qb

Error Message: cmd exited on MKAW7X64VANILLA with error code 1603.

2. From the logs I can see below exception message,

MSI (s) (70:CC) [11:24:10:861]: Doing action: GetUsers.CA.dll
Action ended 11:24:10: AI_ResolveKnownFolders. Return value 1.
MSI (s) (70:98) [11:24:10:876]: Invoking remote custom action. DLL: C:\Windows\Installer\MSID4FD.tmp, Entrypoint: CustomAction1
Action start 11:24:10: GetUsers.CA.dll.
SFXCA: Extracting custom action to temporary directory: C:\Windows\Installer\MSID4FD.tmp-\
SFXCA: Binding to CLR version v4.0.30319
Calling custom action CustomAction1!GetUsers.CustomActions.CustomAction1
Begin CustomAction1
Exception thrown by custom action:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->
System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
at System.String.Substring(Int32 startIndex, Int32 length)
at GetUsers.CustomActions.DeleteAppDataFilesNew()
at GetUsers.CustomActions.CustomAction1(Session session)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object parameters, Object arguments)
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 GetUsers.CA.dll returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 11:24:12: GetUsers.CA.dll. Return value 3.
Action ended 11:24:12: INSTALL. Return value 3.
Property(S): AppsShutdownOption = All


3. We have added custom action called - GetUsers.CA.dll

Please find the attached logs and error screen

Could you please help me on this issue.

Thanks&Regards,
Rahna
Attachments
Amadeus 1.12.2017.0708 Uninstall (1).log
(55.92 KiB) Downloaded 305 times
Error.png
Error.png (66.97 KiB) Viewed 4326 times
Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Failed to uninstall custom action

Hi Rahna,

As I can see, the uninstall fails because of the custom action. In this case, you can follow the steps from the following article to remove the broken installation:
https://www.advancedinstaller.com/user- ... uestion208

Please let me know if there is anything else I can help you with.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”