Hi
I've created an installation package for my Service application. This is my
first attempt at an install package.
In the simplest install package, the files are being created in the target
directory ok. InstallUtil.exe is one of these files.
I've now tried to add a custom action (I've tried both Install and Commit
phases trying to get it to work) to run InstallUtil.exe, passing my service
executable name (without path info) as "Arguments". I've set
"InstallerClass" to false.
When install is run a command prompt window opens, to run installutil as I'd
expect, then closes again quickly and I get an error message from the
installer that there was an error during installation.
Following in an extract from my install log file which doesn't really make
any sense to me. What's wrong here please? I don't believe the problem is
anything to do with icons/dialogs.
MSI (s) (88:F8) [08:25:58:236]: Note: 1: 1722 2:
_FC60C24A_E67B_42C0_8C63_F55585CEA052 3: C:\Program Files\JF Ltd\MCAS
Monitor\InstallUtil.exe 4: /u jfmMCASMonitorService.exe
MSI (s) (88:F8) [08:25:58:236]: Note: 1: 2262 2: Error 3: -2147287038
MSI (c) (28:AC) [08:25:58:267]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2835: The control ErrorIcon was not found on dialog ErrorDialog
The installer has encountered an unexpected error installing this package.
This may indicate a problem with this package. The error code is 2835. The
arguments are: ErrorIcon, ErrorDialog,
Error 1722. There is a problem with this Windows Installer package. A
program run as part of the setup did not finish as expected. Contact your
support personnel or package vendor. Action
_FC60C24A_E67B_42C0_8C63_F55585CEA052, location: C:\Program Files\JF
Ltd\MCAS Monitor\InstallUtil.exe, command: /u jfmMCASMonitorService.exe
MSI (s) (88:F8) [08:25:59:686]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (88:F8) [08:25:59:686]: Product: JF MCAS Monitor -- Error 1722.
There is a problem with this Windows Installer package. A program run as
part of the setup did not finish as expected. Contact your support personnel
or package vendor. Action _FC60C24A_E67B_42C0_8C63_F55585CEA052, location:
C:\Program Files\JF Ltd\MCAS Monitor\InstallUtil.exe, command: /u
jfmMCASMonitorService.exe