Skip to content
⌘ NSIS Forum Archive

checking for proper cd in a 6 cd installation

2 posts

Bullwinkle#

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