473,856 Members | 1,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom Action during Setup!

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 custom action (EXE) at the
install condition. Unfortunately when I roll out my MSI I don't see the
custom action being executed.
For now I just wrote few lines on my customAction.ex e (like hello world etc)
its a console application.

Can someone tell me how to get through this problem?

TIA

--
========
Regards
Vai
========
Nov 15 '05 #1
3 2946
Customer actions are classes that inherit from the Installer class. They
have methods that you override that the MSI calls during execution. Since
nothing happened, I would assume that your component that you referenced has
no custom actions defined in it. Custom actions are NOT executable meaning
the MSI does not call the Main method.

"Vai2000" <va*@onebox.com > wrote in message
news:uf******** ******@TK2MSFTN GP10.phx.gbl...
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 custom action (EXE) at the
install condition. Unfortunately when I roll out my MSI I don't see the
custom action being executed.
For now I just wrote few lines on my customAction.ex e (like hello world etc) its a console application.

Can someone tell me how to get through this problem?

TIA

--
========
Regards
Vai
========

Nov 15 '05 #2
Thanks Peter, I did created a class library and derived out of Installer
base class and override the two methods Install and Uninstall. But still it
doesn't gets called.

Thanks

"Peter Rilling" <pe***@nospam.r illing.net> wrote in message
news:O$******** ******@TK2MSFTN GP09.phx.gbl...
Customer actions are classes that inherit from the Installer class. They
have methods that you override that the MSI calls during execution. Since
nothing happened, I would assume that your component that you referenced has no custom actions defined in it. Custom actions are NOT executable meaning the MSI does not call the Main method.

"Vai2000" <va*@onebox.com > wrote in message
news:uf******** ******@TK2MSFTN GP10.phx.gbl...
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 custom action (EXE) at the
install condition. Unfortunately when I roll out my MSI I don't see the
custom action being executed.
For now I just wrote few lines on my customAction.ex e (like hello world

etc)
its a console application.

Can someone tell me how to get through this problem?

TIA

--
========
Regards
Vai
========


Nov 15 '05 #3
That should have worked.

Did you make sure that the InstallerClass Property was set to TRUE.

Also, you mention it was a console app. Are you trying to write to stdout?
I don't believe that will work. Try msgbox.

Patrick Baker - Visual Basic/Deployment Quality Assurance Team
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: "Vai2000" <no****@microso ft.com>
References: <uf************ **@TK2MSFTNGP10 .phx.gbl> <O$************ **@TK2MSFTNGP09 .phx.gbl>Subject: Re: Custom Action during Setup!
Date: Mon, 13 Oct 2003 17:17:48 -0400
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <##************ **@TK2MSFTNGP09 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
NNTP-Posting-Host: sb1.dhmh.state. md.us 167.102.229.10
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1910 91
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp

Thanks Peter, I did created a class library and derived out of Installer
base class and override the two methods Install and Uninstall. But still it
doesn't gets called.

Thanks

"Peter Rilling" <pe***@nospam.r illing.net> wrote in message
news:O$******* *******@TK2MSFT NGP09.phx.gbl.. .
Customer actions are classes that inherit from the Installer class. They
have methods that you override that the MSI calls during execution. Since
nothing happened, I would assume that your component that you referenced

has
no custom actions defined in it. Custom actions are NOT executable

meaning
the MSI does not call the Main method.

"Vai2000" <va*@onebox.com > wrote in message
news:uf******** ******@TK2MSFTN GP10.phx.gbl...
> Hi All, I need to execute custom action during installation of my

program > (through MSI). Creating the MSI was pretty straight fwd. After that Iwent > into the Custom Action Editor and added the custom action (EXE) at the
> install condition. Unfortunately when I roll out my MSI I don't see the
> custom action being executed.
> For now I just wrote few lines on my customAction.ex e (like hello world

etc)
> its a console application.
>
> Can someone tell me how to get through this problem?
>
> TIA
>
> --
> ========
> Regards
> Vai
> ========
>
>




Nov 15 '05 #4

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

Similar topics

1
2251
by: Petrucci2000 | last post by:
Hi All, I am looking to create an installation package (MSI ) which will fire off few of my custom .vbs during the install process. How to accomplish this task? TIA PS: I tried to include an installer class to my setup project and overrided the install and uninstall methods but when I run the setup.msi I never see those being fired!!
1
8490
by: Craig | last post by:
I have added a 'Textboxes (A)' to my UI installer project along with a custom action to pass the value back to a class I've written to override the void Install function. As long as the text is very simple everything is working just fine. I've tested it by writing the string out to a text file to test it. However, the trouble comes in when I use the textbox for what I really intended, a ADO.Net Connection String. The textbox is to...
6
4363
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 but it complains that its already installed, then I set the Condition to check as Installed == false and that doesnt work. How can one do this on a setup project?
2
3075
by: Claire | last post by:
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...
3
5904
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 complete. This works great too, for web pages not associated with my new application. I would like to launch a web page that is part of the application that was just installed. The sample in MSDN shows using the following syntax:
0
1116
by: ld | last post by:
Hi, I have a lib that implements the custom actions for my setup. I would like to be able to interupt the setup if an error occured or if the user wants to cancel one of the forms that execute during my custom action. Calling the event RollBack does not cause the setup to be interupted. The only thing that partially work is to through an exception and not handle it in the lib, this forces the setup to be interupted but causes an automatic...
1
1897
by: Gene | last post by:
I would like to know if the following is even possible with the visual studio.net Setup and Deployment project. 1. During the deployment after creation of application directory the setup needs to prompt user to select another location to send a data file elsewhere on target machine (with ability to create this directory). 2. After that this secondary location selected/created by the user,
10
2746
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. The service application references the DLLs. The service app also has an installer class that is set up to run as a custom action in the Setup Project. I am having a problem with signing an assembly. If I add a strong name key to one of the...
3
5861
by: KennethLundin | last post by:
Hi, i'm developing a solution in VS9/CSharp. Now I'm constructing a deployment project for my appliation (thick, database driven, winforms, standard, good old type of application). During installation I also install the PostgreSQL database and along with that I need to execute some Custom Actions. I've created a Custom Installer component in CSharp and calls it on Install/Rollback/ uninstall and everything works great (Custom Actions...
0
9920
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11063
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10790
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10390
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9535
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7932
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7098
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5762
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4580
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.