Custom Action during Setup!

V

Vai2000

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
 
P

Peter Rilling

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.
 
V

Vai2000

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
 
P

Patrick Baker [MSFT]

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.

--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top