Don't worry. It's normal (you're  very busy).

Thanx.

Hi mr_smartepants!

Any news about stand-alone script?

Thanx.

mr_smartepants wrote:
Ken@fri wrote:

Do u find any time to finish the experimental code below?

If yes, could u add a portion to build a multilanguage edition?

Yes I did.  And yes, I added a section to build a multi-language version.
Unfortunately, I built it under consignment from our sponsor LinMin.  They sell it now as the LIU (Found here)

I'll see if I can split the code off for a quick stand-alone script.  (no promises)

Ok, do what u can.

Don't worry & thanx again for all that you do for us.

Hi mr_smartepants!

Do u find any time to finish the experimental code below?

If yes, could u add a portion to build a multilanguage edition?

Thanx  cool

mr_smartepants wrote:

Here's some simple batch files that I've been using to integrate updates and drivers into all indexes of Win7 source files before building .iso.
I thought I'd share them for others.
Make sure to execute these batch files by right-clicking and selecting "Run as administrator".
Set the paths to whatever you like, just be sure to NOT use a trailing backslash in the path (i.e. C:\mnt instead of C:\mnt\ )
To download the patches, I use Windows Updates Downloader with current download lists from this post (not 100% complete, but a great start)

For drivers, I separate my folders into boot & main.  Boot drivers are integrated into the boot.wim (index 2) and for me only contain dpms. 

Enjoy! smile

.
.
.

And for you testing types, here's some experimental code for all NT6 OS (auto adjusts).  Code in-work.

@echo off
:: Do NOT use trailing backslash in paths (i.e. C:\mnt instead of C:\mnt\ )
:: Hardcoded paths (C:\etc) are acceptable, but discouraged in favor of flexible relative paths 
:: such as (%~dp0\ "the directory containing this script", or %cd% "current directory", or ..\..\ "back two directories")
:: Network shares (\\server\path) are not supported by this script.
::Set Paths to directories here.
:Path to mount folder
set "mnt=%~dp0mount"
:Path to temp folder
set "tmp=%~dp0temp"
:Path to source .wim files
set "src=%~dp0source"
:Path to driver folders (each should contain x86 & x64 folders)
set "driver-boot=%~dp0Drivers\Boot"
set "driver-main=%~dp0Drivers\Install"
::Do NOT modify anything below this line unless you know what you are doing!
:Environment checks
:DISM-check
IF NOT EXIST "%WINDIR%\SYSTEM32\DISM\DISMHOST.EXE" GOTO ERROR1
:WIM-check
IF NOT EXIST "%src%\*.wim" GOTO ERROR2
:Driver-check
IF NOT EXIST "%driver-boot%\*" GOTO ERROR3

:Index-start
set idx=1
:Index stop
set bootx=2
dism /get-wiminfo /wimfile:"%src%\install.wim" > "%tmp%\index.log"
dism /get-wiminfo /wimfile:"%src%\install.wim" /index:1 > "%tmp%\detail.log"
setlocal EnableDelayedExpansion
set "cmd=findstr /R /N "^^" "%tmp%\index.log" | find /C "Index""
for /f %%a in ('!cmd!') do set indexs=%%a
cls

echo %indexs% Install.wim indexes found.
:Arch detection
if exist "%tmp%\detail.log" (
  FOR /F "tokens=* skip=2 usebackq" %%a IN (`FIND "Architecture" "%tmp%\detail.log"`) DO (
  set str=%%a
  for /f "tokens=2 delims=: " %%b in ('echo !str!') do (
  set arch=%%b
  )) 
)
echo The install.wim architecture is %arch%
echo Using boot drivers from folder:%driver-boot%\%arch%
echo Using main drivers from folder:%driver-main%\%arch%
:begin-boot
echo Integrating Boot WIM Index: %idx%
Dism /Mount-Wim /WimFile:"%src%\BOOT.WIM" /index:%idx% /MountDir:"%mnt%"
Dism /image:"%mnt%" /Add-Driver /driver:"%driver-boot%\%arch%" /recurse /forceunsigned
Dism /Unmount-Wim /MountDir:"%mnt%" /commit
if "%idx%"=="%bootx%" set idx=1 & goto begin-install
set /a idx+=1
goto begin-boot
:begin-install
echo Integrating Install WIM Index: %idx%
Dism /Mount-Wim /WimFile:"%src%\install.WIM" /index:%idx% /MountDir:"%mnt%"
Dism /image:"%mnt%" /Add-Driver /driver:"%driver-main%\%arch%" /recurse /forceunsigned
dism /Unmount-Wim /MountDir:"%mnt%" /commit
if "%idx%"=="%indexs%" goto END
set /a idx+=1
goto begin-install
:End
echo .........................................
echo Driver integration complete.
:Cleanup
 cd %SYSTEMDRIVE%\
 IF EXIST "%tmp%\*" DEL /F /S /Q "%tmp%\*" >nul
echo Cleanup complete.
:Exit
pause
exit
:ERROR1
IF EXIST "%WINDIR%\SYSWOW64\DISM\DISMHOST.EXE" GOTO WIM-check
ECHO DISM utility not found.  Please install the Microsoft WAIK suite of utilities.
echo Windows® Automated Installation Kit (AIK) downloads
echo WAIK 3.0: http://www.microsoft.com/download/en/details.aspx?id=5753
echo WAIK 3.1 supplement: http://www.microsoft.com/download/en/details.aspx?id=5188
goto Exit
:ERROR2
IF EXIST "%src%\sources\*.wim" set "src=%src%\sources" & GOTO Driver-check
ECHO WIM files not detected.  Please check source directory.
goto Exit
:ERROR3
IF EXIST "%driver-main%\*" GOTO Index-start
ECHO Driver files not detected.  Please check driver directory.
goto Exit

Ooops!

mr_smartepants wrote:

Strange, I don't have that problem.

Thanx 4 reply.

You're right (about access denied messages).
I've redo some tests with original script & realize where was my error (FIXED).

Sorry.


I also add  this switch (overwrite mode)

-aoa

to 7Zip extraction commands of sections :Lets_GO, :Method2 & :Begin

Hi guys !

Just noticed 2 things if batch is running manually:

1) if a sentence have an exclamation mark, this last one won't be show

:Clean_Warn
.
ECHO.
ECHO This is your final warning before uneeded drivers are deleted!


:Clean_Folder
.
ECHO.
ECHO Excess drivers deleted!
.

etc.


2) At the section :Timer,
if the answer is N (No, delete the Log files), this messages appear

Access denied
Access denied

but script ends successfuly.


PS: I also translate the script in French.

Hi !

Interesting. Found this on techguy forums.

Have a look. May be it can help.

@mr_smartepants

Yeah! I can confirm:All work perfectly cool.
Great job, man (once again).

You (OverFlow, SteveDun & U) are my HEROES.

@ mr_smartepants

I just finish a new test in VM (Host Win7 Pro French on desktop: HP Pro 3400 series MT).
After install, I've the executable file below:

%PROGRAMFILES%\Cypress\Trackpad\CyDIFxKbFltr.exe

But nothing about Cypress TrackPad appear in Add/Modify a prog CPL.
I know it's related to TouchPad_HID driverpack.

Any idea why only this file remains in system?

SteveDun wrote:

As you see from above post I too cant figure that out yet since the code has been optimized.  Will need mr_smartepants help for that I think for I havent found a solution to that yet but I am busy with school today so wont have much time, sorry.

Don't worry, tomorrow never die lol

Have a good night!

@ SteveDun

Thanx 4 help.

In my tests, I tried the 2nd line 'coz even I choose /S switch (meaning KTP=N), the D folder remains.

@ mr_smartepants

Bad news... sorry for u.

Hope to read u again very soon.

Ken@fri wrote:

Every time I use the switches (/S or -S  -no problem with /SR or -SR), at firstlogon, I have a message asking me to reboot my computer.

After many, many tests, maybe, I finally found why: my SetupComplete.cmd file content (The REM'd line was adding to delete D folder remaining despite using /S swith).

START /W %SYSTEMDRIVE%\D\SAD3\DP_Install_Tool.cmd /S
REM IF EXIST "%SYSTEMDRIVE%\D" RD /S /Q "%SYSTEMDRIVE%\D\" >nul
DEL %0 >nul

If I comment out the 2nd line, everything seems go FINE


S O L V E D???


Others tests are in progress...  cool

Hi mr_smartepants!

is there any reason explaining script extension mod (.bat instead of .cmd)? lol

mr_smartepants wrote:

Which OS are you installing on?  Are you using SAD during setup prior to first login?  Is the message generated by Windows or part of the SAD script?

mr_smartepants wrote:

Can you post your log file?

No, sorry. I've already deleted it. I'll redo some others tests this week and I'll Keep u posted (next monday).


mr_smartepants wrote:

Well, the only way I know to fix that is by removing the "touchpad" or "HID" folders from the driver pool and leave them for manual installation.  That kinda defeats the purpose of the automatic install.
I went back through versions 2.5 & 2.7 and I didn't see any code that would differentiate any HID drivers at all.
I'll keep looking into it.


SteveDun wrote:

Yes with some dirvers after restart it will ask again to restart this is normal for some drivers even on my Dell lappy does that with one driver.
They have the same hardware ids and that is why three are showing with your config.  That is why we left the touchpad hid drivers behind on the root of the drive if this happens.  Just uninstall them all and reboot then use device manager to install the correct one.  This is a fault of Microsofts tools that are used and not the scripts fault.  Hope this helps understanding it.
You know mr_smartepants it might be best to leave out the drivers for touchpad from the driver pool or you will get alot of complaints from the ones with same hdwr ids or maybe those with same ids can be skipped within the script.  So they have to install one or two drivers manually.....thats not bad in my book.  lol

It's a little bit clearer now.

Thanx.

@mr_smartepants

Thanx.

I'll waitin' 4.

Hi!

I've made some tests with SAD3-130423 fixed by SteveDun.

Every time I use the switches (/S or -S  -no problem with /SR or -SR), at firstlogon, I have a message asking me to reboot my computer.

Any idea?



EDIT:

After fresh install on HP ProBook 4510s, the followings TouchPad drivers appear in Add/Modify programs CPL at the same time:

  • Dell Touchpad (from ALPS ELECTRIC CO., LTD)

  • ETDWare PS/2-X86 10.7.13.1_WHQL (from ELAN Microelectronic Corp.)

  • Synaptics Pointing Device Drivers(from Synaptics Incorporated)

SteveDun wrote:

Ken@fri,
Thats why there is a option to delete or keep them in the script.  Of course if silent it will auto leave it but that might change with mr_smartepants new version to be released soon (I dont know).

(Battery)
reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{72631E54-78A4-11D0-BCF7-00AA00B7B32A}\0000" && echo Laptop found!

or

(Portable Battery)
WMIC SystemEnclosure GET ChassisTypes
WMIC ComputerSystem GET PCSystemType

would work for lappys.  wink  It looks for the battery value in the reg entry in the first example.  This would not work on image restore though just to let you know for that reg entry isnt included in images usually.  The second example gets its info from the SMBIOS tables off the motherboard which is the method I would prefer for some systems might not have the reg entry like from a image restore.

@ mr_smartepants this would be a good addon if ya will to only leave behind touchpad/HID if lappy present.


mr_smartepants wrote:

Well that would be fine if the "touchpad-HID" Third Party DriverPack included only drivers for laptops.  However that Third Party DriverPack includes drivers for mice and keyboards also.


No problem.

And anyway, the work done on the Driverpacks is SIMPLY FANTASTIC, AMAZING!

Thanx.

Hi !

@ Mr_Smartepants & StevenDun

I tried new v3 r130421 and it works very WELL.

Thanx again & again for your hard work.

So I'm ready to test the new release.


I've a little suggestion about TouchPad HID.

Is it possible to add a portion of code to check what kind of machine (Laptop or Desktop) DriverPacks are installing on?

If it's a Desktop, no TouchPad drivers kept and if it's a Laptop is detected...keep them.

What do you think?

@ mr_smartepants, SteveDun

First, BIG HUGE THANKS for the great work on this script cool
(And sorry for my english level)


I'm tryin' to install DriverPacks silently using /S or /SR switches from SetupComplete.cmd

My OS is Windows 7 Pro SP1 (x86) French & I make all my tests in VirtualBox v4.2.10 r84104




My SetupComplete.cmd content

@echo off

START %SystemDrive%\D\SAD2\DP_Install_Tool.cmd /S

or

@echo off

START %SystemDrive%\D\SAD2\DP_Install_Tool.cmd /SR



If I use mr_smartepants' v120520 ( manually or with switch /S), everything goes FINE (no error message, ALL files/sub-folders/folders are DELETED) cool




From SAD2.5 to SAD3.0 (SteveDun modds), run script manually goes fine.


But I have same error when I use /S & /SR switches : The commands file is not found (see below)

http://kenafri.upd.fr/DIVERS/DPacks/DP2.5-clenup_error_1.png

http://kenafri.upd.fr/DIVERS/DPacks/sad2.5_directories-Files.png



With SAD3.0 (v13.04.19) fixed by mr_smartepants, issue is a little bit different (same issue but different prompt location folder - see below)

http://kenafri.upd.fr/DIVERS/DPacks/SAD3_Finishing_Error_1.png

http://kenafri.upd.fr/DIVERS/DPacks/SAD3_directories-Files.png




No one else have same error? Any idea?




I also found a slight "bug" in the :Usage section

I replace line below

echo /? or /h or /H will bring up this guide.


with this one


echo "/?" or /h or /H will bring up this guide.

or this

echo /h or /H or /? will bring up this guide.