Error code 1603 when installing service on Windows 7 - 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!

ianlcurtis
Posts: 4
Joined: Wed Dec 01, 2010 4:52 pm

Error code 1603 when installing service on Windows 7

I have been trying to get my installer working on Windows 7 Ultimate. The installer works on Windows Server 2003 and Windows XP. Most of the installation works correctly, but when the installation gets to my custom action to install a Windows service, I get error code 1603 returned :

MSI (s) (BC:B4) [13:23:07:105]: Created Custom Action Server with PID 600 (0x258).
MSI (s) (BC:20) [13:23:07:956]: Running as a service.
MSI (s) (BC:20) [13:23:07:986]: Hello, I'm your 32bit Impersonated custom action server.
CustomAction IM.M40.Events.MonitoringService_Install returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 13:23:08: InstallExecute. Return value 3.

Does anyone know why this may be happening?
Thanks,
Ian

this is the action data generated by advanced installer:
/LogFile= /ReqVersion=2.0.50727 /InstallType=notransaction /Action=Install "[#IM.M40.Events.MonitoringService.exe]" ""[TempFolder] "dotNetCustAct.dll_Config.xml"
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Error code 1603 when installing service on Windows 7

Hello Ian and welcome to Advanced Installer Forums,

This could happen on Windows 7 because your custom action doesn't have enough rights to execute properly. Please try to set it with a "Deferred, with no impersonation" execution option and see the outcome.
If the problem still persists, please send us the .AIP (project) and a verbose log of the installation to support at advancedinstaller dot com so we can help you investigate.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ianlcurtis
Posts: 4
Joined: Wed Dec 01, 2010 4:52 pm

Re: Error code 1603 when installing service on Windows 7

Hi Mihai,
thanks, that has got me past that problem, now I see a different error:

MSI (s) (B4:44) [14:50:30:912]: Created Custom Action Server with PID 2500 (0x9C4).
MSI (s) (B4:FC) [14:50:31:633]: Running as a service.
MSI (s) (B4:FC) [14:50:31:663]: Hello, I'm your 32bit Elevated custom action server.
DEBUG: Error 2869: The dialog ErrorDlg has the error style bit set, but is not an error dialog

I have attached the .aip file and the verbose log.
Attachments
setuplog.rar
The setup log
(175.86 KiB) Downloaded 675 times
M4Deploy.aip
The .aip file
(600.34 KiB) Downloaded 866 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Error code 1603 when installing service on Windows 7

Hello Ian,

This error as well as others has some solution scenarios described in our user guide. Please see the described reasons and let me know if it persists.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ianlcurtis
Posts: 4
Joined: Wed Dec 01, 2010 4:52 pm

Re: Error code 1603 when installing service on Windows 7

Hi Mihai,
I have tried the suggested fix with quotes and whitespace without success. The action data generated by Advanced Installer is as follows:

/LogFile= /ReqVersion=2.0.50727 /InstallType=notransaction /Action=Install "[#IM.M40.Events.MonitoringService.exe]" ""[TempFolder] "dotNetCustAct.dll_Config.xml"

Which seems to be a valid custom action as ive added the quotes and space after the [TempFolder] reference.
Any help gratefully received,
Ian
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Error code 1603 when installing service on Windows 7

Hello Ian,

Instead of :
""[TempFolder] "dotNetCustAct.dll_Config.xml"
try to use

Code: Select all

"[TempFolder]dotNetCustAct.dll_Config.xml"
The " " and "/" mentioned in the help article refer to paths that contain only folder properties. In your case the error occurs because of an exception in your custom action so you may want to debug it first to solve this.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ianlcurtis
Posts: 4
Joined: Wed Dec 01, 2010 4:52 pm

Re: Error code 1603 when installing service on Windows 7

Hi Mihai,
can you explain how you would debug a custom action please?
Thanks,
Ian
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Error code 1603 when installing service on Windows 7

Hello Ian,

Please follow this MSDN link to get you started.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
phlow666
Posts: 144
Joined: Thu Jan 27, 2011 8:10 am
Location: Germany

Re: Error code 1603 when installing service on Windows 7

Hello,
i have the same problem.
CustAct64Bit.png
CustAct64Bit.png (34.95 KiB) Viewed 26614 times
Here is my action data:

Code: Select all

/LogFile=C:\Users\fg\Desktop\InstallerClass.txt /ReqVersion=2.0.50727 /InstallType=notransaction /Action=Install "[#Soloplan.Map.Net.RoutingHost.exe]" "[TempFolder]dotNetCustAct.dll_Config.xml"
My error is:

Code: Select all

MSI (s) (C4:50) [10:53:08:770]: Hello, I'm your 64bit Elevated custom action server.
CustomAction dotNetCustAct.dll_1 returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Aktion beendet um 10:53:09: InstallExecute. Rückgabewert 3.
MSI (s) (C4:90) [10:53:09:623]: User policy value 'DisableRollback' is 0
MSI (s) (C4:90) [10:53:09:623]: Machine policy value 'DisableRollback' is 0
I'm using Win7 Enterprise 64bit.

Can you help me? Thank you.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Error code 1603 when installing service on Windows 7

Hello,

At a first glance I recommend you try replacing:

Code: Select all

/LogFile=C:\Users\fg\Desktop\InstallerClass.txt
with

Code: Select all

/LogFile="C:\Users\fg\Desktop\InstallerClass.txt"
Otherwise, I'm afraid our support boundaries don't cover debugging custom actions. Here is an article to get you started with debugging it.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”