Jump to content

Help With My Script


Recommended Posts

After Much reading last night I finally begun to understand how to do the windows update method.

Made my script but having a few problems.

Norton Antivirus 2003 won't install

Adobe Acrobat 6 won't install

Windows Media Player 10 won't install

MSN Messenger 6.2 won't install

ADD Aware installs but tries to run as well

Here is my code below

cmdow @ /HID
@echo off

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

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

REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\acrobat\adobe.exe /qn" /f

REG ADD %KEY%\010 /VE /D "MSN Messenger 6.1" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\SetupDl.exe /qn" /f

REG ADD %KEY%\015 /VE /D "K-Lite codec pack" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\codecs\codecs.exe /silent" /f

REG ADD %KEY%\020 /VE /D "Ad-Aware" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\aaw\aawsepersonal.exe /s" /f

REG ADD %KEY%\025 /VE /D "Norton AV" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\norton\norton.exe /qn /noreboot REBOOT=ReallySuppress" /f

REG ADD %KEY%\030 /VE /D "Norton AV" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\real\real.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\035 /VE /D "Media Player 10" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\wmp\mp10setup.exe /q:A /c:"setup_wm.exe /Q /R:N /P:#e" /f

REG ADD %KEY%\040 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

EXIT

Link to comment
Share on other sites


Ok, here is what I got:

REG ADD %KEY%\001 /VE /D "MS Windows Media Player 10" /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\Applications\MediaPlayer
\WMP10.exe /Q:A /C:\"setup_wm.exe /Q /R:N /DisallowSystemRestore\"" /f

REG ADD %KEY%\003 /VE /D "Adobe Reader 6.0.1" /f
REG ADD %KEY%\003 /V 1 /D "%systemdrive%\install\Applications\AdobeReader\AR6.msi /qn" /f

REG ADD %KEY%\005 /VE /D "MSN Messenger 6.2" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Applications\Messenger\MsnMsgs.msi /qn" /f

REG ADD %KEY%\009 /VE /D "LavaSoft Ad-Aware SE 1.05" /f
REG ADD %KEY%\009 /V 1 /D "%systemdrive%\install\Applications\Ad-Aware\aawsepersonal.exe /smart +silent +update" /f

For Adobe Reader and Messenger, you have to decompress the .exe installer with WinRAR for example. This will result in 2 files for both.

For Ad-Aware, some people use TASKKILL to stop it but I didn't had any success with it so I decided to install Ad-Aware as my last application...

For Norton Antivirus I can't help you... somebody else will certainly give a hint!

Maybe you could use the SEARCH function... all theses are common answered questions

Link to comment
Share on other sites

for acrobat 6.0.2

REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f

REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AdbeRdr602_distrib_enu.exe /s /a /s /v\"TRANSFORMS=Rdr602.mst /qb\"" /f

for symantec

REG ADD %KEY%\025 /VE /D "Norton AV" /f

REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\norton\SCS.msi /qb-! RUNLIVEUPDATE=0 REBOOT=REALLYSUPPRESS" /f

for media player 10

REG ADD %KEY%\035 /VE /D "Media Player 10" /f

REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\wmp\mp10setup.exe /Q:A /C:\"setup_wm.exe /Q /R:N /DisallowSystemRestore\"" /f

Link to comment
Share on other sites

Wow that was fast, thanks for the replies. I was up until 5 a.m reading this stuff and up again at 7a.m. trying to figure where I went wrong :P

So am guessing but the post by SCOOBS I don't need to extract adode and MSN after all?

Link to comment
Share on other sites

Ok here it is now thanks to the help, good to go?

Oh and I'm going to make adaware the last in that group

cmdow @ /HID
@echo off

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

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

REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AdbeRdr602_distrib_enu.exe /s /a /s /v\"TRANSFORMS=Rdr602.mst /qb\"" /f

REG ADD %KEY%\010 /VE /D "MSN Messenger 6.1" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\MsnMsgs.msi /qn" /f

REG ADD %KEY%\015 /VE /D "K-Lite codec pack" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\codecs\codecs.exe /silent" /f

REG ADD %KEY%\020 /VE /D "Ad-Aware" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\aaw\aawsepersonal.exe /s" /f

REG ADD %KEY%\025 /VE /D "Norton AV" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\norton\norton.exe /qb-! RUNLIVEUPDATE=0 REBOOT=REALLYSUPPRESS" /f

REG ADD %KEY%\030 /VE /D "Real Alternative" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\real\real.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\035 /VE /D "Media Player 10" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\wmp\mp10setup.exe /Q:A /C:\"setup_wm.exe /Q /R:N /DisallowSystemRestore\" /f

REG ADD %KEY%\040 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

EXIT

Link to comment
Share on other sites

Looks like it is still having a few problems

Adobe dosen't install throws up a batch error

Notron goes through fine, but dosen't actually install something

Windows media player looks like the same thing, but I get an error that I can't read because the PC restarts itself.

When it comes back up gives me the 90 seconds until shutdown and Adaware starts up.

:(

Link to comment
Share on other sites

For Adobe Reader, you should use my method.

For Norton, I don't know because I use a Corporative Version

For MediaPlayer 10, I don't get it since it works perfectly with my installation

For Ad-Aware, place it just before the Reboot and Cleanup command.

Make sure your syntax is flawless!

Link to comment
Share on other sites

I can't remember how I extracted exactly... I think you have to start the installation process and there is a temporary folder somewhere like %systemroot%\Cache\Adobe Reader 6\ and you can get the 2 files from there (don't cancel the setup until you get thoses files) but I don't remember if I used a switch on the .exe

On the other hand, I just downloaded Adobe Reader 6.0.1 Full version and there is 10Mo less than my method... so I will try to install with the silent switch HERE

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