alcho Posted June 29, 2005 Share Posted June 29, 2005 (edited) Hey all great job your all doing, i'm a long time reader and first time poster i have done a lot of searching and while i can get most of it to work there are a few bits doing my head in anyhow just wondering if any of you GURU'S would have time to convert my batch file so i can use it as a runonce..thanks allCLS@echo offTITLE Unattended XP ECHO.ECHO gonna take a whileECHO.ECHO Installing Adobe Reader 6 FullECHO Please wait...start /wait %systemdrive%\Install\Applications\Adobe_Reader\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\""ECHO.ECHO Installing Sun Java VM 1.4.2ECHO Please wait...start /wait %systemdrive%\Install\Applications\SunJava\j2re-1_4_2_01-windows-i586.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1"ECHO.ECHO Installing Avg Anti-virusECHO Please wait...start /wait %systemdrive%\Install\Applications\avg\avg7.exeECHO.ECHO Installing WinRAR 3.20ECHO Please wait...start /wait %systemdrive%\install\Applications\WinRAR\wrar320.exe /sCOPY /Y %systemdrive%\Install\Applications\winrar\rarreg.key "%systemdrive%\Program Files\winrar"ECHO.ECHO Installing Nero Burning ROM v6.3.0.3ECHO Please wait...start /wait %systemdrive%\install\Applications\Nero\nero.exe /SILENT /NOREBOOT /SN=xxxx-xxxx-xxxx-xxxx /WRITE_SNstart /wait regedit /s %systemdrive%\Install\Applications\Nero\register.regECHO.ECHO Installing Power DVD 5ECHO Please wait...start /wait %systemdrive%\install\Applications\PowerDVD5\Setup.exe -s -f1"%systemdrive%\install\Applications\PowerDVD5\setup.iss"ECHO.ECHO Installing Photoshop CS and ImageReady CSECHO Please wait...start /wait %systemdrive%\install\Applications\Photoshop8\Setup.exe -s -f1"%systemdrive%\install\Applications\Photoshop8\setup.iss"ECHO.ECHO Patching Photoshop CS and ImageReady CSECHO Please wait...COPY /Y %systemdrive%\Install\Applications\Tw10122.dat "%systemdrive%\Program Files\Adobe\Photoshop CS"COPY /Y %systemdrive%\Install\Applications\AdobeLM.dll "%systemdrive%\Program Files\Adobe\Photoshop CS"ECHO.ECHO Installing MS Office Professional 2003ECHO Please wait...start /wait %systemdrive%\install\Applications\Office2003\setup.exe TRANSFORMS=%systemdrive%\install\Applications\Office2003\unattended.MST /qb-ECHO.ECHO Installing Q832483 Security Update for Microsoft Data Access ComponentsECHO Please wait...start /wait %systemdrive%\Install\hotfixes\ENU_Q832483_MDAC_x86.EXE /T:%systemdrive%\install\tmp /C:"%systemdrive%\install\tmp\dahotfix.exe /q /n" /QECHO.ECHO Applying Registry TweaksREGEDIT /S %systemdrive%\install\Applications\RegTweaks\RegTweaks.reg ECHO.ECHO Deleting Temp Installation FilesECHO Please wait...RD /S /Q %systemdrive%\DriversRD /S /Q %systemdrive%\installthanks all got most of it ok except for the copy command i dont know how to do it with runonce.. Edited June 29, 2005 by alcho Link to comment Share on other sites More sharing options...
Zxian Posted June 29, 2005 Share Posted June 29, 2005 Well, you can get the RunOnceEx maker program. It'll help you get all the application installs in there.As for copying files, you shouldn't need to. You can simply place the files in their correct location in the $OEM$ folders and you should be set.For example:$OEM$\$Progs\Adobe\Acrobat 7.0\Would refer to:C:\Program Files\Adobe\Acrobat 7.0\Just find the right location in the $OEM$ folders for the files that you would otherwise copy. They'll get copied over in the intial stages of installation.And next time use code tags, or even better codebox tags. It makes it a lot easier for us to read and keeps things clean. (Perhaps you could edit your post above to fix this...)Hope this helps and welcome to MSFN!Cheers! Link to comment Share on other sites More sharing options...
Achdine Posted June 29, 2005 Share Posted June 29, 2005 First of all, I'm going to assume you mean RunOnceEx, not RunOnce. They are slightly different, to quote Alanoll,RunOnce would be an invisible call to run all the windows (sorta like Windows does when starting up and starts other applications)RunOnce\Setup is closest to RunOnceEX but that you can't change the Title, and runs IMMEDIATELY after they keys are imported into the registry.RunOnceEX creates a window that lists all the program, can cahnge the title, and only executes after a restart or a call to the iernonce.dll process.RunOnceEX is documented on the Unattended guide as it's the most used and there's a nifty little picture showing it in action as well. I can't help you with RunOnce or RunOnce\Setup, but RunOnceEx is easy enough.There are any number of methods to implement it, although by far the most common is a simple batch file. All you're doing is adding the data to "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx" in the registry, using numbered subfolders to indicate the order. You can get more help on the batchfile method of implementation on the UnAttended Guide and by typing "Reg Add /?" into a command window. Once you understand the concept and the method, you can try using Eagle00789's RunOnceEx creator to create the batch file for you. Link to comment Share on other sites More sharing options...
alcho Posted June 29, 2005 Author Share Posted June 29, 2005 (edited) cool that helps a lot thanks mate.i'll try and edit the code tags things now have to do more reading.quick one though i want to copy the file$OEM$\$Progs\Adobe\Photoshop CS\AdobeLM.dllso when windows is installed it will be in the file C:\Program Files\Adobe\Photoshop CS\ folder is that right Edited June 29, 2005 by alcho Link to comment Share on other sites More sharing options...
Achdine Posted June 29, 2005 Share Posted June 29, 2005 That's correct, assuming Windows is installed on the C:\ drive. More info about the $OEM$ folders is, of course, at the guide. There are other ways to copy files over as well. I have some large files that I copy over by making a cab or 7zip archive beforehand, then using Extract.exe or 7za.exe, respectively, from the commandline with the path to extract. This is only really worth it if the file/files are large, and it looks like most of yours are not, but I figured I would throw it out there.Also, keep in mind that if you're trying to bypass Photoshop activation by copying over the dat file (that's what it looks like, I'm just guessing), the file is hardware specific and will only work on the PC it was created on. Link to comment Share on other sites More sharing options...
alcho Posted June 29, 2005 Author Share Posted June 29, 2005 your dead right jez man ur good it works fine in tthe batch script so i assume it is gonna work ok in the runonceex script as well.thats all i was having probs with..and how do i do them codes doesn't look right in my last post.... Link to comment Share on other sites More sharing options...
Achdine Posted June 29, 2005 Share Posted June 29, 2005 You need to put a [ CODE] statement at the beginning and a [ /CODE] statement at the end of what you want selected (remove the space inside the brackets).The end result looks like this Link to comment Share on other sites More sharing options...
alcho Posted June 29, 2005 Author Share Posted June 29, 2005 thank you got it Link to comment Share on other sites More sharing options...
alcho Posted June 29, 2005 Author Share Posted June 29, 2005 (edited) Running it now in Virtual Pc to see if it will work cant believe i spent over a week looking for a solution to this because i was afraid to post been reading lots of posts from newbies like myself and thought i was gonna get torched and flamed.Again Thank You.Here is my finished RounceEx filecmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\005 /VE /D "Adobe Reader 6" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\Applications\Adobe_Reader\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\" /fREG ADD %KEY%\025 /VE /D "Avg Anti Virus" /fREG ADD %KEY%\025 /V 1 /D "%systemdrive%\Applications\avg\avg7.exe" /fREG ADD %KEY%\050 /VE /D "Nero Burning ROM v6.3.0.3" /fREG ADD %KEY%\050 /V 2 /D "%systemdrive%\Applications\Nero\nero.exe /SILENT /NOREBOOT /SN=1A23-xxxx-xxxx-xxxx-xxxx /WRITE_SN" /fREG ADD %KEY%\050 /V 1 /D "REGEDIT /S %systemdrive%\Applications\Nero\register.reg" /fREG ADD %KEY%\065 /VE /D "Sun Java 1.4.2" /fREG ADD %KEY%\065 /V 1 /D"%systemdrive%\Applications\SunJava\j2re-1_4_2_01-windows-i586.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1" /fREG ADD %KEY%\070 /VE /D "Power DVD 5" /fREG ADD %KEY%\070 /V 1 /D "%systemdrive%\apps\Applications\PowerDVD5\Setup.exe -s -f1"%systemdrive%\install\Applications\PowerDVD5\setup.iss" /fREG ADD %KEY%\075 /VE /D "Photoshop CS and ImageReady CS" /fREG ADD %KEY%\075 /V 1 /D "%systemdrive%\apps\Applications\Photoshop8\Setup.exe -s -f1"%systemdrive%\install\Applications\Photoshop8\setup.iss" /fREG ADD %KEY%\080 /VE /D "WinRAR 3.20" /fREG ADD %KEY%\080 /V 1 /D "%systemdrive%\apps\WinRAR320.exe /s" /fREG ADD %KEY%\085 /VE /D "Installing Office 2003" /fREG ADD %KEY%\085 /V 1 /D "%systemdrive%\Applications\Office2003\setup.exe TRANSFORMS=Unattended.mst /qb-" /fREG ADD %KEY%\090 /VE /D "Applying Registry Tweaks" /fREG ADD %KEY%\090 /V 1 /D "REGEDIT /S %systemdrive%\install\Applications\RegTweaks\RegTweaks.reg" /fREG ADD %KEY%\095 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\095 /V 1 /D "%systemdrive%\apps\cleanup.cmd" /fEXIT Edited June 29, 2005 by alcho Link to comment Share on other sites More sharing options...
Achdine Posted June 29, 2005 Share Posted June 29, 2005 You did a good job remembering to remove your serial the first time, but forgot about it the second time Link to comment Share on other sites More sharing options...
alcho Posted June 29, 2005 Author Share Posted June 29, 2005 done thanks for that 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