Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 31st May 2001, 19:55   #1
cablenut
Junior Member
 
Join Date: Apr 2001
Posts: 12
Send a message via AIM to cablenut
I got the VB6 runtime install fixed.

Now I just can't seem to get the right code. I want to:

1. Detect a previous file "adjuster.exe"
2. Alert the user with a OK/CANCEL box.
3. If the user uses OK the install continues.
4. If the user uses CANCEL the install aborts.

Thanks for the help.


[Edited by cablenut on 05-31-2001 at 06:36 PM]
cablenut is offline   Reply With Quote
Old 1st June 2001, 05:04   #2
cablenut
Junior Member
 
Join Date: Apr 2001
Posts: 12
Send a message via AIM to cablenut
Ok I figured it out. This probably isn't the most optimal but the only way I could figure out how to do it.

Quote:
IfFileExists "$INSTDIR\adjuster.exe" 0 NoAdjuster
MessageBox MB_OKCANCEL|MB_ICONINFORMATION "Note: A previous installation of CableNut was detected.$\nIt is recommended you uninstall any previous version of CableNut before continuing." IDOK Instcont
FindWindowByTitle "close" "CableNut 4.02 Setup: Installing Files"
FindWindowByTitle "close" "CableNut 4.02 Setup"
Abort
Instcont:
Nop
NoAdjuster:
Nop
Man I love that Nop

cablenut is offline   Reply With Quote
Old 1st June 2001, 05:33   #3
justin
Moderator Alumni
 
Join Date: Apr 2000
Location: USA
Posts: 315
You don't need the nop...

-J
justin is offline   Reply With Quote
Reply
Go Back   Winamp 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