Old 3rd April 2004, 19:19   #1
Bullwinkle
Junior Member
 
Join Date: Apr 2004
Posts: 1
checking for proper cd in a 6 cd installation

I've been struggling to find a way to have the installer verify the disk that is in the drive at the beginning of each section. My current plan is to place a file on each disk (disk1.id, disk2.id, etc...) that i can verify its existence using IfFileExists.

My problem is if the file doesnt exist, i need to pop up a msgbox prompting to install the correct disk(this is not a problem) and then recheck for correct disk upon clicking OK or if it IS the correct disk, follow through on the installation of the contents.

I believe my problem is how i have the jump_to/jump_otherwise tags setup. Does anyone know of any examples of this i can check out or any tips or suggestions of alternate methods that might point me in the right direction? Any help would be greatly appreciated
Bullwinkle is offline   Reply With Quote
Old 3rd April 2004, 20:04   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Using Windows API (System plug-in) is more reliable.

To jump back use Goto with a label:

;create file

check:
IfFileExists "file" fileok

;message
;create file again
Goto check

fileok:
Joost Verburg 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