472,362 Members | 1,820 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,362 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 2858
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...

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.