c++ - catch cancel click nsis installer from shellexecuteex -


hi trying run installer using shellexecuteex c++ application. able make installer run. if click cancel on nsis installer anytime how catch c++ application , print installation failed.

i tried this

if((uint)shexecinfo.hinstapp <= se_err_ddetimeout )  {     fprintf(fp, "failed start installer \n");     exit(-1);    } 

but no luck, tried print whats in shexecinfo.hinstapp , result number 42. ideas?

hinstapp holds error (if any) occurred during start up. has nothing application closing.

you want @ exit code of installer process getexitcodeprocess, stored in shexecinfo.hprocess if set see_mask_nocloseprocess flag in shexecinfo.fmask.

you'll have check nsis documentation exit code returned when user hits cancel.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -