Jump to content

Switch Help.


andrew84uk

Recommended Posts

Hello, I am new to the forum and what i am looking for is some switches for some popular applications. Basically this is what i have so far.

I am creating it from t-12 with a RunOnce method as this looks great when installing.

@Echo Off

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

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

REG ADD %KEY%\001 /VE /D "DotNet Fix 1.1" /f
REG ADD %KEY%\001 /V 1 /D "%SystemDrive%\Install\2\install.exe " /f

REG ADD %KEY%\002 /VE /D "DotNet Fix 2.0" /f
REG ADD %KEY%\002 /V 1 /D "%SystemDrive%\Install\3\install.exe " /f

REG ADD %KEY%\003 /VE /D "HighMatt CD Writting" /f
REG ADD %KEY%\003 /V 1 /D "%SystemDrive%\Install\4\update\update.exe " /f

REG ADD %KEY%\004 /VE /D "Windows Connect 2.0" /f
REG ADD %KEY%\004 /V 1 /D "%SystemDrive%\Install\5\wmcsetup.exe " /f

REG ADD %KEY%\005 /VE /D "TweakUi Powertoy" /f
REG ADD %KEY%\005 /V 1 /D "%SystemDrive%\Install\6\TweakUiPowertoySetup.exe " /f

REG ADD %KEY%\006 /VE /D "Java 1.5.0.06" /f
REG ADD %KEY%\006 /V 1 /D "%SystemDrive%\Install\7\jre-1_5_0_06-windows-i586-p.exe " /f

REG ADD %KEY%\007 /VE /D "CCcleaner 1.26" /f
REG ADD %KEY%\007 /V 1 /D "%SystemDrive%\Install\8\ccsetup126.exe " /f

REG ADD %KEY%\008 /VE /D "Msn Messenger 7.5.0311" /f
REG ADD %KEY%\008 /V 1 /D "%SystemDrive%\Install\9\Install_MSN_Messenger.exe " /f
REG ADD %KEY%\008 /V 2 /D "taskkill /IM msnmsgr.exe /F" /f

REG ADD %KEY%\009 /VE /D "LimeWire PRO 4.9.30" /f
REG ADD %KEY%\009 /V 1 /D "%SystemDrive%\Install\10\LimeWireWin.exe " /f
REG ADD %KEY%\009 /V 2 /D "taskkill /IM LimeWire.exe /F" /f


REG ADD %KEY%\010 /VE /D "Mcafee Antivirus 8.0.0" /f
REG ADD %KEY%\010 /V 1 /D "%SystemDrive%\install\11\Setup.exe " /f

REG ADD %KEY%\011 /VE /D "Cleaning Up" /f
REG ADD %KEY%\011 /V 1 /D "%SystemDrive%\Install\cleanup.cmd " /f

EXIT

Then this is my cleanup.cmd file.

cmdow @ /HID
net user aspnet /delete

DEL "%systemroot%\*.bmp"
DEL "%systemroot%\Web\Wallpaper\*.jpg"
DEL "%systemroot%\system32\dllcache\*.scr"
DEL "%systemroot%\system32\*.scr"

DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"
DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk"
DEL "%AllUsersProfile%\Desktop\MSN Messenger 7.5.lnk"

DEL "%systemdrive%\Documents and Settings\Administrator\Desktop\CCleaner.lnk
DEL "%systemdrive%\Documents and Settings\Administrator\Desktop\Limewire PRO 4.9.30.lnk"

DEL "%systemdrive%\Documents and Settings\Administrator\start Menu\Programs\Remote Assistance.lnk"
DEL "%systemdrive%\Documents and Settings\Administrator\Start Menu\Programs\Outlook Express.lnk"
DEL "%systemdrive%\Documents and Settings\Administrator\Start Menu\Programs\Accessories\Address Book.lnk"
DEL "%systemdrive%\Documents and Settings\Administrator\Start Menu\Programs\Accessories\Synchronize.lnk"
DEL "%systemdrive%\Documents and Settings\Administrator\Start Menu\Programs\Accessories\Tour Windows XP.lnk"

RD /S /Q %systemdrive%\install\

EXIT

what i need to no is all switches on the aboce applications to allow an install without promts but visual gui's.

Could anyone with switch experience help me. I have also intergrated all the latest hotfixes, patches and windows media player 10. Thank You.

Edited by zen62619
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...