Mr. Danny, on May 28 2005, 10:25 AM, said:
ummm...if that was directed towards my question, could you dumb it down a little for me. Like alot. Put it in the tongue of the n00bs.
<{POST_SNAPBACK}>
<{POST_SNAPBACK}>
I'm using CMDLINES.TXT in $OEM$ folder to call a batch script. In that batch script
alcohol setup is executed. There is no hardware wizard window popping up and
the alcohol setup's mandatory reboot is done by windows setup anyway.
Since i'm using T-13 sequence to install Alcohol, i'm left with RunOnceEx to do
another neat thing : making alcohol virtual drive available on the first user logon !
The example code segment should be saved as .reg file and imported
during T-13 sequence via REGEDIT /S X:\myfolder\myfile.reg where X: represents
the location of target drive (either system drive or cdrom, but that's OT).
NOTE : The CMDOW command is from RyanVM pack. Here's excerpt from my
registry file :
Windows Registry Editor Version 5.0 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx] "TITLE"="One-time final system setup" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\001] @="Setting up Alcohol virtual drives" "1"="CMD.EXE /C CMDOW.EXE /RUN \"%PROGRAMFILES%\\Alcohol Soft\\Alcohol 120\\Alcohol.exe\"" "2"="SLEEP.EXE 5" "3"="CMDOW.EXE \"Alcohol 120%\" /HID" "4"="SLEEP.EXE 60" "5"="CMDOW.EXE \"Alcohol 120%\" /CLS"
Sequence explained line by line :
LINE 1 :
In this line Alcohol is executed as background task. This means that when
Alcohol is run, the execution sequence continues. This is crucial ! If Alcohol is not
started in background, the system will hang indefinitely waiting for Alcohol to exit
(using "startup" switch won't help, i tried). The CMDOW.exe provides this via
/RUN switch.
LINE 2 :
Sleep.exe (not part of RyanVM package !) is needed to pause the execution long
enough so Alcohol is fully up and running. Without this, the next line will fail.
LINE 3 :
Since in line 2 main window pops up, this command hides it. Having all those
app/cmd windows popping up all over the place ain't professional (well, i'm trying
to make it as good-looking as possible).
LINE 4 :
Another crucial command. This is where sequence is paused to allow Alcohol to
fully prepare virtual drive.
LINE 5 :
Alcohol is being closed down and system contiues booting. This line could be
replaced with "TASKKILL /F /IM Alcohol.exe" but that's far too crude and unfriendly
system-wise.
PS : I still haven't worked out how to hide cmd window which pops up when
executing sleep.exe. I'll get around fixing it when i'm done with other boot-stuff.



Help

Back to top









