473,320 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Custom action not working

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
Nov 17 '05 #1
2 3048
mdb
"Claire" <as*******@ntlworld.com> wrote in
news:O5**************@tk2msftngp13.phx.gbl:
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.


Hmmm... two guesses:

first guess is that you can't run installutil during an MSI install.

second guess (more of a suggestion, really) would be to make sure that the
program can successfully run. Try this... when the installer comes back
and says that there was an error in the installation, don't click the OK
button. Instead, open a command prompt, switch to your windows\system32
directory and then type the full path to the installutil.exe just as you
would expect that the MSI Installer would, including the command line
options and see if it does what you expect. Hopefully, it will give you
some kind of error information that will be more useful.

-mdb
Nov 17 '05 #2
> Hmmm... two guesses:

first guess is that you can't run installutil during an MSI install.

second guess (more of a suggestion, really) would be to make sure that the
program can successfully run. Try this... when the installer comes
back
and says that there was an error in the installation, don't click the OK
button. Instead, open a command prompt, switch to your windows\system32
directory and then type the full path to the installutil.exe just as you
would expect that the MSI Installer would, including the command line
options and see if it does what you expect. Hopefully, it will give you
some kind of error information that will be more useful.


Interesting, where is The Current Directory when one attempts to run a file
included as part of the installation?
If I included installutil.exe into the same path as the installed
application and ran that as a custom action, would The Current Directory be
the application path or system32?
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: New World Order Pigs | last post by:
I am getting the all too common "unable to build custom action" error trying to build my install project but this time it's different. Normally, I can just remove and then add the custom actions...
3
by: Vai2000 | last post by:
Hi All, I need to execute custom action during installation of my program (through MSI). Creating the MSI was pretty straight fwd. After that I went into the Custom Action Editor and added the...
8
by: Martin Lapierre | last post by:
I try to make a custom CodeAccessSecurityAttribute, but hit the wall at every corner. I created a simple custom security attribute, which is working (see below). But... 1) I have to put the...
6
by: | last post by:
Hi, I added dotnetfx.exe to a setup project as a custom action to be installed before the main app is installed. I set the Arguments property to /q:a /c:"install /l /q" for a silent install...
0
by: Ron Andersen | last post by:
I have C# custom actions and merge modules created in Visual Studio to install some components of the application I am working on. The merge modules are used with an Install Shield 9 project. ...
3
by: | last post by:
I have created a web setup project for my ASP.NET application that works fine. Also, I have followed the instructions for using a custom action to launch a web page after the installation is...
0
by: Marlene Arauz | last post by:
Hello, I'm working in the setup project of my asp.net application, and I want to set the authentication mode (windows authentication) during the installation. I read in the help that one method...
10
by: =?Utf-8?B?SmFjayBTbWl0aA==?= | last post by:
Hello, I have a solution that contains a C# application that is installed and runs as a service. The solution also contains several DLLs, some of which are C# assemblies and some are C++ DLLs. ...
13
by: Matt F | last post by:
I have a deployment project that I'm setting up. I need to perform a different custom action based on whether this is a first time install or an update. Does anyone have any idea if it's possible...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.