|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Sep 2015
Posts: 2
|
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? |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
Obvious question but are you sure you are using the Unicode version of the plugin?
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Major Dude
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
|
Just for the record: Have you considered using LockedList plug-in?
http://nsis.sourceforge.net/LockedList_plug-in My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc My source of inspiration: http://youtu.be/lCwY4_0W1YI |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Sep 2015
Posts: 2
|
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.. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|