
edg21
Content Type
Profiles
Forums
Events
Posts posted by edg21
-
-
Q823718.exe /C:"dahotfix.exe /q /n" /q
works too
however extracting it makes it 5.5mb instead of the original 1.5mb... although that could be trimmed down if you compress everything like I do.
0 -
Well... in all honesty if you only have 6 techs out in the field.... this might work for you.
http://www.onecomputerguy.com/networking/x..._vpn_server.htm
0 -
Ummm.... you need to be a little more specific
0 -
before we go any further wiht this there are some installers that this thing does not like for those cmd files will still need to be used but i have found a little command line program that allows you to execute cmd files without the window. I also found another one that will tree the command so you can do multiple things with it. For instance you could aslo log what is going on in the batch file. to a txt file for later viewing. Only problem is that this loging is not available for for any normal installers run through the inf file.
As for running them through winnt.sif
this should do the trick. This is untested though. I am currently converting most my install stuff to this.
Run("C:\WINDOWS\rundll.exe","setupapi,InstallHinfSection DefaultInstall 132 path\to\inf\file\install.inf")
Let me test that though first to make sure but it should work. I'll run up the scripts real quick and test it in virtualpc. I'll snapshot it in irfanview for you guys.
I will be anxiously awaiting the results, until then I will be converting over to this myself to see how things go. For anyone curious I found info regarding the .inf files here: http://www.microsoft.com/windows/ieak/tech...0/en/INFDOC.HTM
I also came across a couple ways to run batch files silently... well hidden at least:
http://groups.google.com/groups?hl=en&lr=&....com%26rnum%3D2
0 -
ok since I dont have it all finished yet I wanted to show the inf file I use for this. It looks more or les the same accept you can change the header stuff so it does not say windows update.
;
; Version 2.0
; Copyright : © 2000,2001,2002,2003
; by Brook Humphrey (bah@webmedic.net)
; for Mobile PC Medic OEM systems
;
[version]
signature = "$CHICAGO$"
Compatible = 1
AdvancedINF = 2.5,"You need a newer version of AdvPack.DLL!"
LayoutFile = layout.inf, layout1.inf, layout2.inf
[DefaultInstall]
AddReg = AdvSetup
[DefaultInstall2]
BeginPrompt = InstallBegin
SmartReboot = N
[InstallBegin]
Prompt = "Do you want to install the WindowsXP Shell Toy?"
ButtonType = YESNO
Title = "The Mobile PC Medic Shell Toy"
[AdvSetup]
HKLM,%RunOnce%setup," Shell Install XP by Brook Humphrey",0,""
HKLM,%RunOnce%setup," © 2000, 2001, 2002, 2003",0,""
HKLM,%RunOnce%setup," www.webmedic.net",0,""
HKLM,%RunOnce%setup,"_______________________",0,""
HKLM,%RunOnce%setup," ",0,""
;HKLM,%RunOnce%Setup,"Installing Shell Toy",0,"RunDll32.exe advpack.dll,LaunchINFSection %1%\test.INF,DefaultInstall2"
;HKLM,%RunOnce%setup," ",0,"c:\\install\\applications\\pspad\\pspad426inst_en.exe"
HKLM,%RunOnce%setup,"Ad-Aware", 0, "%systemdrive%\\install\\applications\\adaware\\aaw6181.exe /s"
;HKLM,%RunOnce%setup,"TweakUI Link",0,"COPY %TweakUILink% %TweakUILinkDest%"
HKLM,%RunOnce%setup,"K-Lite Codec Pack 2.04 Basic", 0, "%systemdrive%\\install\\applications\\codecs\\klcodec204f.exe /VERYSILENT /SP-"
HKLM,%RunOnce%setup,"QuickTime Alternative 1.11", 0, "%systemdrive%\\install\applications\\codecs\\quicktimealt111.exe /VERYSILENT /SP-"
HKLM,%RunOnce%setup,"Real Alternative 1.02", 0, "%systemdrive%\\install\applications\\codecs\\realalt102.exe /VERYSILENT /SP-"
HKLM,%RunOnce%setup,"Kazaa Lite K-plus-plus 2.41", 0, "%systemdrive%\\install\\applications\\Kazaa\\klitekpp241e.exe /verysilent"
HKLM,%RunOnce%setup,"ATI Control Panel for Catalyst 3.6",0,"%systemdrive%\\install\\applications\\ATI_CP_3_6\\Setup.exe -s -f1\"%systemdrive%\\install\\Applications\\ATI_CP_3_6\\setup.iss\""
HKLM,%RunOnce%setup,"Flashget 1.4", 0, "%systemdrive%\\install\\applications\\flashget\\fgf140.exe /S"
HKLM,%RunOnce%setup,"Nero Burning ROM v6.0.0.11", 0, "%systemdrive%\\install\\applications\\Nero\\Nero60011.exe /silent /noreboot"
HKLM,%RunOnce%setup,"Registering Nero Burning ROM...",0,"REGEDIT /S %systemdrive%\\install\\Applications\\Nero\\register.reg"
HKLM,%RunOnce%setup,"Nforce Audio Controle Panle", 0 ,"RunDll32.exe advpack.dll,LaunchINFSection %systemdrive%\\drivers\\nforce\\AudioUtl\\nvautils.inf,DefaultInstall"
HKLM,%RunOnce%setup,"Startup Control Panel v2.8...",0, "RunDll32.exe advpack.dll,LaunchINFSection %systemdrive%\\install\\applications\\StartupCPL\\startup.inf,DefaultInstall"
HKLM,%RunOnce%setup,"Sun Java VM 1.4.1", 0, "%systemdrive%\\install\applications\\SunJava_1_4_1\\setup.exe -s -f1\"%systemdrive%\\install\\Applications\\SunJava_1_4_1\\setup.iss\""
HKLM,%RunOnce%setup,"Open Office 1.1rc2", 0, "%systemdrive%\\install\applications\\OOo_1.1rc2\\setup.exe -r:%systemdrive%\\install\\Applications\\OOo_1.1rc2\\openoffice.txt -debug"
HKLM,%RunOnce%setup,"Mozilla 1.4", 0, "%systemdrive%\\install\applications\\Mozilla\\setup.exe -ma -ira"
[Del.AdvSetup]
HKLM,%RunOnce%setup,"Installing Shell Toy",0,""
[Strings]
systemdrive = "c:"
Product = "Shell Toy XP"
DiskName = "Shell Toy XP, Setup Disk #1"
Uninstall = "Software\Microsoft\Windows\CurrentVersion\Uninstall\"
Runonce = "SOFTWARE\Microsoft\Windows\CurrentVersion\Runonce\"
Setup = "SOFTWARE\Microsoft\Windows\CurrentVersion\Setup"
DosHere = "DOS PROMPT HERE"
Edi = "01,00,00,00"
SubDir = "WINDOWS"
EXPLO = "Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
KEY_RUNONCE = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
KEY_INSTALLEDCOMPS="SOFTWARE\Microsoft\Active Setup\Installed Components"
OnlineLong = "Online Services"
KEY_IEXPLORERMAIN="Software\Microsoft\Internet Explorer\Main"
NAME_RUNONCE= "MPCM Settings"
w95u1 = "rundll.exe setupx.dll,InstallHinfSection"
wNTu1 = "RunDll32 syssetup.dll,SetupInfObjectInstallAction"
wu2 = "DefaultUninstall 132"
AppDir =
AppGroup =
AppName = "My Application"
CopyrightMessage = "Copyright (c) 2003. All rights reserved. My Company. www.pablovandermeer.nl."
TweakUILink = "\"c:\\install\\PowerToys\\TweakUI 2.10 Powertoy.lnk\""
TweakUILinkDest = "\"c:\\Documents and Settings\\All Users\\Start Menu\\Programs\\\""there are some things I'm testing in there but you get the idea how it's done. Shortly I will add to it I think I have found a way to include other things that dont want to install nicely. Like tweakui for now you can just drop this onto your desctop or anyware and as long as you have the install files on your hard drive under install then it will start installing them.
Just right click on it and select install to see how it looks. Man when i saw the other way of doing this I realized I have had this sitting around for a long time. I had a little thing I called shell toy that would add right click command propmt and whatnot to your shell stuff and you could ininstall it also so I just modified this to do what I wanted for the installer. Enjoy all.
Let me know I can also turn most or the registry tweeks into little inf files like this so you can uninstall them if you want. I dont know why I did not think of this sooner. Change it how ever you like I only ask you leave in the header.
Now this I like
May I ask how you are calling this from winnt.sif??? Also could we get a screenshot of this in action?
0 -
Well i have tested it, and, it works, a few tweaks needed to be made, namely .com instead of .exe for my batches (what a plum i am...lol...) so here is the new code
What program did you use to convert your batch files into executables?
0 -
;Put my computer my network places my documents on the desktop
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000
"{450D8FBA-AD25-11D0-98A8-0800361B1103}"=dword:00000000
"{208D2C60-3AEA-1069-A2D7-08002B30309D}"=dword:000000000 -
Winamp 100% silent? How? Please tell.
thx
I simply installed winamp & copied the directory. Don't forget to copy over the shortcuts for your start menu if you want those too
To create the proper file associations for winamp us the following link:
http://www.jsiinc.com/SUBA/tip0100/rh0108.htm
As far was the silent install of WinRAR:
ECHO.
ECHO Installing Winrar v3.20 Corporate Edition...
start /wait %systemdrive%\install\winrar320\winrar320.exe /s0 -
This also works for resetting your cd key on a Windows XP w/SP1 computer:
'
' WMI Script - ChangeVLKey.vbs
'
' This script changes the product key on the computer
'
'***************************************************************************
ON ERROR RESUME NEXT
if Wscript.arguments.count<1 then
Wscript.echo "Script can't run without VolumeProductKey argument"
Wscript.echo "Correct usage: Cscript ChangeVLKey.vbs ABCDE-FGHIJ-KLMNO-PRSTU-WYQZX"
Wscript.quit
end if
Dim VOL_PROD_KEY
VOL_PROD_KEY = Wscript.arguments.Item(0)
VOL_PROD_KEY = Replace(VOL_PROD_KEY,"-","") 'remove hyphens if any
for each Obj in GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("win32_WindowsProductActivation")
result = Obj.SetProductKey (VOL_PROD_KEY)
if err <> 0 then
WScript.Echo Err.Description, "0x" & Hex(Err.Number)
Err.Clear
end if
NextThis will reset your cd key on a Windows XP Computer WITHOUT SP1
'
' WMI Script - ChangeVLKey.vbs
'
' This script changes the product key on the computer
'
'***************************************************************************
ON ERROR RESUME NEXT
if Wscript.arguments.count<1 then
Wscript.echo "Script can't run without VolumeProductKey argument"
Wscript.echo "Correct usage: Cscript ChangeVLKey.vbs ABCDE-FGHIJ-KLMNO-PRSTU-WYQZX"
Wscript.quit
end if
Dim VOL_PROD_KEY
VOL_PROD_KEY = Wscript.arguments.Item(0)
VOL_PROD_KEY = Replace(VOL_PROD_KEY,"-","") 'remove hyphens if any
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegDelete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WPAEvents\OOBETimer" 'delete OOBETimer registry value
for each Obj in GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("win32_WindowsProductActivation")
result = Obj.SetProductKey (VOL_PROD_KEY)
if err <> 0 then
WScript.Echo Err.Description, "0x" & Hex(Err.Number)
Err.Clear
end if
NextOriginal MS Article: http://support.microsoft.com/default.aspx?...;en-us;328874#5
Not sure if this only works on corp versions or not....
0 -
I suppose you could set that in the setup.iss files if the apps you're installing are using InstallShield.....
0 -
place a >nul after the copy command like this:
ECHO.
ECHO Copying WGET v1.9 beta with SSL support...
copy %systemdrive%\install\wget\*.* %systemdrive%\windows\system32 >nul0 -
How did you compress them with winrar, do they uncompress automatically and install, or is there some user interaction?
I placed unrar.exe on the cd in \$oem$\$$\system32\unrar.exe, making the command available
I'm not sure if making them self extracting files would be any better as far as compression, but I like to have unrar.exe in my path anyways.
ECHO Extracting Applications...
%systemdrive%\windows\system32\unrar.exe x %systemdrive%\install\apps.rar %systemdrive%\installI dont think this option would work, because it only works with winrar installed on the target system, so you could overcome this by installing winrar..
Sunil
Actually it works great
By placing unrar.exe into \$oem$\$$\system32 setup copies unrar.exe over to the %systemdrive%\windows\system32 during the installation
And I have winrar 3.20 installing silently, with all the other apps I install after it has been extracted from apps.rar
0 -
k, thanks guys
Also... I'm curious as to wether or not this would work, considering atiddc.dll is one of the ATI catalyst drivers & is not present on a system with an nvidia card, would I be able to add this to my apps.cmd that runs after 1st login?
if exist %systemdrive%\windows\system32\atiddc.dll goto atiyes
if not exist %systemdrive%\windows\system32\atiddc.dll goto atino
:ATIYES
ECHO.
ECHO Installing ATI Control Panel...
start /wait %systemdrive%\install\aticp36\Setup.exe -s -f1"%systemdrive%\install\aticp\setup.iss"
goto hotfix
:ATINO
goto hotfix0 -
How did you compress them with winrar, do they uncompress automatically and install, or is there some user interaction?
I placed unrar.exe on the cd in \$oem$\$$\system32\unrar.exe, making the command available
I'm not sure if making them self extracting files would be any better as far as compression, but I like to have unrar.exe in my path anyways.
ECHO Extracting Applications...
%systemdrive%\windows\system32\unrar.exe x %systemdrive%\install\apps.rar %systemdrive%\install0 -
Is this directory structure correct & is the winnt.sif syntax correct?
I have the winnt.sif pointing to where the .inf files for the drivers are located...
$OEM$
$1\drivers\
$1\drivers\ATI\DISPLAY <- Catalyst Drivers
$1\drivers\ATI\WDM <- WDM Capture Drivers
$1\drivers\NVIDIA\DISPLAY <- Detonator Drivers
WINNT.SIF
;SetupMgrTag
[Data]
AutoPartition=1
MsDosInitiated="0"
UnattendedInstall="Yes"
[Unattended]
UnattendMode=FullUnattended
UnattendSwitch="yes"
OemSkipEula=Yes
OemPreinstall=Yes
TargetPath=\WINDOWS
WaitForReboot="No"
Repartition=yes
DriverSigningPolicy=Ignore
OemPnPDriversPath="drivers\video\nvidia\display;drivers\video\ati\display\2kxp_inf;drivers\video\ati\wdm\wdm_xp"
[GuiUnattended]
AdminPassword="futurama"
EncryptedAdminPassword=NO
AutoLogon=Yes
AutoLogonCount=1
OEMSkipRegional=1
TimeZone=4
OemSkipWelcome=1
[UserData]
ProductKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
FullName="Bender"
OrgName="Planet Express"
ComputerName=*
[TapiLocation]
CountryCode=1
Dialing=Tone
AreaCode=503
[RegionalSettings]
LanguageGroup=1
[Branding]
BrandIEUsingUnattended=Yes
[URL]
Home_Page=http://www.google.com
[Proxy]
Proxy_Enable=0
Use_Same_Proxy=1
[Identification]
JoinWorkgroup=malevolence
[Networking]
InstallDefaultComponents=Yes
[Shell]
DefaultThemesOff=Yes
DefaultStartPanel=Yes
[Components]
AutoUpdate=off
msnexplr=off
[GuiRunOnce]
%systemdrive%\windows\system32\apps.cmd0 -
My Super Windows XP w/SP1 CD has the following features:
The Setup will create a single Partition on the primary
hdd and format it using NTFS.
All applications & hotfixes have been compressed using winrar
\$oem$\$1\install\apps.rar (95mb)
\$oem$\$1\install\hotfix.rar (33.5mb)
In addition to all pre-sp2 hotfixes being installed... setup also silently installs the following applications:
WinRAR v3.20 Corporate Edition
DirectX v9.0b
Windows Media Player 9
Alcohol 120% v1.46.711 Multi-Language Retail
Ahead Nero 6.0.0.11 Ultra Edition
Hacked UXTHEME.DLL
Kazaa Lite K++ Edition v2.4.2
K-Lite Codec Pack FULL (includes BSPlayer v0.8)
Total Commander v5.50
Microsoft JavaVM - Build 3809
Microsoft JavaVM Update to 3810
Microsoft .NET Framework v1.1
WGET v1.9 Beta w/SSL Libraries
SecureCRT v4.08
Winamp v2.91 Full (And sets proper file associations 100% SILENT)
mIRC v6.03
MISC:
No MSN Exprlorer installed
Disabled Error Reporting
Disabled Automatic Updates
My Computer, My Network Places, & My Documents Icons on the desktop
Default Classic Windows Theme
Removed Windows Update Shortcut
Removed Windows Catalog Shortcut
Removed Set Program Access & Defaults Shortcut
Included Drivers:
NViDIA Detonator v45.23 WHQL Signed
ATi Catalyst v3.6 Driver Suite & WDM Capture Driver
Total size: 526mb
I've yet to test the drivers portion of the cd, but all other features work properly. If anyone has questions or can help me with verify that my drivers & winnt.sif are setup properly for 3rd party driver support, send me a pm... thanks
0
using windows update
in Unattended Windows 2000/XP/2003
Posted
You can set file associations before you try to open the flash
But I think there are better ways to go about it than covering it up....
Change file associations via command line:
http://www.jsiinc.com/SUBA/tip0100/rh0108.htm
As far as opening up a command prompt without a window showing use this:
And call it like this:
You could also do this (should minimize the window)