TT(n)
July 6th, 2008, 09:16 AM
I finally figured out how to silently install the .NET framework versions in my unattended xp discs!
They install best in backwards order!
Version 1.0 causes 1.1 to fail for some odd reason.
More info details on unattended windows setups here:
MSFN unattended (http://unattended.msfn.org/unattended.xp/sitemap)
I like to use the RunOnceEx method to install my programs, upon first boot.
I also like to see the current progress, but not have to input anything, since this is a fully unattended install.
First extract the .NET setups, and any other program setups, by using WinRar etc.
I like to rename the extracted folders, so that they are all of a similar convention.
Then copy and paste this as your RunOnceEx.cmd file:
cmdow @ /HID
@Echo Off
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Programs" /f
REG ADD %KEY%\000 /VE /D "Registry settings" /f
REG ADD %KEY%\000 /V 1 /D "cmd /c regedit.exe /s %systemdrive%Install\Custom.reg" /f
REG ADD %KEY%\001 /VE /D "Disable WPA Balloon" /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\Install\DisableWpaNotification.vbs" /f
REG ADD %KEY%\002 /VE /D "WinRAR 3.71" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\Install\wrar371.exe /s" /f
REG ADD %KEY%\003 /VE /D "Microsoft .Net 2.0" /f
REG ADD %KEY%\003 /V 1 /D "%systemdrive%\Install\dotnet20\install.exe /q" /f
REG ADD %KEY%\004 /VE /D "Microsoft .Net 3.0" /f
REG ADD %KEY%\004 /V 1 /D "%systemdrive%\Install\dotnet30\vs_setup.msi /passive" /f
REG ADD %KEY%\005 /VE /D "Microsoft .Net 1.1" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\dotnet11\netfx.msi /passive" /f
REG ADD %KEY%\006 /VE /D "Microsoft .Net 1.0" /f
REG ADD %KEY%\006 /V 1 /D "%systemdrive%\Install\dotnet10\netfx.msi /passive" /f
REG ADD %KEY%\007 /VE /D "Windows Internet explorer 7" /f
REG ADD %KEY%\007 /V 1 /D "%systemdrive%\Install\IE7\update\iesetup.exe /passive" /f
REG ADD %KEY%\008 /VE /D "Windows movie maker 2.0" /f
REG ADD %KEY%\008 /V 1 /D "%systemdrive%\Install\MovieMaker\MM2.msi /passive" /f
REG ADD %KEY%\009 /VE /D "Windows Media Encoder 9" /f
REG ADD %KEY%\009 /V 1 /D "%systemdrive%\Install\WMencoder.exe /Q:A /R:N" /f
REG ADD %KEY%\010 /VE /D "Windows Media Player 9" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\MPSetupXP.exe /Q:A /R:N /C:\"setup_wm.exe /DisallowSystemRestore /Q:A /R:N\"" /f
EXIT
Ahhhhye... Daniel-Son!
This example is also showing you how to silently install your personal registry tweaks, IE7, WinRar, and media player/encoder 9.
It also shows you how to disable that annoying wpa ballon reminder, with this vbs script.
Copy and paste this as your vbs script:
Set wpaColl = GetObject("winmgmts://./root/cimv2").InstancesOf("Win32_WindowsProductActivation")
For Each wpa in wpaColl
wpa.SetNotification 0
Next
My own registry tweaks took some time to gather, but it was all well worth it, in the end.
I will never again have to set my preferences, after re-installing windows.
_
They install best in backwards order!
Version 1.0 causes 1.1 to fail for some odd reason.
More info details on unattended windows setups here:
MSFN unattended (http://unattended.msfn.org/unattended.xp/sitemap)
I like to use the RunOnceEx method to install my programs, upon first boot.
I also like to see the current progress, but not have to input anything, since this is a fully unattended install.
First extract the .NET setups, and any other program setups, by using WinRar etc.
I like to rename the extracted folders, so that they are all of a similar convention.
Then copy and paste this as your RunOnceEx.cmd file:
cmdow @ /HID
@Echo Off
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Programs" /f
REG ADD %KEY%\000 /VE /D "Registry settings" /f
REG ADD %KEY%\000 /V 1 /D "cmd /c regedit.exe /s %systemdrive%Install\Custom.reg" /f
REG ADD %KEY%\001 /VE /D "Disable WPA Balloon" /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\Install\DisableWpaNotification.vbs" /f
REG ADD %KEY%\002 /VE /D "WinRAR 3.71" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\Install\wrar371.exe /s" /f
REG ADD %KEY%\003 /VE /D "Microsoft .Net 2.0" /f
REG ADD %KEY%\003 /V 1 /D "%systemdrive%\Install\dotnet20\install.exe /q" /f
REG ADD %KEY%\004 /VE /D "Microsoft .Net 3.0" /f
REG ADD %KEY%\004 /V 1 /D "%systemdrive%\Install\dotnet30\vs_setup.msi /passive" /f
REG ADD %KEY%\005 /VE /D "Microsoft .Net 1.1" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\dotnet11\netfx.msi /passive" /f
REG ADD %KEY%\006 /VE /D "Microsoft .Net 1.0" /f
REG ADD %KEY%\006 /V 1 /D "%systemdrive%\Install\dotnet10\netfx.msi /passive" /f
REG ADD %KEY%\007 /VE /D "Windows Internet explorer 7" /f
REG ADD %KEY%\007 /V 1 /D "%systemdrive%\Install\IE7\update\iesetup.exe /passive" /f
REG ADD %KEY%\008 /VE /D "Windows movie maker 2.0" /f
REG ADD %KEY%\008 /V 1 /D "%systemdrive%\Install\MovieMaker\MM2.msi /passive" /f
REG ADD %KEY%\009 /VE /D "Windows Media Encoder 9" /f
REG ADD %KEY%\009 /V 1 /D "%systemdrive%\Install\WMencoder.exe /Q:A /R:N" /f
REG ADD %KEY%\010 /VE /D "Windows Media Player 9" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\MPSetupXP.exe /Q:A /R:N /C:\"setup_wm.exe /DisallowSystemRestore /Q:A /R:N\"" /f
EXIT
Ahhhhye... Daniel-Son!
This example is also showing you how to silently install your personal registry tweaks, IE7, WinRar, and media player/encoder 9.
It also shows you how to disable that annoying wpa ballon reminder, with this vbs script.
Copy and paste this as your vbs script:
Set wpaColl = GetObject("winmgmts://./root/cimv2").InstancesOf("Win32_WindowsProductActivation")
For Each wpa in wpaColl
wpa.SetNotification 0
Next
My own registry tweaks took some time to gather, but it was all well worth it, in the end.
I will never again have to set my preferences, after re-installing windows.
_