CustomAction <action_name> returned actual error code 1603 in installshield
Asked Answered
E

4

8

I'm using using Basic MSI to install my application.

I'm getting Error 1001 during installation and roll back action takes place. I've noticed in the installation log that I get this error:

"CustomAction returned actual error code 1603. Action ended InstallFinalize. Return value 3.

Custom Action dll is a .NET Installer Class and the property is set to True.

Does anyone have an idea what could be the problem?

Eldin answered 3/8, 2011 at 16:22 Comment(0)
G
2

Your installation project includes a component with .NET Installer Class set to Yes. Using this option is an anti-pattern, as it can result in modal UI even in silent installations, and often tells you only "Error 1001". You can either look for the component with this setting, or take a verbose log and look for information shortly before the first or only return value 3.

Grounder answered 2/8, 2011 at 13:25 Comment(1)
Thanks for your response.Yes,my project includes a component with .NET Installer Class set to YesEldin
A
2

Error code 1603 is a Windows installer's generic error code when custom action throws any error/exception. Windows installer does not show actual error/exception in installer logs. To verify actual error/exception we have to debug the custom action.

Please verify if custom action is throwing any error/exception.

Ajani answered 22/9, 2011 at 19:53 Comment(4)
I don't believe this is correct. Exceptions are logged in the installer logs normally. Error messages, stack traces etc.Luggage
@Luggage Please check this out msdn.microsoft.com/en-us/library/windows/desktop/…Ajani
Yep, but that's error codes from MSIEXEC. If you throw an exception in a managed CA you will see the exception in the log if you specify the right options (i.e. "/log Install.log" etc).Luggage
You are correct these are windows installer logs. Windows installers standard practice is to write these error codes in installation logs instead of actual error/exception messages thrown/returned from custom action. Even it mention that this is not actual error message given by CA. Unless CA is also writing in installation logs error/exception messages does not appear in it.Ajani
U
2

A verified solution:

Error 1001 is due to a .Net framework mismatch. InstallShield uses RegAsm.exe and InstallUtilLib.dll to compile the installer, and these must match your application's target framework, and the target computer must also have it:

Error 1001 reason and solution discussed here

enter image description here

Open Installshield IDE -> Go to Tools menu -> Options and check the following settings as shown in the above screenshot:

Ultramicroscopic answered 2/1, 2013 at 14:15 Comment(0)
E
0

In my case, I was installing an x86 windows service to an x64 machine. I had to change both paths in my options to my local x86 .net installation folder for my executable's target framework. ie.

32-bit location C:\Windows\Microsoft.NET\Framework\v4.0.30319

64-bit location C:\Windows\Microsoft.NET\Framework\v4.0.30319

Elberfeld answered 20/1, 2014 at 13:29 Comment(2)
The two locations you gave are identical.Fu
That was my point - I changed them from being different to being identical to solve the problem.Elberfeld

© 2022 - 2024 — McMap. All rights reserved.