Jump to content

It didn't work!


Recommended Posts

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 Off

SetLocal enableextensions

SET CDROM=%~d0

SET PP=%cdrom%\Software

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Programs" /f

REG ADD %KEY%\000 /VE /D "AVG Anti Virus Program" /f

REG ADD %KEY%\000 /V 1 /D "%PP%Software\AVG Anti Virus Program\autoavgsetup.exe" /f

REG ADD %KEY%\001 /VE /D "EvilLyrics" /f

REG ADD %KEY%\001 /V 1 /D "%PP%\Software\EvilLyrics\EvilLyrics.exe /s" /f

REG ADD %KEY%\001 /V 2 /D "taskkill EvilLyrics.exe" /f

REG ADD %KEY%\002 /VE /D "Microsoft DirectX 9.0c" /f

REG ADD %KEY%\002 /V 1 /D "%PP%Software\Microsoft DirectX 9.0c\dxsetup.exe /silent /f" /f

REG ADD %KEY%\003 /VE /D "Mozillia Firefox" /f

REG ADD %KEY%\003 /V 1 /D "%PP%Software\Mozillia Firefox\Firefox.exe -ms -ira" /f

REG ADD %KEY%\004 /VE /D "MSN" /f

REG ADD %KEY%\004 /V 1 /D "%PP%Software\MSN\MsnMsgs.msi /QB" /f

REG ADD %KEY%\005 /VE /D "MusicMatch Jukebox" /f

REG ADD %KEY%\005 /V 1 /D "%PP%Software\MusicMatch Jukebox\MusicMatch.exe /s" /f

REG ADD %KEY%\006 /VE /D "NetFramework" /f

REG ADD %KEY%\006 /V 1 /D "%PP%Software\NetFramework\netfx.msi /qb" /f

REG ADD %KEY%\007 /VE /D "Mozilla Suite" /f

REG ADD %KEY%\007 /V 1 /D "%PP%Software\Mozilla Suitemozilla-win32-1.7.13-installer.exe -ma -ira" /f

REG ADD %KEY%\008 /VE /D "Microsoft Office 2003 Professional" /f

REG ADD %KEY%\008 /V 1 /D "%PP%Software\Microsoft Office 2003 Professional\setup.exe TRANSFORMS=office11.MST /qb-" /f

REG ADD %KEY%\009 /VE /D "Frontpage 2003 Pro" /f

REG ADD %KEY%\009 /V 1 /D "%PP%Software\Frontpage 2003 Pro\setup.exe TRANSFORMS=office11.MST /qb-" /f

REG ADD %KEY%\010 /VE /D "Sun Java VM 1.4.2.05" /f

REG 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\"" /f

REG ADD %KEY%\011 /VE /D "Windows MediaPlayer 10" /f

REG 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\"" /f

REG ADD %KEY%\012 /VE /D "Yahoo Messenger" /f

REG ADD %KEY%\012 /V 1 /D "%PP%Software\Yahoo Messenger\yahoomessenger.exe /s" /f

REG ADD %KEY%\012 /V 2 /D "taskkill /f /t /im ypager.exe" /f

REG ADD %KEY%\013 /VE /D "O_O Defrag" /f

REG ADD %KEY%\013 /V 1 /D "%PP%Software\OO_DeFrag Pro\O&O Defrag Professional Edition.msi /qn"" /f

REG ADD %KEY%\014 /VE /D "O&O CleverCache Professional" /f

REG ADD %KEY%\014 /V 1 /D "%PP%Software\OO_CleverCache Pro\O&O CleverCache.msi /qn" /f

EndLocal

EXIT

Link to comment
Share on other sites


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 Off

SetLocal enableextensions

SET CDROM=%~d0

SET PP=%cdrom%\Software

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Programs" /f

REG ADD %KEY%\000 /VE /D "AVG Anti Virus Program" /f

REG ADD %KEY%\000 /V 1 /D "%PP%Software\AVG Anti Virus Program\autoavgsetup.exe" /f

REG ADD %KEY%\001 /VE /D "EvilLyrics" /f

REG ADD %KEY%\001 /V 1 /D "%PP%\Software\EvilLyrics\EvilLyrics.exe /s" /f

REG ADD %KEY%\001 /V 2 /D "taskkill EvilLyrics.exe" /f

REG ADD %KEY%\002 /VE /D "Microsoft DirectX 9.0c" /f

REG ADD %KEY%\002 /V 1 /D "%PP%Software\Microsoft DirectX 9.0c\dxsetup.exe /silent /f" /f

REG ADD %KEY%\003 /VE /D "Mozillia Firefox" /f

REG ADD %KEY%\003 /V 1 /D "%PP%Software\Mozillia Firefox\Firefox.exe -ms -ira" /f

REG ADD %KEY%\004 /VE /D "MSN" /f

REG ADD %KEY%\004 /V 1 /D "%PP%Software\MSN\MsnMsgs.msi /QB" /f

REG ADD %KEY%\005 /VE /D "MusicMatch Jukebox" /f

REG ADD %KEY%\005 /V 1 /D "%PP%Software\MusicMatch Jukebox\MusicMatch.exe /s" /f

REG ADD %KEY%\006 /VE /D "NetFramework" /f

REG ADD %KEY%\006 /V 1 /D "%PP%Software\NetFramework\netfx.msi /qb" /f

REG ADD %KEY%\007 /VE /D "Mozilla Suite" /f

REG ADD %KEY%\007 /V 1 /D "%PP%Software\Mozilla Suitemozilla-win32-1.7.13-installer.exe -ma -ira" /f

REG ADD %KEY%\008 /VE /D "Microsoft Office 2003 Professional" /f

REG ADD %KEY%\008 /V 1 /D "%PP%Software\Microsoft Office 2003 Professional\setup.exe TRANSFORMS=office11.MST /qb-" /f

REG ADD %KEY%\009 /VE /D "Frontpage 2003 Pro" /f

REG ADD %KEY%\009 /V 1 /D "%PP%Software\Frontpage 2003 Pro\setup.exe TRANSFORMS=office11.MST /qb-" /f

REG ADD %KEY%\010 /VE /D "Sun Java VM 1.4.2.05" /f

REG 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\"" /f

REG ADD %KEY%\011 /VE /D "Windows MediaPlayer 10" /f

REG 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\"" /f

REG ADD %KEY%\012 /VE /D "Yahoo Messenger" /f

REG ADD %KEY%\012 /V 1 /D "%PP%Software\Yahoo Messenger\yahoomessenger.exe /s" /f

REG ADD %KEY%\012 /V 2 /D "taskkill /f /t /im ypager.exe" /f

REG ADD %KEY%\013 /VE /D "O_O Defrag" /f

REG ADD %KEY%\013 /V 1 /D "%PP%Software\OO_DeFrag Pro\O&O Defrag Professional Edition.msi /qn"" /f

REG ADD %KEY%\014 /VE /D "O&O CleverCache Professional" /f

REG ADD %KEY%\014 /V 1 /D "%PP%Software\OO_CleverCache Pro\O&O CleverCache.msi /qn" /f

EndLocal

EXIT

Look at your "SET PP=%cdrom%\Software" variable.

Then look at:

REG ADD %KEY%\011 /V 1 /D "%PP%Software\Windows MediaPlayer 10

If 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 by X-Centric
Link to comment
Share on other sites

Something more like this may prove more fruitful!

@CMDOW @ /HID
SETLOCAL ENABLEEXTENSIONS

SET "CDROM=%~d0"
SET "PP=%CDROM%\Software"
SET "KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx"

REG ADD %KEY% /V TITLE /D "Installing Programs" /F

REG ADD %KEY%\000 /VE /D "AVG Anti Virus Program" /F
REG ADD %KEY%\000 /V 1 /D "\"%PP%\AVG Anti Virus Program\autoavgsetup.exe\"" /F

REG ADD %KEY%\001 /VE /D "EvilLyrics" /F
REG ADD %KEY%\001 /V 1 /D "%PP%\EvilLyrics\EvilLyrics.exe /s" /F
REG ADD %KEY%\001 /V 2 /D "taskkill EvilLyrics.exe" /F

REG ADD %KEY%\002 /VE /D "Microsoft DirectX 9.0c" /F
REG ADD %KEY%\002 /V 1 /D "\"%PP%\Microsoft DirectX 9.0c\dxsetup.exe\" /silent" /F

REG ADD %KEY%\003 /VE /D "Mozillia Firefox" /F
REG ADD %KEY%\003 /V 1 /D "\"%PP%\Mozillia Firefox\Firefox.exe\" -ms -ira" /F

REG ADD %KEY%\004 /VE /D "MSN" /F
REG ADD %KEY%\004 /V 1 /D "%PP%\MSN\MsnMsgs.msi /QB" /F

REG ADD %KEY%\005 /VE /D "MusicMatch Jukebox" /F
REG ADD %KEY%\005 /V 1 /D "\"%PP%\MusicMatch Jukebox\MusicMatch.exe\" /s" /F

REG ADD %KEY%\006 /VE /D "NetFramework" /F
REG ADD %KEY%\006 /V 1 /D "%PP%\NetFramework\netfx.msi /qb" /F

REG ADD %KEY%\007 /VE /D "Mozilla Suite" /F
REG ADD %KEY%\007 /V 1 /D "\"%PP%\Mozilla Suitemozilla-win32-1.7.13-installer.exe\" -ma -ira" /F

REG ADD %KEY%\008 /VE /D "Microsoft Office 2003 Professional" /F
REG ADD %KEY%\008 /V 1 /D "\"%PP%\Microsoft Office 2003 Professional\setup.exe\" TRANSFORMS=office11.MST /qb-" /F

REG ADD %KEY%\009 /VE /D "Frontpage 2003 Pro" /F
REG ADD %KEY%\009 /V 1 /D "\"%PP%\Frontpage 2003 Pro\setup.exe\" TRANSFORMS=office11.MST /qb-" /F

REG ADD %KEY%\010 /VE /D "Sun Java VM 1.4.2.05" /F
REG 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\"" /F

REG ADD %KEY%\011 /VE /D "Windows MediaPlayer 10" /F
REG 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\"" /F

REG ADD %KEY%\012 /VE /D "Yahoo Messenger" /F
REG ADD %KEY%\012 /V 1 /D "\"%PP%\Yahoo Messenger\yahoomessenger.exe\" /s" /F
REG ADD %KEY%\012 /V 2 /D "taskkill /F /t /im ypager.exe" /F

REG ADD %KEY%\013 /VE /D "O_O Defrag" /F
REG ADD %KEY%\013 /V 1 /D "\"%PP%\OO_DeFrag Pro\O&O Defrag Professional Edition.msi\" /qn" /F

REG ADD %KEY%\014 /VE /D "O&O CleverCache Professional" /F
REG ADD %KEY%\014 /V 1 /D "\"%PP%\OO_CleverCache Pro\O&O CleverCache.msi\" /qn" /F

ENDLOCAL
EXIT

Link to comment
Share on other sites

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

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 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.

Edited by X-Centric
Link to comment
Share on other sites

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 paths

Putting 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

@CMDOW @ /HID

SETLOCAL ENABLEEXTENSIONS

SET "CDROM=%~d0"

SET "PP=%CDROM%\Software"

SET "KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx"

REG ADD %KEY% /V TITLE /D "Installing Programs" /F

REG ADD %KEY%\000 /VE /D "AVG Anti Virus Program" /F

REG ADD %KEY%\000 /V 1 /D "\"%PP%\AVG Anti Virus Program\autoavgsetup.exe\"" /F

This is what it looks like know.

It didn't install any programs.

Link to comment
Share on other sites

Then try it this then it checks for this file win51ip.SP2

@Echo Off

for %%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=%%i

Set PP=%CDROM%\Software

This one checks for a file in the i386 folder named ZONEOC.DL_

@Echo Off

for %%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=%%i

Set PP=%CDROM%\Software

Link to comment
Share on other sites

@CMDOW @ /HID

SETLOCAL ENABLEEXTENSIONS

SET "CDROM=%~d0"

SET "PP=%CDROM%\Software"

SET "KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx"

REG ADD %KEY% /V TITLE /D "Installing Programs" /F

REG ADD %KEY%\000 /VE /D "AVG Anti Virus Program" /F

REG ADD %KEY%\000 /V 1 /D "\"%PP%\AVG Anti Virus Program\autoavgsetup.exe\"" /F

This 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\"" /F

This is how it should be written:

REG ADD %KEY%\000 /V 1 /D "%PP%\AVG Anti Virus Program\autoavgsetup.exe" /F

Take 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 by X-Centric
Link to comment
Share on other sites

Look at this line of code:

REG ADD %KEY%\000 /V 1 /D "\"%PP%\AVG Anti Virus Program\autoavgsetup.exe\"" /F

This is how it should be written:

REG ADD %KEY%\000 /V 1 /D "%PP%\AVG Anti Virus Program\autoavgsetup.exe" /F

Take 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 by Yzöwl
Link to comment
Share on other sites

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 by T D
Link to comment
Share on other sites

@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\"" /F

I 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 :P

Cheers

Edited by smashly
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...