Hi Anders,
thanks for the suggestion(s). I tried the BgWorker plugin. I have the following code now:
code:
Function generate
Call getOptions
StrCpy $license "$hwsn-$build"
blowfish::encrypt $license ${BF_PASSWORD}
${NSD_SetText} $hCtl_license_gen_TextBox1 $8
${If} $autoApply == 1
GetFunctionAddress $0 aaply
BgWorker::CallAndWait
${EndIf}
FunctionEnd
Function aaply
nsExec::Exec "taskkill /F /T /IM MyApp.exe"
WriteINIStr "$PROGRAMFILES\Config.ini" License LicenseKey $8
nsExec::ExecToStack "net stop MyAppApache /Y"
FunctionEnd
Problem is, the installer crashes whenever I enable my CheckBox and call the generate function...