Windows installer: Error 1001, CustomAction _xxxxx.install returned actual error code 1603

后端 未结 3 1038
花落未央
花落未央 2021-01-26 23:34

Question:

I have created an installer for a windows service with Visual Studio 2012 and InstallShield.

The service runs fine.
The installer runs fine on my

3条回答
  •  误落风尘
    2021-01-27 00:16

    Error code 1001 ALWAYS means a failure in the Installer class custom action. InstallShield is merely consuming / hosting it as you directed. Installer Class custom actions are notoriously brittle and run out of process so you get very little logging.

    Instead of using the custom action, you should use the native Windows Installer ServiceInstall and ServiceConfigure tables as exposed by InstallShield under the advanced component settings. Create a component, add your service EXE to it as a key file and then define the service meta.

    First I suggest merely creating the install and then starting it by hand after the install. Once that is working add the ServiceControl information so the installer does it automatically. Rinse and repeat on a VM.

    If you get an error 1920 when the installer try's to start the service this is always a service problem. Profile it to understand the problem and then either fix the code or fix the installer if it's missing a dependency.

提交回复
热议问题