473,386 Members | 1,827 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,386 software developers and data experts.

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.exe (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 2924
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**************@TK2MSFTNGP10.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.exe (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.rilling.net> wrote in message
news:O$**************@TK2MSFTNGP09.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**************@TK2MSFTNGP10.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.exe (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****@microsoft.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.public.dotnet.languages.csharp
NNTP-Posting-Host: sb1.dhmh.state.md.us 167.102.229.10
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:191091
X-Tomcat-NG: microsoft.public.dotnet.languages.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.rilling.net> wrote in message
news:O$**************@TK2MSFTNGP09.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**************@TK2MSFTNGP10.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.exe (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
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...
1
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...
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...
2
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...
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: 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...
1
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...
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. ...
3
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.