NicodemusAtNIMH Posted May 31, 2006 Share Posted May 31, 2006 This is my Run file I used the Install from CDROM\Software option. I got such and such file not found. Help please?cmdow @ /HID@Echo OffSetLocal enableextensionsSET CDROM=%~d0SET PP=%cdrom%\SoftwareSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Programs" /fREG ADD %KEY%\000 /VE /D "AVG Anti Virus Program" /fREG ADD %KEY%\000 /V 1 /D "%PP%Software\AVG Anti Virus Program\autoavgsetup.exe" /fREG ADD %KEY%\001 /VE /D "EvilLyrics" /fREG ADD %KEY%\001 /V 1 /D "%PP%\Software\EvilLyrics\EvilLyrics.exe /s" /fREG ADD %KEY%\001 /V 2 /D "taskkill EvilLyrics.exe" /fREG ADD %KEY%\002 /VE /D "Microsoft DirectX 9.0c" /fREG ADD %KEY%\002 /V 1 /D "%PP%Software\Microsoft DirectX 9.0c\dxsetup.exe /silent /f" /fREG ADD %KEY%\003 /VE /D "Mozillia Firefox" /fREG ADD %KEY%\003 /V 1 /D "%PP%Software\Mozillia Firefox\Firefox.exe -ms -ira" /fREG ADD %KEY%\004 /VE /D "MSN" /fREG ADD %KEY%\004 /V 1 /D "%PP%Software\MSN\MsnMsgs.msi /QB" /fREG ADD %KEY%\005 /VE /D "MusicMatch Jukebox" /fREG ADD %KEY%\005 /V 1 /D "%PP%Software\MusicMatch Jukebox\MusicMatch.exe /s" /fREG ADD %KEY%\006 /VE /D "NetFramework" /fREG ADD %KEY%\006 /V 1 /D "%PP%Software\NetFramework\netfx.msi /qb" /fREG ADD %KEY%\007 /VE /D "Mozilla Suite" /fREG ADD %KEY%\007 /V 1 /D "%PP%Software\Mozilla Suitemozilla-win32-1.7.13-installer.exe -ma -ira" /fREG ADD %KEY%\008 /VE /D "Microsoft Office 2003 Professional" /fREG ADD %KEY%\008 /V 1 /D "%PP%Software\Microsoft Office 2003 Professional\setup.exe TRANSFORMS=office11.MST /qb-" /fREG ADD %KEY%\009 /VE /D "Frontpage 2003 Pro" /fREG ADD %KEY%\009 /V 1 /D "%PP%Software\Frontpage 2003 Pro\setup.exe TRANSFORMS=office11.MST /qb-" /fREG ADD %KEY%\010 /VE /D "Sun Java VM 1.4.2.05" /fREG ADD %KEY%\010 /V 1 /D "%PP%Software\Sun Java VM 1.4.2.05\jre-1_5_0_06-windows-i586-p.exe /s /v\"/qb IEXPLORER=1 REBOOT=ReallySuppress\"" /fREG ADD %KEY%\011 /VE /D "Windows MediaPlayer 10" /fREG ADD %KEY%\011 /V 1 /D "%PP%Software\Windows MediaPlayer 10\MP10Setup.EXE /Q:A /R:N /C:\"setup_wm.exe /DisallowSystemRestore /Q:A /R:N\"" /fREG ADD %KEY%\012 /VE /D "Yahoo Messenger" /fREG ADD %KEY%\012 /V 1 /D "%PP%Software\Yahoo Messenger\yahoomessenger.exe /s" /fREG ADD %KEY%\012 /V 2 /D "taskkill /f /t /im ypager.exe" /fREG ADD %KEY%\013 /VE /D "O_O Defrag" /fREG ADD %KEY%\013 /V 1 /D "%PP%Software\OO_DeFrag Pro\O&O Defrag Professional Edition.msi /qn"" /fREG ADD %KEY%\014 /VE /D "O&O CleverCache Professional" /fREG ADD %KEY%\014 /V 1 /D "%PP%Software\OO_CleverCache Pro\O&O CleverCache.msi /qn" /fEndLocalEXIT Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted May 31, 2006 Share Posted May 31, 2006 DO you get "such and such a file cannot be found" on all entries? Link to comment Share on other sites More sharing options...
X-Centric Posted May 31, 2006 Share Posted May 31, 2006 (edited) This is my Run file I used the Install from CDROM\Software option. I got such and such file not found. Help please?cmdow @ /HID@Echo OffSetLocal enableextensionsSET CDROM=%~d0SET PP=%cdrom%\SoftwareSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Programs" /fREG ADD %KEY%\000 /VE /D "AVG Anti Virus Program" /fREG ADD %KEY%\000 /V 1 /D "%PP%Software\AVG Anti Virus Program\autoavgsetup.exe" /fREG ADD %KEY%\001 /VE /D "EvilLyrics" /fREG ADD %KEY%\001 /V 1 /D "%PP%\Software\EvilLyrics\EvilLyrics.exe /s" /fREG ADD %KEY%\001 /V 2 /D "taskkill EvilLyrics.exe" /fREG ADD %KEY%\002 /VE /D "Microsoft DirectX 9.0c" /fREG ADD %KEY%\002 /V 1 /D "%PP%Software\Microsoft DirectX 9.0c\dxsetup.exe /silent /f" /fREG ADD %KEY%\003 /VE /D "Mozillia Firefox" /fREG ADD %KEY%\003 /V 1 /D "%PP%Software\Mozillia Firefox\Firefox.exe -ms -ira" /fREG ADD %KEY%\004 /VE /D "MSN" /fREG ADD %KEY%\004 /V 1 /D "%PP%Software\MSN\MsnMsgs.msi /QB" /fREG ADD %KEY%\005 /VE /D "MusicMatch Jukebox" /fREG ADD %KEY%\005 /V 1 /D "%PP%Software\MusicMatch Jukebox\MusicMatch.exe /s" /fREG ADD %KEY%\006 /VE /D "NetFramework" /fREG ADD %KEY%\006 /V 1 /D "%PP%Software\NetFramework\netfx.msi /qb" /fREG ADD %KEY%\007 /VE /D "Mozilla Suite" /fREG ADD %KEY%\007 /V 1 /D "%PP%Software\Mozilla Suitemozilla-win32-1.7.13-installer.exe -ma -ira" /fREG ADD %KEY%\008 /VE /D "Microsoft Office 2003 Professional" /fREG ADD %KEY%\008 /V 1 /D "%PP%Software\Microsoft Office 2003 Professional\setup.exe TRANSFORMS=office11.MST /qb-" /fREG ADD %KEY%\009 /VE /D "Frontpage 2003 Pro" /fREG ADD %KEY%\009 /V 1 /D "%PP%Software\Frontpage 2003 Pro\setup.exe TRANSFORMS=office11.MST /qb-" /fREG ADD %KEY%\010 /VE /D "Sun Java VM 1.4.2.05" /fREG ADD %KEY%\010 /V 1 /D "%PP%Software\Sun Java VM 1.4.2.05\jre-1_5_0_06-windows-i586-p.exe /s /v\"/qb IEXPLORER=1 REBOOT=ReallySuppress\"" /fREG ADD %KEY%\011 /VE /D "Windows MediaPlayer 10" /fREG ADD %KEY%\011 /V 1 /D "%PP%Software\Windows MediaPlayer 10\MP10Setup.EXE /Q:A /R:N /C:\"setup_wm.exe /DisallowSystemRestore /Q:A /R:N\"" /fREG ADD %KEY%\012 /VE /D "Yahoo Messenger" /fREG ADD %KEY%\012 /V 1 /D "%PP%Software\Yahoo Messenger\yahoomessenger.exe /s" /fREG ADD %KEY%\012 /V 2 /D "taskkill /f /t /im ypager.exe" /fREG ADD %KEY%\013 /VE /D "O_O Defrag" /fREG ADD %KEY%\013 /V 1 /D "%PP%Software\OO_DeFrag Pro\O&O Defrag Professional Edition.msi /qn"" /fREG ADD %KEY%\014 /VE /D "O&O CleverCache Professional" /fREG ADD %KEY%\014 /V 1 /D "%PP%Software\OO_CleverCache Pro\O&O CleverCache.msi /qn" /fEndLocalEXITLook at your "SET PP=%cdrom%\Software" variable. Then look at:REG ADD %KEY%\011 /V 1 /D "%PP%Software\Windows MediaPlayer 10If I were the script it would look like:REG ADD %KEY%\011 /V 1 /D "%PP%Software\Software\Windows MediaPlayer 10 Also here there isnt a \ separating the "%PP%" from "Software".Instead write it like this:REG ADD %KEY%\011 /V 1 /D "%PP%\Windows MediaPlayer 10 Just my quick observation Edited May 31, 2006 by X-Centric Link to comment Share on other sites More sharing options...
Yzöwl Posted May 31, 2006 Share Posted May 31, 2006 Something more like this may prove more fruitful!@CMDOW @ /HIDSETLOCAL ENABLEEXTENSIONSSET "CDROM=%~d0"SET "PP=%CDROM%\Software"SET "KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx"REG ADD %KEY% /V TITLE /D "Installing Programs" /FREG ADD %KEY%\000 /VE /D "AVG Anti Virus Program" /FREG ADD %KEY%\000 /V 1 /D "\"%PP%\AVG Anti Virus Program\autoavgsetup.exe\"" /FREG ADD %KEY%\001 /VE /D "EvilLyrics" /FREG ADD %KEY%\001 /V 1 /D "%PP%\EvilLyrics\EvilLyrics.exe /s" /FREG ADD %KEY%\001 /V 2 /D "taskkill EvilLyrics.exe" /FREG ADD %KEY%\002 /VE /D "Microsoft DirectX 9.0c" /FREG ADD %KEY%\002 /V 1 /D "\"%PP%\Microsoft DirectX 9.0c\dxsetup.exe\" /silent" /FREG ADD %KEY%\003 /VE /D "Mozillia Firefox" /FREG ADD %KEY%\003 /V 1 /D "\"%PP%\Mozillia Firefox\Firefox.exe\" -ms -ira" /FREG ADD %KEY%\004 /VE /D "MSN" /FREG ADD %KEY%\004 /V 1 /D "%PP%\MSN\MsnMsgs.msi /QB" /FREG ADD %KEY%\005 /VE /D "MusicMatch Jukebox" /FREG ADD %KEY%\005 /V 1 /D "\"%PP%\MusicMatch Jukebox\MusicMatch.exe\" /s" /FREG ADD %KEY%\006 /VE /D "NetFramework" /FREG ADD %KEY%\006 /V 1 /D "%PP%\NetFramework\netfx.msi /qb" /FREG ADD %KEY%\007 /VE /D "Mozilla Suite" /FREG ADD %KEY%\007 /V 1 /D "\"%PP%\Mozilla Suitemozilla-win32-1.7.13-installer.exe\" -ma -ira" /FREG ADD %KEY%\008 /VE /D "Microsoft Office 2003 Professional" /FREG ADD %KEY%\008 /V 1 /D "\"%PP%\Microsoft Office 2003 Professional\setup.exe\" TRANSFORMS=office11.MST /qb-" /FREG ADD %KEY%\009 /VE /D "Frontpage 2003 Pro" /FREG ADD %KEY%\009 /V 1 /D "\"%PP%\Frontpage 2003 Pro\setup.exe\" TRANSFORMS=office11.MST /qb-" /FREG ADD %KEY%\010 /VE /D "Sun Java VM 1.4.2.05" /FREG ADD %KEY%\010 /V 1 /D "\"%PP%\Sun Java VM 1.4.2.05\jre-1_5_0_06-windows-i586-p.exe\" /s /v\"/qb IEXPLORER=1 REBOOT=ReallySuppress\"" /FREG ADD %KEY%\011 /VE /D "Windows MediaPlayer 10" /FREG ADD %KEY%\011 /V 1 /D "\"%PP%\Windows MediaPlayer 10\MP10Setup.EXE\" /Q:A /R:N /C:\"setup_wm.exe /DisallowSystemRestore /Q:A /R:N\"" /FREG ADD %KEY%\012 /VE /D "Yahoo Messenger" /FREG ADD %KEY%\012 /V 1 /D "\"%PP%\Yahoo Messenger\yahoomessenger.exe\" /s" /FREG ADD %KEY%\012 /V 2 /D "taskkill /F /t /im ypager.exe" /FREG ADD %KEY%\013 /VE /D "O_O Defrag" /FREG ADD %KEY%\013 /V 1 /D "\"%PP%\OO_DeFrag Pro\O&O Defrag Professional Edition.msi\" /qn" /FREG ADD %KEY%\014 /VE /D "O&O CleverCache Professional" /FREG ADD %KEY%\014 /V 1 /D "\"%PP%\OO_CleverCache Pro\O&O CleverCache.msi\" /qn" /FENDLOCALEXIT Link to comment Share on other sites More sharing options...
oioldman Posted May 31, 2006 Share Posted May 31, 2006 noticed same things as x-centric, and using Yzöwl would more than surfice, though i'd a carriage return between each section for easier reading Link to comment Share on other sites More sharing options...
T D Posted May 31, 2006 Share Posted May 31, 2006 Actually, because %PP% is %CDROM%\Software, you would HAVE to put the backward slash after %PP%.Yzöwl's right, though I would edge away from extra quote marks if I can.You did %PP%\Software, but the whole point of %PP% was so you wouldn't have to put the \Software in X-centric, I think you're wrong. It shouldn't be %PPsoftware\Software\* but just %PP%\ Link to comment Share on other sites More sharing options...
X-Centric Posted May 31, 2006 Share Posted May 31, 2006 (edited) Actually, because %PP% is %CDROM%\Software, you would HAVE to put the backward slash after %PP%.Yzöwl's right, though I would edge away from extra quote marks if I can.You did %PP%\Software, but the whole point of %PP% was so you wouldn't have to put the \Software in X-centric, I think you're wrong. It shouldn't be %PPsoftware\Software\* but just %PP%\TD,You misunderstood my post. I suggest you read it again where it says:Instead write it like this:REG ADD %KEY%\011 /V 1 /D "%PP%\Windows MediaPlayer 10And this:If I were the script it would look like:REG ADD %KEY%\011 /V 1 /D "%PP%Software\Software\Windows MediaPlayer 10is explaining what path his original script is looking for with his variable. Edited May 31, 2006 by X-Centric Link to comment Share on other sites More sharing options...
Yzöwl Posted May 31, 2006 Share Posted May 31, 2006 Yzöwl's right, though I would edge away from extra quote marks if I can.I'm sure it wasn't intended, but what you should have said was:Yzöwl's right.NicodemusAtNIMH, I would edge away from extra quote marks if I can.i.e. Don't use spaces in nearly all of your pathsPutting right, though suggests that Yzöwl may have perhaps been only partly right, which would of course be incorrect! Link to comment Share on other sites More sharing options...
NicodemusAtNIMH Posted June 1, 2006 Author Share Posted June 1, 2006 @CMDOW @ /HIDSETLOCAL ENABLEEXTENSIONSSET "CDROM=%~d0"SET "PP=%CDROM%\Software"SET "KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx"REG ADD %KEY% /V TITLE /D "Installing Programs" /FREG ADD %KEY%\000 /VE /D "AVG Anti Virus Program" /FREG ADD %KEY%\000 /V 1 /D "\"%PP%\AVG Anti Virus Program\autoavgsetup.exe\"" /FThis is what it looks like know. It didn't install any programs. Link to comment Share on other sites More sharing options...
gunsmokingman Posted June 1, 2006 Share Posted June 1, 2006 Then try it this then it checks for this file win51ip.SP2@Echo Offfor %%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\win51ip.SP2 set CDROM=%%iSet PP=%CDROM%\SoftwareThis one checks for a file in the i386 folder named ZONEOC.DL_@Echo Offfor %%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\i386\ZONEOC.DL_ set CDROM=%%iSet PP=%CDROM%\Software Link to comment Share on other sites More sharing options...
X-Centric Posted June 1, 2006 Share Posted June 1, 2006 (edited) @CMDOW @ /HIDSETLOCAL ENABLEEXTENSIONSSET "CDROM=%~d0"SET "PP=%CDROM%\Software"SET "KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx"REG ADD %KEY% /V TITLE /D "Installing Programs" /FREG ADD %KEY%\000 /VE /D "AVG Anti Virus Program" /FREG ADD %KEY%\000 /V 1 /D "\"%PP%\AVG Anti Virus Program\autoavgsetup.exe\"" /FThis is what it looks like know. It didn't install any programs.Look at this line of code:REG ADD %KEY%\000 /V 1 /D "\"%PP%\AVG Anti Virus Program\autoavgsetup.exe\"" /FThis is how it should be written:REG ADD %KEY%\000 /V 1 /D "%PP%\AVG Anti Virus Program\autoavgsetup.exe" /FTake note of the differences.Also look here:SET "PP=%CDROM%\Software"Try writing it this way:SET "PP=%CDROM%\Software\"Or forget about the variable and just write out the fuul path to the software folder. Try to keep it simple just to get it working then add stuff to your code AFTER testing it. You can create a test batch file to do a file copy or something like that. That way you dont have to keep doing installs to test your code. Once you get it working then use it in your all in one.Good luck Edited June 1, 2006 by X-Centric Link to comment Share on other sites More sharing options...
Yzöwl Posted June 1, 2006 Share Posted June 1, 2006 (edited) DOUBLE POST, PLEASE REMOVE! Edited June 1, 2006 by Yzöwl Link to comment Share on other sites More sharing options...
Yzöwl Posted June 1, 2006 Share Posted June 1, 2006 (edited) Look at this line of code:REG ADD %KEY%\000 /V 1 /D "\"%PP%\AVG Anti Virus Program\autoavgsetup.exe\"" /FThis is how it should be written:REG ADD %KEY%\000 /V 1 /D "%PP%\AVG Anti Virus Program\autoavgsetup.exe" /FTake note of the differences.NO IT SHOULDN'T!That code is correct, because it is exactly how I gave it.X-Centric, there are spaces in the file path!, unless you want the questioner to receive error messages saying cannot find F:\Software\AVG, then please try to restrain yourself from answering questions without the assurance of knowing the answers. The escaped double quotes are a requirement due to the spaces in AVG Anti Virus Program. If you read the original code snippet and my previous responses you will also not that there are similar spaces in all bar two three of the paths given, all of which have been taken into account by myself.Go to the unattended guide RunOnceEx page and read » Applications that use Quotations.<Edit>see strike-through</Edit> Edited June 1, 2006 by Yzöwl Link to comment Share on other sites More sharing options...
T D Posted June 1, 2006 Share Posted June 1, 2006 (edited) TD,You misunderstood my post. I suggest you read it again where it says:Instead write it like this:REG ADD %KEY%\011 /V 1 /D "%PP%\Windows MediaPlayer 10 And this:If I were the script it would look like:REG ADD %KEY%\011 /V 1 /D "%PP%Software\Software\Windows MediaPlayer 10 is explaining what path his original script is looking for with his variable.LOL sorry X-Centric. I lost you where you said "If I was the script"@Yzöwl look carefully. The avg setup is a switchless installer, so there aren't any switches. This means that you only have to use one set of quotes. But if it were agvsetup.exe /S or something, then you would have to use extra quotes. Edited June 1, 2006 by T D Link to comment Share on other sites More sharing options...
smashly Posted June 1, 2006 Share Posted June 1, 2006 (edited) @Yzöwl look carefully. The avg setup is a switchless installer, so there aren't any switches. This means that you only have to use one set of quotes. But if it were agvsetup.exe /S or something, then you would have to use extra quotes.Huh that's not true TD... Yzöwl has stated what he said correctly in regaurds to spaces in the pathname.It's not about the no switches, it's about spaces in the path to the exe.REG ADD %KEY%\000 /V 1 /D "\"%PP%\AVG Anti Virus Program\autoavgsetup.exe\"" /FI can't believe any1 would dispute Yzöwl skillz in things like this.Man I've seen some of Yzöwls handy work and to some1 like me I see it as pro.I'd be inclined to follow Yzöwl advice before other posters when it comes to anything to do with script help.my 2 cents in boredom...lol Cheers Edited June 1, 2006 by smashly 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