Previous  Top  Next

VirtualDrives - Specifies additional drive letters that should be available to the application at runtime

Virtual drives can help solve issues in which applications rely on hard-coded paths to specific drive letters which may or may not be available on the client PCs you are distributing to. For example, some legacy applications may be designed to expect that the D drive is a CDROM and that various data files will be available at D:\media.

Virtual drives are visible only to applications running in the virtual environment; they do not have any impact on the real Windows environment. Isolation modes for virtual drives will be inherited from the project's default isolation mode unless you specific override it, as shown below. If a virtual drive is setup with IsolationMode=Merged, any writes to that drive will fail if it does not exist on the real system.

Projects created by Setup Capture will automatically list virtual drive information for drives that were present at the time of capture.

VirtualDrives is specified as a single string which can hold information for multiple drive letters and optional parameters for those drive letters. The format for VirtualDrives should look like this:

VirtualDrives= Drive=A, Serial=12345678, Type=REMOVABLE; Drive=B, Serial=9ABCDEF0, Type=FIXED

The ';' is used to separate drive letters, and ',' is used to separate parameters for individual drive letters.  
Drive=(single character between 'a' and 'z')  
Serial=(8-digit hex number)  
   FIXED - The drive has fixed media; for example, a hard drive or internal flash drive.  
REMOVABLE - The drive has removable media; for example, a floppy drive, thumb drive, or flash card reader.  
   CDROM - The drive is a CD-ROM drive.  
   RAMDISK - The drive is a RAM disk. 

The simplest usage is to specify a single virtual Drive letter; by default, it will be assigned a serial number and type of FIXED 

This specifies 3 virtual drive letters (X, D, and Z):
Drive X will appear to be a Removable disk with Serial number ff797828
Drive D will appear to be a CD-ROM drive with an automatically assigned Serial number
Drive Z will appear to be a FIXED disk with an automatically assigned Serial number
Note: the ';' character is used to separate information assigned to different drive letters

VirtualDrives=Drive=X, Serial=ff897828, Type=REMOVABLE; Drive=D, Type=CDROM; Drive=Z

How to change the isolation mode for a Virtual Drive:
1. Add the folder "%Drive_X%" to your Thinstall project
2. In the new directory, place an ##Attributes.ini file to specify the isolation mode for this drive letter.

This option requires Thinstall version 3.146 or higher.