Old 19th June 2003, 03:49   #1
smallpony
Junior Member
 
Join Date: Jun 2003
Posts: 1
How to Confirm a Disk exist£¿ such as D:

How to Confirm a Disk exist£¿ such as D:
I create a installer, $INSTDIR set D:\netvoice, but I want to check if there is a disk of D: in target computer?
smallpony is offline   Reply With Quote
Old 19th June 2003, 04:59   #2
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
To Check if drive d:\ exists use this command:
code:

IfFileExists D:\*.* DriveOK DriveNotOK

DriveOK
#Code if drive exists
goto DriveCheckEnd

DriveNotOK:
#Code if drive not exists
goto DriveCheckEnd

DriveCheckEnd:


This should fix your problem.

Vytautas
Vytautas 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