Technicalknohow Posted March 6, 2007 Share Posted March 6, 2007 Hello AllTrying to work on Unattended installation. Got stuck with the intermediate step mentioned. Not getting the idea whether to use Batch Scripting or RunOnceEx. Currently using RunOnceEx and only thing I am not sure is where to copy the applications in the installation folder. I could not find the instructions for it.Pretty confused. Also not too sure about the switches which one to use for what kind of applications.I want to just add the following applications1. Winzip2. WinRar3. Winamp4. K lite Coded Full Pack5. May be an Antivirus6. Office 20037. NovaPDF8. and Few DriversPlease help me out with this. I did search the Forum but could not find the specific answers to my queryThanks in advanceBye Link to comment Share on other sites More sharing options...
Gee Posted March 6, 2007 Share Posted March 6, 2007 You can make the install folder anywhere you want. You just have to point RunOnceEx to the location of the files.I recommend you use$OEM$\$1\InstallThis folder will be copied to your hard drive during installation. So your RunOnceEx should look like@echo offREG ADD "HKLM\SOFTWARE\Microsoft\GdiDetectionTool" /v "GDITool" /t REG_DWORD /d "00000001" /fSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%30 /VE /D "Microsoft .NET Framework 2.0" /fREG ADD %KEY%30 /V 1 /D "%systemdrive%\install\dotnet2.exe" /fREG ADD %KEY%40 /VE /D "Microsoft Internet Explorer 7" /fREG ADD %KEY%40 /V 1 /D "%systemdrive%\install\IE7.exe /q" /fREG ADD %KEY%50 /VE /D "Windows Media Player 11" /fREG ADD %KEY%50 /V 1 /D "%systemdrive%\install\wmp11.exe /q" /fREG ADD %KEY%50 /V 2 /D "%systemdrive%\install\KB920342.exe /q /n /z" /fREG ADD %KEY%\999 /VE /D "SysPrep and Reboot" /fREG ADD %KEY%\999 /V 1 /D "%systemdrive%\install\Reboot.cmd" /fEXITIf you want to install from CD, then it should look like this@echo offset tagfile=\win51ip.sp2for %%i 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 if exist "%%i:%tagfile%" set CDDRV=%%i:start /wait xcopy %CDDRV%\i386\*.* %systemdrive%\i386\ /e /c /i /q /y > nulREG ADD "HKLM\SOFTWARE\Microsoft\GdiDetectionTool" /v "GDITool" /t REG_DWORD /d "00000001" /fSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%30 /VE /D "Microsoft .NET Framework 2.0" /fREG ADD %KEY%30 /V 1 /D "%CDDRV%\install\dotnet2.exe" /fREG ADD %KEY%40 /VE /D "Microsoft Internet Explorer 7" /fREG ADD %KEY%40 /V 1 /D "%CDDRV%\install\IE7.exe /q" /fREG ADD %KEY%50 /VE /D "Windows Media Player 11" /fREG ADD %KEY%50 /V 1 /D "%CDDRV%\install\wmp11.exe /q" /fREG ADD %KEY%50 /V 2 /D "%CDDRV%\install\KB920342.exe /q /n /z" /fREG ADD %KEY%\999 /VE /D "SysPrep and Reboot" /fREG ADD %KEY%\999 /V 1 /D "%CDDRV%\install\Reboot.cmd" /fEXITThe above assumes that you have all your applications on the CD in a folder called Install off the root directory. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now