Re: RIS Install and method 2

Aha i see didn't know that part, but whats the idea of removing the repair function when you can make the batch script do the move part for you and keep the repair function ?

Btw about the sound problem, added some commands to silently install live messenger and some other programs with GuiRunOnce, install of live messenger takes about 5 minutes on my slow test computer because it have to finish the other work with updates and driver installs before live messenger can be installed, and when its done the sound works fine, so that problem is kinda solved aswell.

EDIT : A tricky question, is Dpsfnshr hardcoded to load its dpsfnshr.ini file and the D folder from %SYSTEMDRIVE%
Tried to make presetup.cmd unpack into a seperate folder but got a error when starting the finisher saying it could not find the ini file, then i tried to move just the dpsfnshr.ini file into %SYSTEMDRIVE% but again no go, however this time it deleted the ini file after pressing ok to the error.

Last edited by danny (2009-03-19 02:06:35)

Re: RIS Install and method 2

If it helps, here's the batch code I wrote to determine the source files installation directory for my oemscan addon.  It should work for disc-based or RIS-based installs.
The below code will find the drive letter/path to the source and declare it as the string %dospath%.

:PATH
setLocal EnableDelayedExpansion

for /f "tokens=* delims= " %%a in (%systemroot%\system32\$WINNT$.INF) do (
echo %%a | find "dospath=" > nul
if not errorlevel 1 set str=%%a
)
for /f "tokens=2 delims==" %%a in ('echo !str!') do (
SET dospath=%%a
echo dospath=!dospath!
)

You could leave the OEM folder in your RIS image and just point presetup.cmd to %dospath%\OEM
Just a thought...

Read BEFORE you post.  HWID tool   DriverPacks Tutorial   DONATE!
http://driverpacks.net/userbar/admin-1.png
Not all heroes wear capes, some wear Kevlar!

Re: RIS Install and method 2

the simplest solution is to execute the single move that windows normaly would.

move %SYSTEMDRIVE%\$win_nt$.~ls\$OEM$\$1 to %SYSTEMDRIVE% and call it a day wink

a "move" should happen quickly enough it's not a "copy" wink
Then DriverPacks should continue normaly without further issues...

this would be accomplished by adding one line near the top of presetup

REM +==========================================================================+

If exist "%systemroot%\system32\setupold.exe" DEL /F "%systemroot%\system32\setupold.exe"
start /wait move /y "%SYSTEMDRIVE%\$win_nt$.~ls\$OEM$\$1\." to "%SYSTEMDRIVE%\"

REM +==========================================================================+
DP BartPE Tutorial   DP_BASE Tutorial   HWID's Tool     Read BEFORE you post    UserBars!
http://driverpacks.net/userbar/admin-1.png
The DriverPacks, the DP_Base program, and Support Forum are FREE!.

Re: RIS Install and method 2

True, my code would have to scan the contents of the text file first.  Not quick.  But more universal.
I believe your syntax is wrong though.  It should be this:

REM +==========================================================================+

If exist "%systemroot%\system32\setupold.exe" DEL /F "%systemroot%\system32\setupold.exe"
start /wait move /y "%SYSTEMDRIVE%\$win_nt$.~ls\$OEM$\$1\*" "%SYSTEMDRIVE%\"

REM +==========================================================================+
Read BEFORE you post.  HWID tool   DriverPacks Tutorial   DONATE!
http://driverpacks.net/userbar/admin-1.png
Not all heroes wear capes, some wear Kevlar!

Re: RIS Install and method 2

try it wink

i think "." has been an allowed Abbr. for "*.*" since at least Win 2k...

DP BartPE Tutorial   DP_BASE Tutorial   HWID's Tool     Read BEFORE you post    UserBars!
http://driverpacks.net/userbar/admin-1.png
The DriverPacks, the DP_Base program, and Support Forum are FREE!.

Re: RIS Install and method 2

Well, I also removed the move...'to'. wink

Read BEFORE you post.  HWID tool   DriverPacks Tutorial   DONATE!
http://driverpacks.net/userbar/admin-1.png
Not all heroes wear capes, some wear Kevlar!

Re: RIS Install and method 2

Doh... One should not code when one is tired smile

DP BartPE Tutorial   DP_BASE Tutorial   HWID's Tool     Read BEFORE you post    UserBars!
http://driverpacks.net/userbar/admin-1.png
The DriverPacks, the DP_Base program, and Support Forum are FREE!.

Re: RIS Install and method 2

OverFlow wrote:

Doh... One should not code when one is tired smile

Or drinking...but that's my vice... wink

Read BEFORE you post.  HWID tool   DriverPacks Tutorial   DONATE!
http://driverpacks.net/userbar/admin-1.png
Not all heroes wear capes, some wear Kevlar!