When uninstalling the application from the admin user only the process related to this particular user is cleaning in NSIS. Other instance of the process is not killing.
Steps followed:
Installed the application from the admin user and then logged in as normal user. So for each user I am seeing one process (This is the expected behavior)
When switched back to the admin user and uninstalling the application, able to kill only the process for the admin user. And the normal user process is still showing.
Is there any way to kill all the processes related to the application irrespective of the user specific?
I am using the below code snippet:
Section "Uninstall"
${nsProcess::FindProcess} "sysnotification.exe" $R0
MessageBox MB_OK "nsProcess::FindProcess$\n$\n\
            Errorlevel: [$R0]"
${if} $R0 == 0
BringToFront
${nsProcess::KillProcess} "sysnotification.exe" $R0
MessageBox MB_OK "KillProcDLL::KillProc$\n$\n\
                    Errorlevel: [$R0]"
${EndIf}
${nsProcess::Unload}
SectionEnd