Old 8th April 2004, 23:23   #1
pure-krypton
Member
 
pure-krypton's Avatar
 
Join Date: Jul 2003
Location: Mooloolaba, Australia
Posts: 60
ask to install message box?

how would i create a message box that when the destination folder is not a winamp folder it asks me something like "The destination folder is not a winamp folder. Do you want to continue?"
pure-krypton is offline   Reply With Quote
Old 9th April 2004, 02:14   #2
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to deguix
Command MessageBox:

PHP Code:
MessageBox MB_YESNO "The destination folder is not a Winamp folder. Do you want to continue?" 

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 9th April 2004, 02:50   #3
pure-krypton
Member
 
pure-krypton's Avatar
 
Join Date: Jul 2003
Location: Mooloolaba, Australia
Posts: 60
i know that much, but i want it to tell me that when winamp.exe is not in the destination folder
pure-krypton is offline   Reply With Quote
Old 9th April 2004, 10:36   #4
Bennyyy
Junior Member
 
Bennyyy's Avatar
 
Join Date: Apr 2004
Location: Weißenburg, Germany
Posts: 16
hi

sorry for my bad english...
use this

Function .onVerifyInstDir
IfFileExists $INSTDIR\Winamp.exe PathGood
Abort ;
PathGood:
FunctionEnd

the user can only install your software if the correct path is selected
Bennyyy is offline   Reply With Quote
Old 9th April 2004, 14:26   #5
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to deguix
You can mix both of them to create what you're looking for:

PHP Code:
Function .onVerifyInstDir
  IfFileExists 
"$INSTDIR\\Winamp.exe" PathGood
    MessageBox MB_YESNO 
"The destination folder is not a Winamp folder. Do you want to continue?" IDYES PathGood
    Abort
  PathGood
:
FunctionEnd 

My Wiki Pages

Working now on:
New projects. (language: any)
deguix 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