Jump to content

Acheron

Member
  • Posts

    1,077
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Netherlands

Everything posted by Acheron

  1. Meaby I was wrong with the ..\ thingy. Can you try the following: driver.au3 Or if you want to test on a installed system: open cmd.exe. Browse to the SETUP\XPPRO\$OEM$ dir and run the following: SetupCopyOEMInf.exe ..\..\..\WPI\Drivers I still think it should work this way.
  2. Off course the new method works. You just have to modify the driver.au3 a bit: driver.au3 Use the ..\ to go up one level in the directory structure. The default location is the $OEM$ directory. Don't ever change the WinNT.sif. It takes the dospath Windows uses by default
  3. It does not work. It hangs on start-up (Athlon XP 1800+)
  4. I did a real test today. It does works correct now
  5. I tested using the RUN-section in Start Menu. I found out the AutoIt file did execute but could not find it's Workingdir and hang. I now use the start command to specify the workingdir and so it works. Could you change the Startpost a06lp?
  6. There was a problem when I tested the new method. Here's a new line to test: I386\WinNT.sif [GuiUnattended] DetachedProgram = ".\system32\cmd.exe" Arguments="/Q /C FOR /F %I IN (%SystemRoot%\SYSTEM32\$WINNT$.INF) DO (FOR %J IN (%I$OEM$) DO (IF EXIST %J (start /min /D%J Autoit3.exe presetup.au3)))"
  7. You can create specific shortcuts using the UpdateInis directive: Microsoft has publiced some material here. On MSFN you can search for updateinis to find some examples
  8. You can add them to your command line: I use this one for example: pspx.msi /QB-! SERIALNUMBER=XXXXXXX-XXXXXXX-XXX APPLAUNCH_REGISTRATION=0 PSP_INSTALLRCM=0 PSP_CREATEQUICKLAUNCH=0 PSP_READMESHORTCUT=0 PSP_UNINSTALLSHORTCUT=0 PSP_MYPSPFILESGLOBAL=0 PSP_UPDATEFREQ=3 PSP_FILEASSOC_BMP=0 PSP_FILEASSOC_JPG=0 PSP_FILEASSOC_GIF=0 PSP_FILEASSOC_PNG=0 PSP_FILEASSOC_TIFF=0 INSTALLDIR="%programfiles%\Corel\Paint Shop Pro X"
  9. Here are some switches for the installer you can use: APPLAUNCH_REGISTRATION=0 //No registration on start-up PSP_INSTALLRCM=0 // ??? PSP_CREATEQUICKLAUNCH=0 // No Quicklaunch icon PSP_READMESHORTCUT=0 // No Readme shortcut in Start menu PSP_UNINSTALLSHORTCUT=0 // No Uninstall shortcut in Start menu PSP_MYPSPFILESGLOBAL=0 // ??? PSP_UPDATEFREQ=3 // Never check for updates (0=daily, 1=weekly, 2=monthly, 3=never) PSP_FILEASSOC_BMP=0 // Don't associate with BMP PSP_FILEASSOC_JPG=0 // Don't associate with JPEG PSP_FILEASSOC_GIF=0 // Don't associate with GIF PSP_FILEASSOC_PNG=0 // Don't associate with PNG PSP_FILEASSOC_TIFF=0 // Don't associate with TIFF Anyone has more info on the PSP_INSTALLRCM and PSP_MYPSPFILESGLOBAL switches?
  10. Soo, should i add a dospath=<cd-drive>:\ in [Data]? No you shouldn't. It's generated automaticly during Windows Setup. It is very bad if your unattended cd doesn't work properly when you change your hardware configuration. For example installing a Multiple format card-reader changes CD-rom driveletters on Windows Setup
  11. $WinNT.sif$ is used to scan for the dospath=?:\ in the [Data] section. However since no quotes can be used in the Arguments section we have to scan the whole file. Pretty much information you got there
  12. Rewritten the program. It's now even easier! run autoit3.exe and presetup.au3 from cd (no need for copying to system32 folder anymore): i386\WinNT.sif [GuiUnattended] DetachedProgram = ".\system32\cmd.exe" Arguments="/Q /C FOR /F %I IN (%SystemRoot%\SYSTEM32\$WINNT$.INF) DO (FOR %J IN (%I$OEM$) DO (IF EXIST %J (start /min /D%J Autoit3.exe presetup.au3)))" $OEM$\: autoit3.exe presetup.au3 SetupCopyOEMInf.exe WatchDriverSigningPolicy.exe $OEM$\presetup.au3 ProcessSetPriority("setup.exe",0) Run(@ScriptDir & "\WatchDriverSigningPolicy.exe") ProcessWait("WatchDriverSigningPolicy.exe") RunWait(@ScriptDir & "\SetupCopyOEMInf.exe Drivers") ProcessClose("WatchDriverSigningPolicy.exe") ProcessSetPriority("setup.exe",2) CD-Layout: Thanks for info idle.newbie
  13. I have worked this out. For me it's not necessary to keep the existing user profiles. So I use this: WinNT.sif [SetupParams] UserExecute="cmd.exe /C adminchange.cmd" cmdlines.txt [COMMANDS] "runonceex.cmd" "rundll32.exe iernonce.dll,RunOnceExProcess" RunOnceEx.cmd @echo off FOR %%a IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO ((( set drv=%%a:) & (call :setupdocs)) ) goto :ending :setupdocs FOR /F "tokens=7 delims=:= " %%a IN ( 'vol %drv%' ) DO ( IF /I %%a==Documenten ( set docsdrive=%drv% ) IF /I %%a==nLite ( set CDDRIVE=%drv% goto :endloop ) ) :endloop GOTO :EOF :ending IF not defined docsdrive set docsdrive=%systemdrive% IF NOT Defined CDDRIVE set CDDRIVE=%CD%^\^.^. cacls "%docsdrive%\Profieldata\" /E /T /P Administrators:F rmdir /S /Q "%docsdrive%\Profieldata" reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Profilelist" /v "ProfilesDirectory" /t REG_EXPAND_SZ /d "%docsdrive%\Profieldata" /f AdminChange.cmd @echo off FOR %%a IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO ((( set drv=%%a:) & (call :setupdocs)) ) goto :ending :setupdocs FOR /F "tokens=7 delims=:= " %%a IN ( 'vol %drv%' ) DO ( IF /I %%a==Documenten ( set docsdrive=%drv% ) IF /I %%a==nLite ( set CDDRIVE=%drv% goto :endloop ) ) :endloop GOTO :EOF :ending IF not defined docsdrive set docsdrive=%systemdrive% IF NOT Defined CDDRIVE set CDDRIVE=%CD%^\^.^. ::get systemsid for /f "skip=1" %%a in ('psgetsid') do set sid=%%a ::set adminsid set adminsid=%sid%-500 for /f "tokens=2* delims=\" %%a in ('reg query "hklm\software\microsoft\windows nt\currentversion\profilelist\%adminsid%" /v "ProfileImagePath"') do set pid=%%b reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Profilelist" /v "ProfilesDirectory" /t REG_EXPAND_SZ /d "%docsdrive%\Profieldata" /f reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Profilelist\%adminsid%" /v "ProfileImagePath" /t REG_EXPAND_SZ /d "%docsdrive%\Profieldata\Administrator" /f XCOPY /C /H /E /O /I /Y "%systemdrive%\Documents and Settings" "%docsdrive%\Profieldata" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v "CleanProfile" /d "cmd.exe /C \"RMDIR /S /Q \"%systemdrive%\Documents and Settings\"\"" /f EXIT You need psgetsid btw.
  14. Ive followed some guides for allowing the use of extra quotes in such instructions from http://unattended.msfn.org/intermediate/me...s/runonceex.htm which I have implemented successfully for other instances. However, it seems to be ignoring the /f Driving me nuts!!! Thanks <{POST_SNAPBACK}> Meaby you should use REG DELETE instead of REG ADD So it would be like REG DELETE /VE /D "HKEY_CURRENT_USER\Software\VicMan Software" /f If you would like this key get run by RunOnceEx you can use the following: REG ADD %KEY%\022 /V 01 /D ^"REG DELETE /VE /D \"HKEY_CURRENT_USER\Software\VicMan Software\" /f\"^" /f By using the ESCAPE Character Windows will process the quotes as a regular expression. Please report if this works
  15. This method is new to me but it sounds cool. I would like to see an option to do all this stuff before a user actually logons. AFAIK all changes upto T13 are copied to the Default User Account. However this account is created directly after the commands from cmdlines.txt have passed (T12) More interesting is that this account is not in use during install but the generic System Account is used. The Administrator account is created at first logon after the reboot. Is it possible to run this script at T9 [setupParams] to move the newly created Default User.001 Account to Default User, overwriting existing files and change the appropiate registry entries, since it's not yet in use. This would be cool in use when you have specific software settings not stored in the registry, custom shortcuts etc, documents folder, history, favorites etc. from a previous installation. All you would have to do is a unique username for each system. If anyone has experience with this please reply
  16. 60 MB of driver files. I hope you don't need all those file in RAM. I'll look into it. XP you use? http://rapidshare.de/files/5340417/Soundbl...r_X-Fi.zip.html [3,5 MB] Basicly you find the relevant inf's, scan their sourcedisksfiles section and keep only those files. It's possible to makecab the files in the subdirs to reach smallest size. Next time you do it yourself, ok
  17. I think Gape should add some credits into the pack. Like some shortcut at the desktop to Gape's website would rock. The new icons are just a small improvement to Windows 98. I hope we can merge Gape's pack with Tihiy's revolution pack some day. That would be awesome
  18. Yoh Bashrat! I completely understand! Developing is so time-consuming. I'm also still working on - an update for RyanVM's updatepack April NL Developing Ryan's pack NL was fun for the time being, however starting with only 5 updates the pack increased quickly. The list of hotfixes grows exponentionaly it's very hard to keep up. - a new webhome A website containing all the update stuff. - Unofficial Windows 98 SP NL support. I like to tweak Windows 98 a bit, however the SP does need some serious improvements yet. Worse is Microsoft drops support very soon (2006) - Driver Compressor. Microsoft batch is not that advanced, I have to do some modifications, resulting a nearly complete rewrite of the batch file I'll think I'll start over in C++ I have started studying again, so less time now. So to all MSFN, we need more developers!!! Bashrat I wish you all the best. I never used your driverpack anyway
  19. Yeah, I forgot I change that. It's hard for me to read the code after vacation
  20. I thought exactly. These 4 utilities are not removed with latest nLite. Nice to see you found your problem
  21. Did you use nLite to remove the command line utilities? You can extract those from your original Windows CD: expand.exe find.exe findstr.exe makecab.exe I should add more checks to protect the dumb...
  22. Bump this one. Found a small glitch with stupid driver
  23. If you want all drivers get installed from HDD you have only to modify the SetupCopyOEMInf.exe command line. For example you want the Drivers to be located in \Windows\Drivers you can use this code: driver.au3 $CD = DriveGetDrive("CDROM") For $I=1 to Number($CD[0]) $pa = $CD[$I] & "\win51ip.SP2" If FileExists($pa) Then $instDrv=$CD[$I] Endif Next ProcessSetPriority ( "setup.exe", 0) Run($instDrv & "\$oem$\WatchDriverSigningPolicy.exe") ProcessWait("WatchDriverSigningPolicy.exe") RunWait($instDrv & "\$oem$\SetupCopyOEMInf.exe " & @WindowsDir & "\Drivers") ProcessClose("WatchDriverSigningPolicy.exe") ProcessSetPriority ( "setup.exe", 2) FileDelete(@SystemDir & "\driver.au3") Where in $oem$\$$\System32: autoit3.exe driver.au3 Following files in $oem$ SetupCopyOEMInf.exe WatchDriverSigningPolicy.exe And in $oem$\$$\drivers your driver files
  24. You can't let wait the Windows Setup with AutoIt. However you can force the Windows Setup to idle-mode for the time being. Reason for me to use AutoIt is the ProcessClose function. When using nLite sometimes Taskkill would fail if you have removed lot's of components
  25. Gape, I don't test English SP cause I use Dutch Windows 98. When you remove the 98SE SP IO.sys is copied back from Windows CD. However it's necessary to set appropiate file attributes: spuninst.inf [AddReg.Hotfixes] ; Set attributes IO.sys HKLM,Software\Microsoft\Windows\CurrentVersion\RenameFiles\IO.SYS,,,%30% HKLM,Software\Microsoft\Windows\CurrentVersion\RenameFiles\IO.SYS,IO.SYS,,"IO.SYS,7"
×
×
  • Create New...