absclaw Posted December 25, 2009 Share Posted December 25, 2009 (edited) just wished if any1 could find some possible errors with this script:@ECHO OFFTITLE IMPORTANT SYSTEM TASKSCOLOR 03ECHO.ECHO REGISTERING SHIMGVW.DLLregsvr32 /i /s "%WinDir%\system32\shimgvw.dll"ECHO.ECHO RUNNING THE XP SP3 GENUINE ADVANTAGE TOOLSTART "" /I /WAIT "%systemdrive%\install\installer.bat"ECHO.ECHO ACTIVATING WINRARCOPY "%systemdrive%\install\rareg.key" "%systemdrive%\Program Files\WinRAR" /V /Y 1>nulECHO.ECHO Deleting default Internet Explorer Favorite Links...RMDIR /S /Q "%UserProfile%\Favorites\Links"RMDIR /S /Q "%UserProfile%\Favorites\Microsoft Websites"ECHO.ECHO Adding new Internet Explorer Favorite Links...START "" /I /WAIT "%systemdrive%\install\IE Favorite Links.bat"ECHO.ECHO Installing: Windows XP Security Update for CAPICOM (KB931906) v2102ECHO Please wait...START "" /I /WAIT "%SYSTEMDRIVE%\install\Windows XP Security Update for CAPICOM (KB931906) v2102.exe" /qECHO.ECHO Installing: Foxit Reader v3.0 Build 1506ECHO Please wait...START "" /I /WAIT "%SYSTEMDRIVE%\install\Foxit Reader v3.0 Build 1506.exe" /iECHO.ECHO Iconising TaskbarSTART "" /B /WAIT "%systemdrive%\install\Install.reg" /YECHO.ECHO Cleaning up temporary setup filesRMDIR /S /Q "%SYSTEMDRIVE%\install"ECHO.ECHO FINISHED---FINISHED---FINISHEDECHO.PAUSEEXIThope any1 could help me out with this .cmd file as I had encountered sum problems with it.... Edited December 25, 2009 by absclaw Link to comment Share on other sites More sharing options...
Martin H Posted December 25, 2009 Share Posted December 25, 2009 A quick glance just reveals one error in :ECHO Iconising TaskbarSTART "" /B /WAIT "%systemdrive%\install\Install.reg" /YYou need 'regedit /s' to merge a regfile silently...Other than that, then for nitpicking:'/y' parameter is redundant in the 'copy' command when run from a NT command script.'/i' parameter is redundant in your 'regsvr32' commands..cmd is more appropriate than .bat on NT systems.'rd' is the same as the older 'rmdir'.lastly, maybe i'm wrong here, and just ignore this, but in my personal experience, then 'start "" /wait' dosen't make a difference, as the NT command interpreter by default waits for completion, and in cases where it dosen't, then that command don't make a difference, since it's because a program runs another process... Link to comment Share on other sites More sharing options...
absclaw Posted December 26, 2009 Author Share Posted December 26, 2009 thnx a lot sir, now I've understood the function of regedit/s and thnx again for rectifying other errors as well.It seems obvious now why it wasn't working. Link to comment Share on other sites More sharing options...
urie Posted December 26, 2009 Share Posted December 26, 2009 Just another point if the winrar rareg.key is in the same folder as winrar installer it will self register Link to comment Share on other sites More sharing options...
absclaw Posted December 26, 2009 Author Share Posted December 26, 2009 thnx for the advice urie..will try it out for sure. 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