(no. 168 on the download list)
-For Nu2menu and XPE
-Info HERE
Nero ImageDrive uses virtual hardware. Therefore the driver cannot be caught by autoDriver.
So I did everything inside the autoHelp_ImageDrive.cmd (including define the driver's INF and SYS)
Because some used registry entries are installation dependent, some registry keys have to be
retreived before using them in the autoHelp.cmd.
If somebody finds a better way, I would be glad to get suggestions.
Regards, psc

autoHelp_ImageDrive.cmd
QUOTE
@ECHO off& Color F8&MODE CON: COLS=73 LINES=20&IF not exist ..\..\REA.cmd ECHO Wrong Directory...&pause&exit
SET SILENT=%1&SET GET=CALL ..\..\REA.cmd
IF not "%SILENT%" == "silent" IF exist start.inf.txt ECHO The plugin is already configured...&pause&exit
IF "%MASTER%" == "" IF "%SILENT%" == "silent" IF exist start.inf goto :EOF
:: ==================================================
:: REATOGO AUTOHELP BASIC PLUGIN SETTINGS
:: ==================================================
%GET% CREDITS "psc" "" "317-104" "24.01.2006" "Ahead\ImageDrive"
%GET% HEAD "530" "ImageDrive.exe" "ImageDrive for Nero 5.5" "disk" "Programs" "" "Rea" "Nu2" ""
:: Homepage URL of the program for Info:
:: IF prog not "free" remove "free"
%GET% INFO "http://ww2.nero.com/nero6/de/Nero_ImageDrive_prev.html"
:: ==================================================
:: CREATING THE REST OF THE PLUGIN
:: Note: PROGPATH is already defined.
:: ==================================================
::Definition of often used key
SET pscControl=HKLM\SYSTEM\CurrentControlSet
::The install informations are different in different setups of ImageDrive.
::So we have to retreive it from the registry
::The information is in %pscControl%\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318}\XXXX"
::Here XXXX may be 0000 or 0001 or 0002 or .....
::The correct one is the subkey where the value MatchingDeviceID equals gen_scsiadapter
::Find that key and write name into RESULT
::This may bring some unimportant 'Access denied' messages which do not prohibit a correct result.
::So in the CALL we supress the error output by redirecting STDERR to nul
CALL pscRegQuery %pscControl%\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318} MatchingDeviceID gen_scsiadapter 2>nul
SET pscInstallKey=%result%
:Get just driver and subkey from pscInstallKey and remove enclosing quotes
CALL pscRegSubKey %pscInstallKey:~1,-1% 2
SET pscDriver=%result%
:: Check
IF {%pscInstallKey%}=={} (
ECHO ImageDrive for Nero 5.5 is not installed correctly.....
pause
CALL RESET_for_TEST.cmd
EXIT
)
%GET% xREG %pscInstallKey% "InfPath" 2>nul
::Save name of the install INF file for use in installing the driver below
SET pscInfName=%result%
::Now to retreive the ControlSet/Enum key for the scsi Information
::It is in one of the subkeys 0000, 0001, ...
::So same check like above
CALL pscRegQuery %pscControl%\Enum\Root\SCSIAdapter Driver %pscDriver% 2>nul
SET pscScsiKey=%result%
IF EXIST Debug (
%LINE%
ECHO ; For Debug: %OUT%
ECHO ; pscInstallKey=%pscInstallKey% %OUT%
ECHO ; pscInfName = %pscInfName% %OUT%
ECHO ; pscScsiKey = %pscScsiKey% %OUT%
ECHO ; pscDriver = %pscDriver% %OUT%
%LINE%
)
::Now the installation files
%GET% FILES "a" "ImageDrive.exe" "" "*.dll" ""
%GET% FILES "4" "imagedrv.sys" ""
%GET% FILES "20" %pscInfName% ""
:: ==================================================
:: REGISTRY SETTINGS
SET Text=HW Information
%GET% REG -h1 -s "%pscControl%\Services\Imagedrv" %OUT%
%GET% REG -h3 -s %pscScsiKey% %OUT%
SET text=User Info
%GET% REG -h1 -S "HKLM\Software\Ahead\ImageDrive\Info" %OUT%
%LINE%
ECHO ; Install Driver %OUT%
ECHO [Default.AddReg]%OUT%
ECHO 0x2, "Software\Microsoft\Windows\CurrentVersion\Run", "ImageDrvSetup", "RunDll32.exe advpack.dll,LaunchINFSection %%WINDIR%%\Inf\%pscInfName%,IMAGEDRV.NTx86" %OUT%
:: ==================================================
:: Uncomment to supress UPX dialog:
SET autoUPX=no
:: ==================================================
:: FINAL CLEANUP
IF exist start.inf rename start.inf start.inf.txt&%GET% FINAL&exit
%GET% FINAL
:: ==================================================
SET SILENT=%1&SET GET=CALL ..\..\REA.cmd
IF not "%SILENT%" == "silent" IF exist start.inf.txt ECHO The plugin is already configured...&pause&exit
IF "%MASTER%" == "" IF "%SILENT%" == "silent" IF exist start.inf goto :EOF
:: ==================================================
:: REATOGO AUTOHELP BASIC PLUGIN SETTINGS
:: ==================================================
%GET% CREDITS "psc" "" "317-104" "24.01.2006" "Ahead\ImageDrive"
%GET% HEAD "530" "ImageDrive.exe" "ImageDrive for Nero 5.5" "disk" "Programs" "" "Rea" "Nu2" ""
:: Homepage URL of the program for Info:
:: IF prog not "free" remove "free"
%GET% INFO "http://ww2.nero.com/nero6/de/Nero_ImageDrive_prev.html"
:: ==================================================
:: CREATING THE REST OF THE PLUGIN
:: Note: PROGPATH is already defined.
:: ==================================================
::Definition of often used key
SET pscControl=HKLM\SYSTEM\CurrentControlSet
::The install informations are different in different setups of ImageDrive.
::So we have to retreive it from the registry
::The information is in %pscControl%\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318}\XXXX"
::Here XXXX may be 0000 or 0001 or 0002 or .....
::The correct one is the subkey where the value MatchingDeviceID equals gen_scsiadapter
::Find that key and write name into RESULT
::This may bring some unimportant 'Access denied' messages which do not prohibit a correct result.
::So in the CALL we supress the error output by redirecting STDERR to nul
CALL pscRegQuery %pscControl%\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318} MatchingDeviceID gen_scsiadapter 2>nul
SET pscInstallKey=%result%
:Get just driver and subkey from pscInstallKey and remove enclosing quotes
CALL pscRegSubKey %pscInstallKey:~1,-1% 2
SET pscDriver=%result%
:: Check
IF {%pscInstallKey%}=={} (
ECHO ImageDrive for Nero 5.5 is not installed correctly.....
pause
CALL RESET_for_TEST.cmd
EXIT
)
%GET% xREG %pscInstallKey% "InfPath" 2>nul
::Save name of the install INF file for use in installing the driver below
SET pscInfName=%result%
::Now to retreive the ControlSet/Enum key for the scsi Information
::It is in one of the subkeys 0000, 0001, ...
::So same check like above
CALL pscRegQuery %pscControl%\Enum\Root\SCSIAdapter Driver %pscDriver% 2>nul
SET pscScsiKey=%result%
IF EXIST Debug (
%LINE%
ECHO ; For Debug: %OUT%
ECHO ; pscInstallKey=%pscInstallKey% %OUT%
ECHO ; pscInfName = %pscInfName% %OUT%
ECHO ; pscScsiKey = %pscScsiKey% %OUT%
ECHO ; pscDriver = %pscDriver% %OUT%
%LINE%
)
::Now the installation files
%GET% FILES "a" "ImageDrive.exe" "" "*.dll" ""
%GET% FILES "4" "imagedrv.sys" ""
%GET% FILES "20" %pscInfName% ""
:: ==================================================
:: REGISTRY SETTINGS
SET Text=HW Information
%GET% REG -h1 -s "%pscControl%\Services\Imagedrv" %OUT%
%GET% REG -h3 -s %pscScsiKey% %OUT%
SET text=User Info
%GET% REG -h1 -S "HKLM\Software\Ahead\ImageDrive\Info" %OUT%
%LINE%
ECHO ; Install Driver %OUT%
ECHO [Default.AddReg]%OUT%
ECHO 0x2, "Software\Microsoft\Windows\CurrentVersion\Run", "ImageDrvSetup", "RunDll32.exe advpack.dll,LaunchINFSection %%WINDIR%%\Inf\%pscInfName%,IMAGEDRV.NTx86" %OUT%
:: ==================================================
:: Uncomment to supress UPX dialog:
SET autoUPX=no
:: ==================================================
:: FINAL CLEANUP
IF exist start.inf rename start.inf start.inf.txt&%GET% FINAL&exit
%GET% FINAL
:: ==================================================
Note for users not using the reatogo setup:
The plugin depends on certain files to be in the PEbuilder root.
Download Getting_Started.exe and run it in your folder "plugin". This will put those depends into your setup and then present you with the list of all available autoHelp plugins, including this one.
Get it here