Custom Action during Setup!

  • Thread starter Thread starter Vai2000
  • Start date Start date
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
 
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.
 
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
 
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.

--------------------
 
Back
Top