Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   ask to install message box? (http://forums.winamp.com/showthread.php?t=175903)

pure-krypton 8th April 2004 23:23

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?"

deguix 9th April 2004 02:14

Command MessageBox:

PHP Code:

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


pure-krypton 9th April 2004 02:50

i know that much, but i want it to tell me that when winamp.exe is not in the destination folder

Bennyyy 9th April 2004 10:36

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

deguix 9th April 2004 14:26

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 



All times are GMT. The time now is 22:29.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.