By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,404 Members | 1,937 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,404 IT Pros & Developers. It's quick & easy.

Custom Action during Setup!

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.