Old 1st July 2007, 23:57   #1
Durando
Junior Member
 
Join Date: Jul 2007
Posts: 3
Process Plugins that work with Vista

I am having a problem with the process addons I have attempted to use I am not sure if it is because of Vista or not but there is no logical reason that the code shouldn't work.

The ones i've tried so far are
Processes.dll
FindProcDLL.dll
KillProcDLL
nsProcess.dll

All I want is for NSIS to detect if blah.exe is running and if it is to tell the user to exit the program and retry or cancel the installation for a later time.

Every attempt I have made with the Forementioned Plugins has allowed me to continue installation without a warning despite the fact that the process i'm trying to detect is running.

I am running Windows Vista Ultimate 32bit, I can only assume it is a compatability issue with Vista because I have not been able to try on other versions of Windows.
Durando is offline   Reply With Quote
Old 2nd July 2007, 06:44   #2
CancerFace
Senior Member
 
Join Date: Apr 2006
Posts: 289
Send a message via ICQ to CancerFace
What is the error code that you get when you call those plugins? Each of these should push something on the NSIS stack...
CF
CancerFace is offline   Reply With Quote
Old 2nd July 2007, 18:12   #3
helix400
Member
 
Join Date: Oct 2003
Posts: 51
I know this won't help much , but I can confirm that what you are trying to do is possible with Windows Vista. We currently use the Processes plugin, and I haven't had any problems with it killing the requested process.
helix400 is offline   Reply With Quote
Old 2nd July 2007, 18:21   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Maybe you're trying to kill a protected process? That should be impossible with any plug-in or code.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 2nd July 2007, 21:53   #5
Durando
Junior Member
 
Join Date: Jul 2007
Posts: 3
Perhaps its an Error on my part

Well I am not trying to kill a process just find out if its working perhaps i scripted this wrong i'll attach the way i've been using it with no luck.

Function .onInit
ReadRegStr $R1 HKLM "SOFTWARE\Program Manufacturer\Program To Search For\" "InstallPath"

StrCmp $R1 "" ProgNotFound ProgFound

ProgNotFound:
MessageBox MB_OK|MB_ICONEXCLAMATION "The Program this installer needs is not installed on this computer. You must install it to continue with this installation."
Quit

ProgFound:
loop:
Processes::FindProcess "Prog"
StrCmp $R0 1 0 done

MessageBox MB_OK|MB_ICONEXCLAMATION "The Program this installer needs is running on this computer. You must close it to continue with this installation."
Quit

done:
FunctionEnd

If this is not correct please let me know it was put together from example script i have found on the web.
Durando is offline   Reply With Quote
Old 7th November 2007, 14:14   #6
Fightin_Foo
Junior Member
 
Join Date: Nov 2007
Location: Ohio
Posts: 49
Send a message via AIM to Fightin_Foo
I am having a similiar problem. I suspect that the FindProcDLL has problems working with Vista because my problem doesn't appear in XP. Did anybody resolve this problem?

From there to here,
from here to there,
funny things
are everywhere.

Dr. Seuss
"One Fish Two Fish Red Fish Blue Fish"
Fightin_Foo is offline   Reply With Quote
Old 7th November 2007, 18:39   #7
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Maybe the installer is elevated and FindProcDLL doesn't find processes created by the elevating user? Try RequestExecutionLevel user and see if it works in that case.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 29th January 2009, 11:44   #8
albe
Junior Member
 
Join Date: Jan 2009
Posts: 2
I have a problem with the Processes addon and Vista as well.

I have Vista x64.
Processes finds 32-bit processes OK, but not 64-bit.

Has anybody found a way to find both 32- and 64-bit processes?
albe 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