Skip to content
⌘ NSIS Forum Archive

nsProcess plugin

73 posts

tnteverett#
Plugin Directory

The ZIP file has only one DLL and unzipping does not put it in the right directory. Not knowing where it goes, this is what I have done.

Installation file: 20140806212030!NsProcess.zip
Instructions:
Copy to the base installation directory of NSIS, typically "C:\Program Files (x86)\NSIS"
Using WinZip, right click and select "Extract to Here"
This action puts files in the wrong place. You will need to move the following files.
Move "C:\Program Files (x86)\NSIS\Plugin\nsProcess.dll"
to
"C:\Program Files (x86)\NSIS\Plugins\x86-ansi\nsProcess.dll"
and
"C:\Program Files (x86)\NSIS\Plugins\x86-unicode\nsProcess.dll"

I assume the right place is ansi but did not want to test it further, just wanted it to work.

Note that the NsProcess.zip downloads but will not open.
Same problem with nsProcess_1_6.7z

When will ZIP release be fixed to include both and in the right directories?
C:\Program Files (x86)\NSIS\Plugins\x86-unicode
C:\Program Files (x86)\NSIS\Plugins\x86-ansi
Fildor#
Hi there,

I currently have a problem with nsProcess Plugin on my Windows 10 x64 development machine.

Please have a look into this Stackoverflow Question:


Regards, Stephan
Fildor#
^^ Solved. It was a stupid mistake. Sorry for bothering. The Plugin works exceptionally fine!

Thanks to all.
ann0see#
I just downloaded the zip file from this link: https://nsis.sourceforge.io/mediawik.../NsProcess.zip but unfortunately Windows 10 powershell and Windows Explorer tell me that the file is corrupt. 7Zip can extract it, but I can't use it with my powershell script.

Does anybody know how to fix the .zip file or are there any other .zip (not 7zip) mirrors?
ann0see#
According to pjones here: https://github.com/corrados/jamulus/...ment-761690094

It seems as if the file is in fact a 7zip file. Unfortunately we need a .zip file since windows doesn't natively support 7zip. I'll upload the zip file here (and then let the script download it from here; That's of course not optimal). Is it allowed to host the dll on our own page?
ann0see#
This is now the "real" zip file.
ann0see#
It would be great if this plugin would use an official (FOSS) license so that we don't need to download the .zip file from a forum post. See: https://github.com/corrados/jamulus/issues/859

We would really appreciate an answer here.
Anders#
Originally Posted by ann0see View Post
It would be great if this plugin would use an official (FOSS) license so that we don't need to download the .zip file from a forum post
The nsProcess plug-in also exists on the NSIS wiki and all files on this wiki are ZLib licensed unless otherwise noted.
ann0see#
> The nsProcess plug-in also exists on the NSIS wiki and all files on this wiki are ZLib licensed unless otherwise noted.


Great to hear thanks for your reply! So we will probably host it ourselves or include it in the repo.
PPeti66x#
Hi!
If someone needs a Win9x/NT4 compatible version, here is it. No source code changed, only was recompiled in VS2003. Both ANSI and Unicode versions are included.
Anders#
Originally Posted by PPeti66x View Post
Hi!
If someone needs a Win9x/NT4 compatible version, here is it. No source code changed, only was recompiled in VS2003. Both ANSI and Unicode versions are included.
Very nice, you should update the wiki as well.
manson95#
Hey,
I am currently trying to find and close all processes of my "setup.exe" on a terminal server as admin during an update. My problem is that the plugin closes the local process but not the background processes of other users. There is no error message and $R0 = 0, because the background processes are found, but not closed. Maybe someone has an idea why this could be? I run my setup logged in as administrator and right click with administrator rights. Here is my code section:

StrCpy $1 "${EXE_NAME}"

nsProcess::_FindProcess "$1"
Pop $R0
MessageBox MB_OK "Die Variable R0 vor der if abfrage R0 = $R0"
${If} $R0 = 0
RequestExecutionLevel admin
nsProcess::_KillProcess "$1"
Pop $R0

Sleep 500
Goto loop
;debug
${ElseIf} $RO <> 0
MessageBox MB_OK "die Variable R0 hat den Wert R0 = $R0"
${Else}
Return
${EndIf}
I would be grateful for any suggestions!
🙂
Anders#
Probably something to do with sessions or services or something running as SYSTEM. Does taskkill in cmd.exe work?