Jump to content

Recommended Posts


Posted

LOL well I try to install any windows components and other things before you actually boot in. I also apply my root registry tweeks there and a few other things that customize it. Then when you reboot almost everything is done accpept for installing applications and deleting things from the desktop and stuff like that. The last time you boot it boots into windows with the start menu open and with things looking clean. For some reason though the desktop background did not take corectly after converting the installer over to the inf files.

I will need to look at that. It would be my guess that for some reason my registry tweaks are not taking correctly. Not sure exactly why it would happen though as it was all working fine before and the rest of the registry tweeks seem to be taking just fine. I'll have to look into it. I could always force the inf file to install it stuff by hand like the inf is supposed to do but I would rather do it this way.

Posted

@webmedic:

could you give me a hint on how you managed to create these message dialog screens. did you code it with c++ or something like that? i can't see a solution via standard batch. That looks awesome! I need me get one of those. :)

Posted

well yes I tell how to do it in that thread using inf files. It works quite nice too. Accept for a few small glitches. Like the inf method does not like msi installers. :rolleyes:

but other than that it looks good when done. :):D

Posted

well I'm going to just make a cmd file and then call the cmd file. I know it's a little cheesy but hey. I have a little progy that will hide the cmd windows from view completetly. it's very nice to use accpet for when you are trying to debug your install.

Posted
Are you going to call the cmd file directly from the inf or somewhere else?

Yes I already have a few other things being called that way. I could move it completely out of the inf file though I suppose.

Posted
yeah looks like it, a batch file called from the INF, then an app that will hide the command prompt window.

Exactly I must not have been very clear but this is how I have it running now.

Posted

webmedic-

Do you find more stability in adding registry tweaks and key windows upgrades such as directx 9b and framework befor first boot?

And if so how does one go about doing it?

|Drew|

Posted

Lol well I dont know if it's more stable or not but I do prefer to add the microsft things early on so that any apps that are installed later that may need the funcionality will be able to take advantage of it.

This is also why I install sun java before openoffice and mozilla. As for the early on stuff. You need to have a cmdlines.txt in your $OEM$ directory. The cmdlines.txt then calls whatever other things you want to install.

This is what my cmdlines.txt looks like.

[COMMANDS]
"cmdow /run /hid .\USER.CMD"
"RunDll32.exe setupapi,InstallHinfSection DefaultInstall 0 .\Setup.inf"
"cmdow /run /hid .\SETUP.CMD"

I find here I also want to setup my user so that I can boot in and install all my apps as my user and not admin. I also prefer to add any system whide registry settings here so that when you boot in the first time these settings are already setup and ready to go so I install my root reg tweaks here.

My user.cmd is placed in $OEM$ right along with the cmdlines.txt

Now for my user.cmd

CLS
@ECHO OFF
ECHO Adding Default User...
net user User /add
net localgroup "administrators" User /add
ECHO.
ECHO Applying Root Registry Tweaks...
REGEDIT /S %systemdrive%\install\Reg_Root_Tweaks.reg
ECHO.
EXIT

My reg_root_tweaks.reg

Windows Registry Editor Version 5.00 

;This will allow you to autologin.
;Replace InsertName value with the Username you want to autologin with.
;Replace InsertPassword value with the password corresponding to the Username specified.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="User"
"DefaultPassword"=""
"AutoAdminLogon"="1"

;This will add "Services" to the right-click menu of "My Computer"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services]
@=hex(2):53,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,00,00
"SuppressionPolicy"=dword:4000003c
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services\command]
@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73, 00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00, 65,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52, 00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00, 32,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,2e,00,6d,00,73, 00,63,00,20,00,2f,00,73,00,00,00

;This adds the "Open Command Window Here" on the right-click menu for folders
[HKEY_CLASSES_ROOT\Directory\shell\cmd]
@="Open Command Window Here"
[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]
@="cmd.exe /k \"cd %L\""

;Disable Windows Picture and Fax Viewer
[-HKEY_CLASSES_ROOT\SystemFileAssociations\image\ShellEx\ContextMenuHandlers\ShellImagePreview]

;Disable Automatic Restart in the event of a BSOD
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
"AutoReboot"=dword:00000000

;Disables Error Reporting, but notifies when errors occur
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting]
"DoReport"=dword:00000000

;Disable Imapi CD-Burning Service
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ImapiService]
"Start"=dword:00000004

;Disable Messenger Service (to block spam. Does not affect MSN or Windows Messenger)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Messenger]
"Start"=dword:00000004

;Disable Remote Registry Service
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteRegistry]
"Start"=dword:00000004

;Disable Windows Time Service
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time]
"Start"=dword:00000004

;Disable Welcome Screen and uses Classic Logon
;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
;"LogonType"=dword:00000000

;Removes Language Bar
[-HKEY_CLASSES_ROOT\CLSID\{540D8A8B-1C3F-4E32-8132-530F6A502090}]
@="Language bar"
"MenuTextPUI"="@%SystemRoot%\\System32\\msutb.dll,-325"

;Remove Shared Documents from My Computer
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\DelegateFolders\{59031a47-3f72-44a7-89c5-5595fe6b30ee}]

;Remove Shortcut Arrows
[HKEY_CLASSES_ROOT\lnkfile]
"IsShortcut"=-

;Allow renaming of Recycle Bin
[HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder]
"Attributes"=hex:50,01,00,20
"CallForAttributes"=dword:00000000

;Speed up browsing remote computers
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}]

;Speed up NTFS
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"NtfsDisable8dot3NameCreation"=dword:00000001
"Win31FileSystem"=dword:00000000
"Win95TruncatedExtensions"=dword:00000001
"NtfsDisableLastAccessUpdate"=dword:00000001

;Always unload Dlls
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
"AlwaysUnloadDll"=dword:00000001
"NoStartMenuPinnedList"=dword:00000001

;RAM usage tweaks
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"DisablePagingExecutive"=dword:00000001
"LargeSystemCache"=dword:00000001
"IoPageLockLimit"=dword:1bf00000
"SecondLevelDataCache"=dword:00000100

;Prefetcher tweak(faster booting)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"EnablePrefetcher"=dword:00000003

;Changes Windows Driver Signing Policy 'prompt' to 'ignore'
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Driver Signing]
"Policy"=hex:00

;Disable Nvidia Driver Helper Service
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NVSvc]
"Start"=dword:00000004

;Disable System Restore
;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore]
;"DisableSR"=dword:00000001

;Disable Remote Assistance
;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]
;"fDenyTSConnections"=dword:00000001
;"fAllowToGetHelp"=dword:00000000

;Disable Autoupdates
;[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]
;"NoAutoUpdate"=dword:00000001

;Disable Autoupdates
;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update]
;"AUOptions"=dword:00000001
;"AUState"=dword:00000007

;Disable QoS
;[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Psched]
;"NonBestEffortLimit"=dword:00000000

;Disable the Desktop Cleanup Wizard
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz]
"NoRun"=dword:00000001

;Adds search keywords to Internet Explorer (in this order: Microsoft Knowledge Base, Altavista, Google, MSN, FileMirrors)
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\SearchUrl\MSKB]
@="http://support.microsoft.com/?kbid=%s"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\SearchUrl\AV]
@="http://www.altavista.com/sites/search/web?q=%s"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\SearchUrl\GGL]
@="http://www.google.com/search?q=%s"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\SearchUrl\MSN]
@="http://search.msn.com/results.asp?q=%s"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\SearchUrl\FM]
@="http://www.filemirrors.com/search.src?file=%s"

;Prevents Internet Explorer windows from being reused
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main]
"AllowWindowReuse"=dword:00000000

;Max your Internet Explorer's simultaneous downloads to 10 (default was 2)
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"MaxConnectionsPer1_0Server"=dword:0000000a
"MaxConnectionsPerServer"=dword:0000000a

;Change MenuShowDelay (Start Menu load speed)
;[HKEY_LOCAL_MACHINE\Control Panel\Desktop]
;"MenuShowDelay"="2"

;Disables Windows Tour bubble popup
;[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]
;"RunCount"=dword:00000000
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]
"RunCount"=dword:00000000

;NoLowDiskSpaceChecks won't check if you are low on diskspace or pop-up a balloon telling you.
;[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
;"NoLowDiskSpaceChecks"=dword:00000001

;Disable Recycle Bin
;Removes low disk space check, start menu pins, recent docs, and forces control pannel into classic mode
;[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
;"NoRecentDocsMenu"=dword:00000001
;"NoDriveTypeAutoRun"=dword:00000091
;"NoCDBurning"=dword:00000001
;"NoRecycleFiles"=dword:00000001
;"NoLowDiskSpaceChecks"=dword:00000001
;"NoStartMenuPinnedList"=dword:00000001
;"ForceClassicControlPanel"=dword:00000001
;"Start_NotifyNewApps"=dword:00000000

;Stop Messenger
;[HKEY_LOCAL_MACHINE\Software\Microsoft\MSNMessenger]
;"AppSettings"= hex:22,04,00,00

;Removes MSN v6 from startup
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"MsnMsgr"=-

;IE stuff
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main]
"Start Page"="about:blank"
"ShowGoButton"="no"
"NotifyDownloadComplete"="no"
"Use FormSuggest"="yes"

;Stuff
;[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;"Hidden"=dword:00000001
;"ShowCompColor"=dword:00000001
;"HideFileExt"=dword:00000000
;"DontPrettyPath"=dword:00000000
;"ShowInfoTip"=dword:00000001
;"HideIcons"=dword:00000000
;"MapNetDrvBtn"=dword:00000000
;"WebView"=dword:00000000
;"Filter"=dword:00000000
;"SuperHidden"=dword:00000001
;"SeparateProcess"=dword:00000000
;"ListviewAlphaSelect"=dword:00000000
;"ListviewShadow"=dword:00000000
;"ListviewWatermark"=dword:00000000
;"TaskbarAnimations"=dword:00000000
;"StartMenuInit"=dword:00000002
;"Start_LargeMFUIcons"=dword:00000000
;"Start_MinMFU"=dword:00000000
;"Start_ShowControlPanel"=dword:00000001
;"Start_EnableDragDrop"=dword:00000001
;"StartMenuFavorites"=dword:00000000
;"Start_ShowHelp"=dword:00000000
;"Start_ShowMyComputer"=dword:00000000
;"Start_ShowMyDocs"=dword:00000000
;"Start_ShowMyMusic"=dword:00000000
;"Start_ShowMyPics"=dword:00000000
;"Start_ShowPrinters"=dword:00000000
;"Start_ShowRun"=dword:00000001
;"Start_ScrollPrograms"=dword:00000000
;"Start_ShowSearch"=dword:00000001
;"Start_ShowRecentDocs"=dword:00000000
;"Start_AutoCascade"=dword:00000000
;"Start_NotifyNewApps"=dword:00000000
;"Start_AdminToolsRoot"=dword:00000000
;"StartMenuAdminTools"=dword:00000000
;"TaskbarSizeMove"=dword:00000001
;"TaskbarGlomming"=dword:00000000
;"NoNetCrawling"=dword:00000001
;"FolderContentsInfoTip"=dword:00000001
;"FriendlyTree"=dword:00000000
;"WebViewBarricade"=dword:00000001
;"DisableThumbnailCache"=dword:00000001
;"ShowSuperHidden"=dword:00000001
;"ClassicViewState"=dword:00000001
;"PersistBrowsers"=dword:00000000
;"CascadeNetworkConnections"="YES"
;"StartButtonBalloonTip"=dword:00000002
;"Start_ShowNetConn_ShouldShow"=dword:00000042

;[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Desktop\General]
"BackupWallpaper"="c:\\windows\\web\\wallpaper\\Sunset.jpg"
"Wallpaper"="c:\\windows\\web\wallpaper\\The Beach.jpg"

;[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main]
;"Start Page"="http://www.latinguia.com...."


; Make mozilla the default browser.
[HKEY_LOCAL_MACHINE\Software\Classes\.htm]
@="MozillaMarkup"
[HKEY_LOCAL_MACHINE\Software\Classes\.html]
@="MozillaMarkup"
[HKEY_LOCAL_MACHINE\Software\Classes\ftp\shell\open\command]
@="C:\\Program Files\\mozilla.org\\Mozilla\\Mozilla.exe \"%1\""
[HKEY_LOCAL_MACHINE\Software\Classes\http\shell\open\command]
@="C:\\Program Files\\mozilla.org\\Mozilla\\Mozilla.exe \"%1\""
[HKEY_LOCAL_MACHINE\Software\Classes\https\shell\open\command]
@="C:\\Program Files\\mozilla.org\\Mozilla\\Mozilla.exe \"%1\""

the setup.inf is what you are seeing that looks nice I'm trying to get it setup to completly install the microsoft apps here.

and last the setup.cmd

CLS
@ECHO OFF
ECHO Copying OEM Information...
COPY "%systemdrive%\Install\Oeminfo.ini" "%systemroot%\system\Oeminfo.ini"
COPY "%systemdrive%\Install\Oemlogo.bmp" "%systemroot%\system\Oemlogo.bmp"
ECHO.
ECHO Copying Windows XP 3D Screensaver...
COPY "%systemdrive%\Install\Powertoys\3D Windows XP.scr" "%systemroot%\system32"
ECHO.
ECHO Deleting useless ASP.NET User Account created by .NET Framework 1.1...
start /wait net user aspnet /delete
ECHO.
EXIT

Now along with the way I have it setup you will want to change your winnt.sif so that the default user is setup with these files instead of with the winnt.sif so Use this in your winnt.sif

[GuiUnattended]
AdminPassword=*
EncryptedAdminPassword=no
OEMSkipRegional=1
TimeZone="004"
OemSkipWelcome=1

[UserData]
ProductID=use-your-own-cd-key
FullName="User"
OrgName="My Home"
ComputerName=Computer

of course you will want to use your own timezone but the rest should be fine.

There you have it all how to do your complete setup and have everything installed as a user on your system

One last thing I have a bat file that loads as the very last thing durring the install after all the apps have been laoded. This file does all my clean up work like deleteing icons off your desktop. The most important part of this is that it also moves all the links from users start menu folder to all users. I have found this is a good way to make all apps avaialble to all users on the system.

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