Skip to content
⌘ NSIS Forum Archive

Application is getting uninstalled while is being running.

4 posts

Alam#

Application is getting uninstalled while is being running.

Issue :While application is running,the user is able to unsinstall it.

My Implementation : I have used the code to check if application is running then avoid uninstallation and report an error msg.

I have used below script to avoid uninstallation if application is already running.

Function IsAppRunning
checkAppRunning:
${nsProcess::FindProcess} "${APPEXENAME}" $R0
${If} $R0 == 0
messageBox MB_ICONEXCLAMATION "$(STRING_APP_RUNNING)"
GoTo checkAppRunning
${EndIf}
${nsProcess::Unload}
FunctionEnd


When I get Issue : The problem is only when the installer is created unsig unicode, otherwise it works fine.

Is there any plugin or any solution to fix this issue?
LoRd_MuldeR#
Just for the record: Have you considered using LockedList plug-in?
Alam#
Thanks Anders,LoRd_MuldeR for your quick response.

Yes Anders, I have used unicode version plugin but that was older one.

The issue is resolved as I have downloaded new version nsProcessW.dll file for NSIS UNICODE support (and just rename nsProcessW.dll into nsProcess.dll).

Thanks again..