Old 2nd February 2009, 14:38   #1
Clydopathe
Junior Member
 
Join Date: Feb 2009
Posts: 2
[resolve] Little problem with nsis

Hie all,

I'have one little problem, on my script i can't verify if a software is already installed. By example, i want to check if the computer already had MySQL whith this:

IfFileExists $HKEY_CURRENT_USER\Software\EMS\MySQL Manager
MessageBox MB_OK "Mysql is already installed"
return

ExecWait '"INSTDIR\Sql_Express.exe"'


But that don't word and say :
Could'nt resolve Manager in section MySql

Have a nice day

P.S. : Excuse my english, i'am french

Last edited by Clydopathe; 2nd February 2009 at 15:39.
Clydopathe is offline   Reply With Quote
Old 2nd February 2009, 14:54   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
You can not use IfFileExists to read from the registry

try:
code:

!include LogicLib.nsh
ReadRegStr $0 HKCU "Software\EMS\MySQL Manager"
${IF} $0 != ""
#do something
${EndIf}


IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 2nd February 2009, 15:12   #3
Clydopathe
Junior Member
 
Join Date: Feb 2009
Posts: 2
Thank's for your help, that's good ^^.

Edit :
I have one other question. how the space is handle?

Because with space in my register directory make me one more argument.
Is it %20 like internet site adress?

Edit 2 :
I have find, i just have tu put my adress on " ".

Last edited by Clydopathe; 2nd February 2009 at 15:38.
Clydopathe 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