Old 14th September 2015, 05:51   #1
Alam
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?
Alam is offline   Reply With Quote
Old 14th September 2015, 11:33   #2
Anders
Moderator
 
Anders's Avatar
 
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
Anders is offline   Reply With Quote
Old 15th September 2015, 23:27   #3
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
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
LoRd_MuldeR is offline   Reply With Quote
Old 22nd September 2015, 12:11   #4
Alam
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..
Alam is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump