c# - Custom Action session.message not showing messagebox -


i creating msi based installer using wix.

my custom action declaration goes this...

<binary id="customactions" sourcefile="dlls\customactions.ca.dll" />  <customaction id="checkpath" return="check" execute="immediate" binarykey="customactions" dllentry="checkpath" /> 

and under wixui_installdir dialog ui,

<ui id="wixui_installdir">     .....     <publish dialog="selectdirdlg" control="next" event="doaction" value="checkpath" order="2">1</publish>     ..... </ui> 

and in c# file,

[customaction] public static actionresult checkpath(session session) {       record record2 = new record();       record.formatstring = "the path have selected invalid!";       session.message(installmessage.error | (installmessage)messagebuttons.ok, record);       return actionresult.success; } 

i expecting message box via above custom action when user selects invalid path. message box not shown.

what doing wrong?

custom actions triggered via doaction control event cannot show message boxes. see http://msdn.microsoft.com/en-us/library/windows/desktop/aa368322%28v=vs.85%29.aspx.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -