c# - Visual Studio Installer Project: Custom Action -> entry point not found -


i try add custom action installer project. added custom action project following code:

  public class customactions   {     [customaction]     public static actionresult customaction1(session session)     {       session.log("begin customaction1");        return actionresult.success;     }   } 

in installer project, added reference customaction_project , added following entry custom actions -> install:

name: primary output customaction (active) entrypoint: customaction1 installerclass: false sourcepath: path customaction.dll

now, if try build installer project following error:

error: entry point 'customaction1' not found in module 'path\customaction.dll' custom action 'primary output customaction (active)'.

  • what wrong? custom action code automatically generated visual studio 2013!

you've built managed code custom action project that's intended wix setups. need installer class custom action if using native visual studio installer project. these might help:

https://msdn.microsoft.com/en-us/library/vstudio/d9k65z2d(v=vs.100).aspx

http://www.c-sharpcorner.com/uploadfile/ddoedens/usinginstallerclassestoeasedeploymentinvs.net12012005061649am/usinginstallerclassestoeasedeploymentinvs.net.aspx

http://vbcity.com/forums/t/145818.aspx

basically add installer class project, , override install method.


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -