Skip Ribbon Commands
Skip to main content

Distribution

:

Application Configuration Notes: Virtual CloneDrive

Documentation and logs for UVM OS and application distribution methodologies

Virtual CloneDrive is a CD/DVD drive emulator for Windows. It can mount a variety of optical drive images, presenting them as "real" drives to the end user. This saves a lot of money in DVD-R disks.

This product is resistant to unattended installation owing to the use of drivers with "untrusted" signatures. We have managed to automate approval of driver installation by using "AutoIT" scripting language. We need to do some conditional statements based on OS version and processor architecture. This is necessary because 64-bit installations do not work at present, and because the Windows Security dialogs appear different under Windows 7 and Vista

We compile the installer into an executable using the AutoIT compiler. Unfortunately, this is a fragile script that is prone to failure, especially during servuce pack changes, and when run on anything other than a fresh OS (i.e.the script is known to fail when run over existing installations of Virtual CloneDrive).


#RequireAdmin
; This script requires full Administrative rights

; Installs ELBY Virtual CloneDrive in unattended mode.
; Exits with errorcode "2" if installer times out
Dim $PID
 $PID = Run("SetupVirtualCloneDrive5.exe /S")
;NOTE: @OSVersion still reports "WIN_VISTA" for Windows 7. Be prepared for this to change! If (@OSBuild >= 6000 And @OSBuild <= 6005) And @OSArch = "X86" Then ; MsgBox(0x2010, "TEST: You should be running Windows 7") WinWait("Windows Security", "", 240) WinActivate("Windows Security") ControlClick("Windows Security", "", "[CLASS:Button; INSTANCE:2]") ElseIf @OSBuild >= 7100 And @OSArch = "X86" Then WinWait("Windows Security", "", 240) WinActivate("Windows Security") ControlClick("Windows Security", "", "[CLASS:Button; INSTANCE:1]") EndIf If ProcessWaitClose($PID, 300) Then Exit ;Wait up to 5 minutes for the installer to complete before erroring-out. MsgBox(0x2010, "Virtual CloneDrive Installation Error", "The Installer failed to complete in the time allowed." _ & @CRLF & "Check the Control Panel for Application installation status.", 10) Exit (2)