The issue of closing the process before the end of the app
I wanted to make a portable app for huya streaming and found that his main process huya.exe still has a huyaservice.exe process running after closing, causing backup of appdata content to fail.I learned that you can use the .nsh file to call killproc to solve the problem, so I put a custom.nsh in the launcher folder of paf.
${SegmentFile}
${SegmentPrePrimary}
KillProcDLL::KillProc “HuyaService.exe”
!macroend
${SegmentPostPrimary}
KillProcDLL::KillProc “HuyaService.exe”
!macroend
But it doesn't seem to be working, so what can I do about it?