[Main]
Title=Imdisk_Installer
Type=Plugin
Author=Lancelot, Galapo
Description=(v2.0.9) This Plugin checks the existance and version of Imdisk to install or update unattendedly (automatically). Other Plugins that requires Imdisk can call this plugin to install or update Imdisk.
Credits=fxscrpt (all codes taken from fxscrpt 1 - RegFactory Plugin)
Version=036
Download_Level=0
Level=10
Selected=None
Mandatory=True
NoWarning=False
Contact=http://TheOven.org
Date=2016.10.02
Depend=
Disable=
Web1=http://gena.cwcodes.net/Projects/Gena/Utils/Imdisk_Installer.script
CertifiedBy=
Certification=
HistoryNotes01=Gena: RegFactory, BootSdi, Wimpack need to call this plugin
History001=Lancelot imdisk installer codes taken from 1 - RegFactory plugin of fxscprt
History001=Lancelot A part of [checkimdisk] added, some lines commented out // , dir check projecttemp line added, %ImDiskInstallerScript% added and replaced.
History006=Lancelot new imdisk added // some nice additions to plugin
History009=Galapo updated ImDisk to v.1.2.8
History010=Galapo updated ImDisk to v.1.3.0; added [InstallPE] and corresponding sections
History011=Galapo updated ImDisk to v.1.3.1
History012=Galapo added [ImDisk-Install-Check] section
History013=Lancelot ImDisk-Install-Check-Button to get very visible result when button used with both message and a set of echos
History015=Galapo updated ImDisk to v.1.4.1
History016=Galapo updated ImDisk to v.1.4.2
History017=Lancelot IniVariables ImDiskInstaller Plugin
History018=Galapo updated ImDisk to v.1.5.2
History019=Lancelot added PE23 support following JonF codes
History020=Lancelot updated ImDisk to v.1.5.3
History021=ChrisR updated ImDisk to v.1.5.7 built 16 Feb 2012
History022=ChrisR updated ImDisk to v.1.6.0 built 04 Nov 2012
History023=fuwi updated ImDisk to v.1.7.4 built 13 Jun 2013
History024=Galapo updated ImDisk to v.1.7.5
History025=ChrisR updated ImDisk to v.1.7.6 built 25 Oct 2013
History026=ChrisR updated ImDisk to v.1.8.0 built 01 May 2014
History027=ChrisR updated ImDisk to v.1.8.2 built 21 June 2014
History028=ChrisR updated ImDisk to v.1.8.4 built 10 July 2014
History029=ChrisR updated ImDisk to v.1.8.5 built 19 Sept 2014
History029=ChrisR updated ImDisk to v.1.9.2 built 17 Dec 2014
History031=ChrisR updated ImDisk to v.1.9.4 built 01 April 2015
History032=Lancelot Added DU Buttons // Cosmetics
History033=ChrisR updated ImDisk to v.2.0.6 built 17 August 2015
History034=ChrisR updated ImDisk to v.2.0.7 built 16 November 2015
History035=ChrisR updated ImDisk to v.2.0.9 built 16 December 2015 - Date:2016.02.05
History036=Lancelot updated ImDisk to v.2.0.9 built 26 August 2016 (Info: new file imdisk.cpl.manifest -> not added yet) - Date:2016.10.02

[Interface]
Install_Imdisk_Button="Install or Update Imdisk Unattended (Automatically)",1,8,-1,112,258,48,Install_Imdisk_Button_Process,_Install_Imdisk_Button_Process_,False
pTextLabel1="Tip: After Installation you can find 'Imdisk Gui' in 'Control Panel'",0,1,34,335,133,41,8,Normal
shellexecuteex_imdisk_cpl_Button="Open 'Imdisk Gui'",1,8,30,173,95,25,shellexecuteex_imdisk_cpl,_shellexecuteex_imdisk_cpl_,False,"__After Installation you can find 'Imdisk Gui' in 'Control Panel'"
pWebLabel1="ImDisk HomePage",1,10,323,214,85,18,http://www.ltr-data.se/opencode.html#ImDisk
pTextLabel2="ImDisk is a virtual disk driver for Windows NT/2000/XP/Vista/7/8/8.1 or Windows Server 2003/2008/2012 ......#$x   Works on both 32-bit and 64-bit versions of Windows",1,1,7,14,349,45,8,Normal
pTextLabel3="Note: This Plugin is a Mandatory for some other Plugins..",1,1,11,260,283,18,8,Normal
pTextLabel4="Certificated for 3 years (up to 2016-03-18 and later) so now easily run on Vista/Win7/Win8/W2008/W2012-x64 HostOS",1,1,99,69,305,35,8,Normal
Uninstall_Imdisk_Button="UnInstall Imdisk",1,8,7,214,94,39,Uninstall_Imdisk_Button_Process,_Uninstall_Imdisk_Button_Process_,False
pButton1="Check if ImDisk installed OK",1,8,271,113,148,47,ImDisk-Install-Check-Button,0,False,False,_ImDisk-Install-Check-Button_,False
pWebLabel2="Plugin Page",1,10,338,0,55,18,http://TheOven.org/index.php?board=9
Button_Download=,1,8,403,21,24,24,DownloadXXX,DoubleJDesignRavenna3dArrowDown0016016.bmp,False,False,_DownloadXXX_,False,"__DOWNLOAD Plugin"
Button_Upload=,1,8,403,-1,24,24,UploadXXX,BokehliciaCaptivaSoftwareupload0016016.bmp,False,False,_UploadXXX_,False,"__UPLOAD Plugin (Admins Only)"
Button_CompareEdit=,1,8,426,-1,24,24,CompareEditXXX,AmperossQetto2Move0016016.bmp,False,False,_CompareEditXXX_,False,"__DOWNLOAD and Compare with an Editor"

[Examples]
IniRead,%ProjectDir%\Script.Project,IniVariables,ImDiskInstallerScript,%ImDiskInstallerScript%
Exec,%ImDiskInstallerScript%,checkimdisk
//--
Exec,%ImDiskInstallerScript%,InstallPE
//--
Exec,%ImDiskInstallerScript%,Imdisk_Extract
//--

[Process]
Run,%ScriptFile%,InstallPE
Echo,"There is no spoon."
Message,"This Plugin provides unattended installation of Imdisk for plugins that require Imdisk#$c it does not 'run'.",information,10

[InstallPE]
If,%OSFamily%,Equal,NT5,Run,%ScriptFile%,InstallPE1
If,%OSFamily%,Equal,NT6,Run,%ScriptFile%,InstallPE23

[InstallPE1]
Run,%ScriptFile%,Imdisk_Extract
//--
If,%SourceArch%,Equal,x86,Set,%folder%,i386
If,%SourceArch%,Equal,x64,Set,%folder%,amd64
If,%SourceArch%,Equal,IA64,Set,%folder%,ia64
FileCopy,%ImDiskInstallerExtract%\E\sys\%folder%\imdisk.sys,%Target_Sys%\drivers
FileCopy,%ImDiskInstallerExtract%\E\cli\%folder%\imdisk.exe,%Target_Sys%
FileCopy,%ImDiskInstallerExtract%\E\svc\%folder%\imdsksvc.exe,%Target_Sys%
FileCopy,%ImDiskInstallerExtract%\E\cpl\%folder%\imdisk.cpl,%Target_Sys%
FileCopy,%ImDiskInstallerExtract%\E\awealloc\%folder%\awealloc.sys,%Target_Sys%\drivers
//ShellExecute,Hide,cmd.exe,"/C rd /s /q #$q%ImDiskInstallerExtract%#$q"
//--
RegHiveLoad,Tmp_System,%RegSystem%
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\Services\ImDisk,Type,1
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\Services\ImDisk,Start,3
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\Services\ImDisk,ErrorControl,0
RegWrite,HKLM,0x2,Tmp_System\ControlSet001\Services\ImDisk,ImagePath,system32\DRIVERS\imdisk.sys
RegWrite,HKLM,0x1,Tmp_System\ControlSet001\Services\ImDisk,DisplayName,"ImDisk Virtual Disk Driver"
RegWrite,HKLM,0x1,Tmp_System\ControlSet001\Services\ImDisk,Description,"Disk emulation driver"
RegWrite,HKLM,0x3,Tmp_System\ControlSet001\Services\ImDisk\Security,Security,01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\Services\ImDskSvc,Type,16
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\Services\ImDskSvc,Start,3
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\Services\ImDskSvc,ErrorControl,0
RegWrite,HKLM,0x2,Tmp_System\ControlSet001\Services\ImDskSvc,ImagePath,#$pSystemRoot#$p\system32\imdsksvc.exe
RegWrite,HKLM,0x1,Tmp_System\ControlSet001\Services\ImDskSvc,DisplayName,"ImDisk Virtual Disk Driver Helper"
RegWrite,HKLM,0x1,Tmp_System\ControlSet001\Services\ImDskSvc,ObjectName,LocalSystem
RegWrite,HKLM,0x1,Tmp_System\ControlSet001\Services\ImDskSvc,Description,"Helper service for ImDisk Virtual Disk Driver."
RegWrite,HKLM,0x3,Tmp_System\ControlSet001\Services\ImDskSvc\Security,Security,01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00
RegWrite,HKLM,0x7,Tmp_System\ControlSet001\Control\Lsa,Authentication Packages,msv1_0
RegWrite,HKLM,0x3,Tmp_System\ControlSet001\Control\Lsa,Bounds,00,30,00,00,00,20,00,00
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\Control\Lsa,restrictanonymous,0x0
RegHiveUnLoad,Tmp_System

[InstallPE23]
Run,%ScriptFile%,Imdisk_Extract
//--
If,%SourceArch%,Equal,x86,Set,%folder%,i386
If,%SourceArch%,Equal,x64,Set,%folder%,amd64
If,%SourceArch%,Equal,IA64,Set,%folder%,ia64
FileCopy,%ImDiskInstallerExtract%\E\sys\%folder%\imdisk.sys,%Target_Sys%\drivers
FileCopy,%ImDiskInstallerExtract%\E\cli\%folder%\imdisk.exe,%Target_Sys%
FileCopy,%ImDiskInstallerExtract%\E\svc\%folder%\imdsksvc.exe,%Target_Sys%
FileCopy,%ImDiskInstallerExtract%\E\cpl\%folder%\imdisk.cpl,%Target_Sys%
FileCopy,%ImDiskInstallerExtract%\E\awealloc\%folder%\awealloc.sys,%Target_Sys%\drivers
//ShellExecute,Hide,cmd.exe,"/C rd /s /q #$q%ImDiskInstallerExtract%#$q"
//--
RegHiveLoad,Tmp_System,%RegSystem%
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\Services\ImDisk,Type,1
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\Services\ImDisk,Start,2
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\Services\ImDisk,ErrorControl,0
RegWrite,HKLM,0x1,Tmp_System\ControlSet001\Services\ImDisk,ImagePath,system32\DRIVERS\imdisk.sys
RegWrite,HKLM,0x1,Tmp_System\ControlSet001\Services\ImDisk,DisplayName,"ImDisk Virtual Disk Driver"
RegWrite,HKLM,0x1,Tmp_System\ControlSet001\Services\ImDisk,Description,"Disk emulation driver"
RegWrite,HKLM,0x3,Tmp_System\ControlSet001\Services\ImDskSvc\Security,Security,01,00,14,80,90,00,00,00,9C,00,00,00,14,00,00,00,30,00,00,00,02,00,1C,00,01,00,00,00,02,80,14,00,FF,01,0F,00,01,01,00,00,00,00,00,01,00,00,00,00,02,00,60,00,04,00,00,00,00,00,14,00,FD,01,02,00,01,01,00,00,00,00,00,05,12,00,00,00,00,00,18,00,FF,01,0F,00,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,00,00,00,14,00,8D,01,02,00,01,01,00,00,00,00,00,05,0B,00,00,00,00,00,18,00,FD,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\Services\ImDskSvc,Type,16
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\Services\ImDskSvc,Start,3
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\Services\ImDskSvc,ErrorControl,0
RegWrite,HKLM,0x2,Tmp_System\ControlSet001\Services\ImDskSvc,ImagePath,#$pSystemRoot#$p\system32\imdsksvc.exe
RegWrite,HKLM,0x1,Tmp_System\ControlSet001\Services\ImDskSvc,DisplayName,"ImDisk Virtual Disk Driver Helper"
RegWrite,HKLM,0x1,Tmp_System\ControlSet001\Services\ImDskSvc,ObjectName,LocalSystem
RegWrite,HKLM,0x1,Tmp_System\ControlSet001\Services\ImDskSvc,Description,"Helper service for ImDisk Virtual Disk Driver."
RegHiveUnLoad,Tmp_System

[Imdisk_Extract]
Set,%ImDiskInstallerExtract%,%ProjectTemp%\ImDiskExtract
If,ExistDir,%ImDiskInstallerExtract%,ShellExecute,Hide,cmd.exe,"/C rd /s /q #$q%ImDiskInstallerExtract%#$q"
DirMake,%ImDiskInstallerExtract%\E
ExtractFile,%ScriptFile%,files,imdiskinst.exe,%ImDiskInstallerExtract%
ShellExecute,Hide,%Tools%\7z.exe,"x #$q%ImDiskInstallerExtract%\imdiskinst.exe#$q -y -o#$q%ImDiskInstallerExtract%\E#$q"

[checkimdisk]
IniRead,%ProjectDir%\Script.Project,IniVariables,ImDiskInstallerScript,%ImDiskInstallerScript%
If,%ImDiskInstallerScript%,Equal,"",Begin
IniWrite,%ProjectDir%\Script.Project,IniVariables,ImDiskInstallerScript,%ScriptFile%
Set,%ImDiskInstallerScript%,%ScriptFile%
End
If,Not,ExistFile,%ImDiskInstallerScript%,Begin
IniWrite,%ProjectDir%\Script.Project,IniVariables,ImDiskInstallerScript,%ScriptFile%
Set,%ImDiskInstallerScript%,%ScriptFile%
End
//-
Set,%apiregimdiskfound%,""
Call,HostSystemDir
Set,%tmp%,%HostSystemDir%
System,FILEREDIRECT,ON
If,ExistFile,"%tmp%\imdisk.exe",Set,%apiregimdiskfound%,"1"
System,FILEREDIRECT,OFF
If,ExistFile,"%tmp%\imdisk.exe",Set,%apiregimdiskfound%,"1"
System,FILEREDIRECT,ON
If,%apiregimdiskfound%,Equal,"1",Begin
Set,%apiregimdiskver%,""
System,FILEREDIRECT,ON
System,ERROROFF
If,%apiregimdiskver%,Equal,"",Retrieve,FILEVERSION,"%tmp%\imdisk.exe",%apiregimdiskver%
System,FILEREDIRECT,OFF
System,ERROROFF
If,%apiregimdiskver%,Equal,"",Retrieve,FILEVERSION,"%tmp%\imdisk.exe",%apiregimdiskver%
If,%apiregimdiskver%,SMALLER,"1.1.3.23",Set,%apiregimdiskfound%,""
End
If,%apiregimdiskfound%,Equal,"",Begin
//Set,%answer%,no
//If,ExistVar,%RegFactoryState%,Begi-n
//If,%RegFactoryState%,Equal,enabled,Begi-n
//If,Question,"Imdisk driver not found.#$xBoot time registration will be used.#$x#$xInstall Imdisk driver to enable build time registration?",10,False,Set,%answer%,yes
//History13
Set,%answer%,yes
//En-d
//En-d
If,%answer%,Equal,yes,Begin
If,Not,ExistDir,%ProjectTemp%,DirMake,%ProjectTemp%
//ExtractFile,%ScriptFile%,files,imdiskinst.exe,%ProjectTemp%
ExtractFile,%ImDiskInstallerScript%,files,imdiskinst.exe,%ProjectTemp%
ShellExecuteDelete,hide,%ProjectTemp%\imdiskinst.exe,-y
End
End

[Install_Imdisk_Button_Process]
If,Not,ExistDir,%ProjectTemp%,DirMake,%ProjectTemp%
ExtractFile,%ScriptFile%,files,imdiskinst.exe,%ProjectTemp%
ShellExecuteDelete,hide,%ProjectTemp%\imdiskinst.exe,-y

[Uninstall_Imdisk_Button_Process]
If,ExistRegKey,HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ImDisk,UninstallString,Begin
Set,%answer%,No
If,Question,"Are you sure you want to remove#$x#$xWonnnnderfull Application#$x#$x#$xIMDISK by Olof Lagerkvist :)#$x#$x#$xfrom your HostOS ?#$x",Set,%answer%,Yes
If,%answer%,Equal,Yes,Begin
If,ExistRegKey,HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ImDisk,UninstallString,RegRead,HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ImDisk,UninstallString,%UninstallStringValue%
System,REGREDIRECT,64
If,ExistRegKey,HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ImDisk,UninstallString,RegRead,HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ImDisk,UninstallString,%UninstallStringValue%
System,REGREDIRECT,OFF
If,ExistVar,%UninstallStringValue%,Begin
Call,HostWindowsDir
System,FileREDIRECT,OFF
ShellExecuteEx,Hide,cmd.exe,"/c %UninstallStringValue%",%HostWindowsDir%
System,FileREDIRECT,ON
End
End
End
Else,Begin
Message,"You have not install imdisk yet #$x What are you doing.... #$x#$x  Wash your face and install imdisk :)",Information,5
End

[shellexecuteex_imdisk_cpl]
Call,HostSystemDir
System,FILEREDIRECT,OFF
If,ExistFile,%HostSystemDir%\imdisk.cpl,ShellExecuteex,Hide,cmd.exe,"/C #$q%HostSystemDir%\imdisk.cpl#$q",%HostSystemDir%
If,NotExistFile,%HostSystemDir%\imdisk.cpl,Message,"Imdisk (imdisk.cpl) not found ! Try Installing",Information,10
System,FILEREDIRECT,ON

[ImDisk-Install-Check-Button]
Set,%ImdiskWritesSuccessfully%,No
Run,%ScriptFile%,ImDisk-Install-Check
If,%ImdiskWritesSuccessfully%,Equal,YES,Call,Echo,"Imdisk Works nicely :>",,,MessageInformation,10

[ImDisk-Install-Check]
If,Not,EXISTDIR,%ProjectTemp%,DirMake,%ProjectTemp%
If,EXISTFILE,%ProjectTemp%\ImDisk_check_file.img,FileDelete,%ProjectTemp%\ImDisk_check_file.img
If,EXISTFILE,%ProjectTemp%\ImDisk_check_file.img,Begin
Message,"ImDisk install error: '%ProjectTemp%\ImDisk_check_file.img' could not be deleted.",ERROR
Exit,"ImDisk install error: '%ProjectTemp%\ImDisk_check_file.img' could not be deleted."
End
Set,%ImDiskInstalled%,True
Call,HostSystemDir
System,FILEREDIRECT,OFF
If,Not,EXISTFILE,%HostSystemDir%\imdisk.exe,Set,%ImDiskInstalled%,False
System,FILEREDIRECT,ON
If,%ImDiskInstalled%,Equal,False,Begin
Message,"ImDisk install error: '%HostSystemDir%\imdisk.exe' could not be found.",ERROR
Exit,"ImDisk install error: '%HostSystemDir%\imdisk.exe' could not be found."
End
Else,Echo,"ImDisk install success: '%HostSystemDir%\imdisk.exe' was found."
ShellExecute,Hide,fsutil.exe,"file createnew #$q%ProjectTemp%\ImDisk_check_file.img#$q 52428800"
If,Not,ExistFile,%ProjectTemp%\ImDisk_check_file.img,Begin
Message,"ImDisk install error: '%ProjectTemp%\ImDisk_check_file.img' could not be created by fsutil.exe.",ERROR
Exit,"ImDisk install error: '%ProjectTemp%\ImDisk_check_file.img' could not be created by fsutil.exe."
End
Else,Echo,"ImDisk install success: '%ProjectTemp%\ImDisk_check_file.img' was created by fsutil.exe."
Wait,2
System,GETFREEDRIVE,%FreeLetter%
System,FILEREDIRECT,OFF
ShellExecute,Hide,%HostSystemDir%\imdisk.exe,"-a#$s-t#$sfile#$s-b#$s0#$s-f#$s#$q%ProjectTemp%\ImDisk_check_file.img#$q#$s-o#$srw#$s-m#$s%FreeLetter%"
System,FILEREDIRECT,ON
ShellExecute,Hide,format.com,"%FreeLetter% /FS:NTFS /V:ImDisk_check_file /X /force /Q"
If,Not,EXISTDIR,%FreeLetter%\,Begin
Message,"ImDisk install error: Drive %FreeLetter% was not mounted and formatted successfully.",ERROR
Exit,"ImDisk install error: Drive %FreeLetter% was not mounted and formatted successfully."
End
Else,Echo,"ImDisk install success: Drive %FreeLetter% was mounted and formatted successfully."
ShellExecute,Open,cmd,"/C Echo 1>%FreeLetter%\test.txt"
If,Not,ExistFile,%FreeLetter%\test.txt,Begin
Message,"ImDisk install error: Drive %FreeLetter% could not be written to.",ERROR
Exit,"ImDisk install error: Drive %FreeLetter% could not be written to."
End
Else,Begin
Echo,"ImDisk install success: Drive %FreeLetter% could be written to."
Set,%ImdiskWritesSuccessfully%,YES
End
System,FILEREDIRECT,OFF
ShellExecute,Hide,%HostSystemDir%\imdisk.exe,"-d#$s-m#$s%FreeLetter%"
System,FILEREDIRECT,ON
Run,%ScriptFile%,umountimage-pre,%FreeLetter%\
FileDelete,%ProjectTemp%\ImDisk_check_file.img

[umountimage-pre]
Set,%ImDiskDrive%,#1,PERMANENT
Run,%ScriptFile%,umountimage
If,%ImDiskDrive%,Equal,"",Begin
//Message,"Detached ImDisk HDD.",Information,3
Echo,"ImDisk install success: Detached ImDisk HDD."
End
Else,Begin
Message,"ImDisk install error: Failed to detach ImDisk HDD.",Error,3
Echo,"ImDisk install error: Failed to detach ImDisk HDD.",WARN
End
Set,%ImDiskDrive%,NIL,PERMANENT

[umountimage]
If,Not,EXISTVAR,%ImDiskDrive%,Begin
Set,%ImDiskDrive%,"",PERMANENT
System,REBUILDVARS
End
Set,%ImDiskFreedrive%,%ImDiskDrive%
If,Not,%ImDiskFreedrive%,Equal,"",Begin
If,ExistDir,"%ImDiskFreedrive%",Begin
If,ExistDir,%ImDiskFreedrive%,Run,%ScriptFile%,ImdiskWait
If,ExistDir,%ImDiskFreedrive%,Run,%ScriptFile%,ImdiskWait
If,ExistDir,%ImDiskFreedrive%,Run,%ScriptFile%,ImdiskWait
If,ExistDir,%ImDiskFreedrive%,Run,%ScriptFile%,ImdiskWait
If,ExistDir,%ImDiskFreedrive%,Run,%ScriptFile%,ImdiskWait
If,ExistDir,%ImDiskFreedrive%,Run,%ScriptFile%,ImdiskWait
If,ExistDir,%ImDiskFreedrive%,Run,%ScriptFile%,ImdiskWait
If,ExistDir,%ImDiskFreedrive%,Run,%ScriptFile%,ImdiskWait
If,ExistDir,%ImDiskFreedrive%,Run,%ScriptFile%,ImdiskWait
If,ExistDir,%ImDiskFreedrive%,Run,%ScriptFile%,ImdiskWait
End
If,Not,ExistDir,%ImDiskFreedrive%,Begin
Set,%ImDiskDrive%,"",PERMANENT
System,REBUILDVARS
End
Else,Begin
Set,%infomassage%,"Failed to detach ImDisk HDD.#$x"
Set,%infomassage%,"%infomassage%Please detach ImDisk HDD manually:#$x"
Set,%infomassage%,"%infomassage%Navigate in Windows Explorer to drive '%pTextBox3%'.#$x"
Set,%infomassage%,"%infomassage%From context menu of drive '%pTextBox3%' #$xselect 'Unmount ImDisk Virtual Disk'.#$x"
Set,%infomassage%,"%infomassage%Wait until ImDisk HDD is detached and continue."
Echo,"Waiting Response from user for The Message on Screen"
Message,%infomassage%,Information
If,Not,ExistDir,%ImDiskFreedrive%,Begin
Set,%ImDiskDrive%,"",PERMANENT
System,REBUILDVARS
End
End
End

[ImdiskWait]
Wait,1
Wait,1
Wait,1

[DownloadXXX]
Call,DownloadXQ

[UploadXXX]
Call,UploadXMultiQ,,%ProjectDir%\Utils\WebRoots_SE_Gena.Script||WebRoot

[AuthorEncoded]
Imdisk.jpg=3786,5048
Logo=Imdisk.jpg

[InterfaceEncoded]
DoubleJDesignRavenna3dArrowDown0016016.bmp=622,830
BokehliciaCaptivaSoftwareupload0016016.bmp=676,902
AmperossQetto2Move0016016.bmp=893,1191

[EncodedFile-InterfaceEncoded-DoubleJDesignRavenna3dArrowDown0016016.bmp]
lines=0
0=eJzNk09Ik2Ecxw06BF2KqG5ih1EgYZZu7+v7vnu3d++2MpelRFHgQZEaJLVIXSxrW4Wauf7Nwha2rQ7dOgT9IQT1EkQHi+hSHfRSUZrMcp389PjSoUib3vrB9/I8fD78fr+Hxwi0LS+yyi6ySWSVyGqRZUUl1rnr1/3vBfy3+TTxkabuAzx4dp+lsu/G31LRXIrjaCmeVjtfpj4v2jH+YQwpWIYc3orctgUptJkT/UcWxc/1rLXYqYpKqGcklEglcns5DuF48uLhPx2TUxOYIRWlU8PZraOdU1GjMsop4RO9+DucfM1NzuvIfctR3Wai9hq4rvrREybOCy608xpqrAqlQzhObiOSbv2Ln8nPsDvsZ33dSoob1mE7XIIsetAvCUePG63TiRpXUE47rJ0MvRz8wzH9fZqR0SHSj1LUhn2s8a6gMi7hTm7HddmLftHA2aVT2mJjY3Mx7naJ/I/8vHN0Zc5avKNLw+gP4O7bgeuKD73XQyDqI5QM8ur96IJ7jKUiFi8nDDwDezBuCsf1amsnA4Opgm8Y7jtu8UrSj3lnL+btOjypXRg3dpIdThfkjyWCFu9M1eC7tx/vXeFIC8etWjKL4IPdTRZfFqtAvua1PJ5sPWamnuxIpiD/9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Z2uh3sbUhTkkGka3hJmFKwGoxVctrud3dXA7b/tM8FpvRoPjohMwj4fF4zb+ipoWBVc5spCdkcxQeLmG+QS3q+092++cXtD0xo/IsVeloVJP39dXlxABfXBsbvFhnzAUsoac/DvDR1KxCGcs3Gbk//OKEZKYGdenv+Arn8728N4av0jbTW+5YfvLmjf7JO5vSmPzIVqTCk6yXjJ+fHwzkZ28PtyQ+imN+pNH8GGuD+fle3pyScX1xdbplwxvWQ4Hz7SZFrdCfPetM3t/LP//puVGz8dEEThuJyp/Ki8mVfv5jRQnLeg+rcTIvvAMWa/Jqt5oO7sEXv7zAhvuuAxcazCuYIb49fVt8KElD+RRlhWi0n8w3Dm6fCoisu6cw4Q5l7jH/LVLolX2234u9vHSNjNj+tuLTLI9MORm3PMKrXARQClAtbW/zoisD5brRkYWTzdV14RV/SpfXvxvlowkZlZTcLrzSg6OUIb+jbHimBCmXTVI7FYe+/Zt1EreFsXC0J48fBQsWKXvCUuXCiwqJIoxqljhRZlROFOoBceu48D4kJOW3BpVhyHa2NvAIw9jO1/jBEfCCx5iFQX6gxZ/yTzhV5gOG58uD1XtvgXddyIqvwiYaPMgQhUibM8WRY3FA/MuuT7M3knf+EX76FeGyHWjzMwWDT4wcu/hR6H2y8wk1COZMJXn3n7l9pm0rgpaPNlnsGIS+/yQJF/CgD3spmmzCVJnGZXVH3nwveM8LCr6WF2uWwliXD5wfabBoyRIyirr54N+R326Z9fvvOBOG7DW5CK/IWezkxktCPl3s9I+wX+z2c91+9iXv3vWq2/E6s+iN4/vneH+N7/D+OzL+QNafyAXu9uVZ9NaEvwDrzA8FeJzj98xNySzOjvdMzs/Ty0zOZxgFIwrs44HQ0azY5fs+HdzLwAQAaG4J7KQvXTUBAAAAAgAAACsAAABbBQAAAAAAAAEAAAAAAAAAAAAAAA

[Icon]
Imdisk_Icon.ico=1450,1934

[files]
imdiskinst.exe=330249,440332

[EncodedFile-AuthorEncoded-Imdisk.jpg]
lines=1
[encoded data, 5052 characters]

[EncodedFile-files-imdiskinst.exe]
lines=107
[encoded data, 440654 characters]

[CompareEditXXX]
Call,CompareEdit

[EncodedFile-InterfaceEncoded-AmperossQetto2Move0016016.bmp]
lines=0
0=eJxtk1lIVFEYxw16agEVzTRncRtt0cx0NCu0QlsgyyCih7Cgh6KFNgQzSsqnFohUEm3FlqmsVGxxxoxSyYkpTcctsiKXtCZ1mPXee878++5o4YMf/DjfnXN+//sdmLt2s3amj7e0RAzhO8kMH7XPv/KfPcF0NXd7RXRg3ufCoDMD+nkFQ8Z5BYOTDBmDCgYNgXlfCudsq4yZzg3I7ToSfMHmVJQBilLi6pT1X097IZdsroBc87GpblB+zwHVNUBJ50JLBAQUSVhQIkJB/X+KBYQWCd4s1XUgKL/3kOz6HTYpQ4scbq9fLsL/ooAV50ahueKE8oYI1TWBoLVcgLKMKJWf6T1XHILv8WaVothyMlwHqG+KmHVJxKHbFnjs49j5zAnf2xyqexLC74hewm6JdE6AmjLDH1BGseVU2E17VeRjIIBmPFhhASQnnneK0Fy2IYaIKHEi9C6DXxmDWscQeY+yKkREPpLfaa+JuO/Wh5C/9bEd4C7INWyxw/bbCmnUiuZeK9bpHDhfY0FkuQvKSo6ohxKiqoCIu+76qEp3XUQtkFDL0DYm2x4863bjdAdwthfY0QKsMYjgYNDTAQVlqJ9yLHwBaB66DdFPhbol9TRLDUPsS4bWMQ+sYw6kVjuwhmbaXzuOvTVWVJtpPkqpbx/DYp0b0a+AmGrBsKhWMMS+AWL1dDcipZGhctiDHSYRbRY3OSIhYdwlYaI4cppdCGsAFr8Q6uNeiU/iacalrxkSyI1ropxGCXEtDGs/cmxq50hrlvCkx+G9W/F3DzQNDLITpxerEhrFE0ntwLK3DInvGLTvGZI/0BytHInka0wce9tpDo+E0gEPwuncUkJ2ljeJuUlGzNcamS3pA8iVkEJO6ieOVR2EmXpaN3Zz7PviQbyJPMrXfgSSjcy+2mQPlv+DaR3CrrSvQGon0caxmry0Lo508tJ7KIf6BLqHvLeyC0j/RpiFnKnf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