Help - Search - Members - Calendar
Full Version: Useful things to put into a .reg file for Win 2000
MSFN Forums > Member Contributed Projects > HFSLIP

   
Google Internet Forums Unattended CD/DVD Guide
Bugs Bunny
I found the possibility to add .reg files very interesting and played arround a bit.
Here are some things that could be usefull for others as well. Put the needed registry settings into a text file beginning with REGEDIT4 and put the .reg file into the HFSVPK folder. I've tested these settings - they are working for me and save me some time to get windows to look like I want after installing.
The HKEY_USERS\.DEFAULT\ values&keys will get integrated in every user profile that is created, so some will proably be not usefull for all.

-----------------------
CODE

Security related:
Disable Admin Shares (in a small homenetwork I don't need them - second key I think is not needed though)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]
"AutoShareServer"=dword:00000000
"AutoShareWks"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters]
"AutoShareServer"=dword:00000000
"AutoShareWks"=dword:00000000

Restrict anonymous access:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"restrictanonymous"=dword:00000002

Enable ctrl+Alt+Del for Logon:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DisableCAD"=dword:00000000

-----------------------
Some other useful things:
Disabling CD Autorun:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom]
"AutoRun"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom\SOFTWARE\Classes\AudioCD\Shell]
""=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AudioCD\shell]
""=""
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDriveTypeAutoRun"=hex:03,ff,ff,ff

Disable recycle bin / set recycle bin to 0:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\BitBucket]
"NukeOnDelete"=dword:00000001
"Percent"=dword:00000000

Disable Offline Files:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\NetCache]
"DefCacheSize"=dword:00000000
"Enabled"=dword:00000000
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\NetCache]
"NoReminders"=dword:00000001
"SyncAtLogoff"=dword:00000000

Remove HFSLIP from installed Software:
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\HFSLIPTotalSlipstream]

Drag full windows / enable font smoothing / rolling transition effect:
[HKEY_USERS\.DEFAULT\Control Panel\Desktop]
"DragFullWindows"="1"
"FontSmoothing"="2"
"UserPreferencesMask"=hex:9e,28,00,80

Enable Hidden Files/Folders / Disable IntelliMenues / Show compressed files with different color / Disable Webview / Show Logoff / Do not scroll Program menue
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Hidden"=dword:00000001
"HideFileExt"=dword:00000000
"IntelliMenus"="No"
"ShowCompColor"=dword:00000001
"ShowSuperHidden"=dword:00000001
"SuperHidden"=dword:00000000
"WebView"=dword:00000000
"StartMenuLogoff"=dword:00000001
"StartMenuScrollPrograms"="NO"

Snap mouse:
[HKEY_USERS\.DEFAULT\Control Panel\Mouse]
"SnapToDefaultButton"="1"

Do not show tips at startup:
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\tips]
"Show"=dword:00000000

Disable Recent Docs History / Disable Recent Docs in Start Menue / Don't show Start here tooltip
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoRecentDocsHistory"=dword:00000001
"NoRecentDocsMenu"=dword:00000001
"NoStartBanner"=hex:01,00,00,00

-----------------------
IE related:
Blank start page:
[HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\Main]
"Start Page"="about:blank"

0 days history:
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Url History]
"DaysToKeep"=dword:00000000

Some settings the internet connection Wizard makes:
[HKEY_CURRENT_CONFIG\Software\Microsoft\windows\CurrentVersion\Internet Settings]
"EnableAutodial"=hex:00,00,00,00
"ProxyEnable"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\Software\Microsoft\windows\CurrentVersion\Internet Settings]
"EnableAutodial"=hex:00,00,00,00
"ProxyEnable"=dword:00000000
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"EnableAutodial"=hex:00,00,00,00
"NoNetAutodial"=-
"NoNetAutodial"=hex:00,00,00,00
"ProxyEnable"=dword:00000000
"ProxyOverride"=""
"ProxyServer"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Welcome\ICW]
"@"=dword:00000001

Set Internet Connection Wizard completed:
[HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Connection Wizard]
"Completed"=hex:01,00,00,00

Do not create Internet Connection Wizard desktop icon:
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Runonce]
"^SetupICWDesktop"=-
Tomcat76
Good thread. I especially like the last tweak -- I didn't know about that one.

Here's a few of the tweaks I do myself... I hope it's OK to post them here.

CODE
; Disable some sounds, and associate the Recycle Bin with "recycle.wav" (why did they put it on "ding.wav"?)

[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\MailBeep\.Current]
@=""

[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemAsterisk\.Current]
@=""

[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemExclamation\.Current]
@=""

[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemQuestion\.Current]
@=""

[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\EmptyRecycleBin\.Current]
@="recycle.wav"

[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating\.current]
@=""


; Show the Windows version on the desktop and disable smooth scrolling

[HKEY_CURRENT_USER\Control Panel\Desktop]
"PaintDesktopVersion"=dword:00000001
"SmoothScroll"=dword:00000000


; Disable animation effects

[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]
"MinAnimate"="0"


; Enable encoding auto-selection in IE

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\International]
"AutoDetect"=dword:00000001


; (IE) Don't reuse windows, don't search from Address bar, disable auto image resize, disable Image Toolbar, disable passwords functionality, don't show friendly error messages, close dialog when download's completed, don't check for updates, disable page transitions, remove Go button (also applies to folders).

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"AllowWindowReuse"=dword:00000000
"AutoSearch"=dword:00000000
"Enable AutoImageResize"="no"
"Enable_MyPics_Hoverbar"="no"
"FormSuggest Passwords"="no"
"FormSuggest PW Ask"="no"
"Friendly http errors"="no"
"NotifyDownloadComplete"="no"
"NoUpdateCheck"=dword:00000001
"Page_Transitions"=dword:00000000
"ShowGoButton"="no"
"Use FormSuggest"="no"


; (WMP 6.4) Disable ID'ing and open every file in new window/instance

[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\Settings]
"Client ID"=""
"OpenNew"="yes"

[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences]
"SendUserGUID"=hex:00

[HKEY_USERS\.DEFAULT\Software\Microsoft\MediaPlayer\Player\Settings]
"Client ID"=""


; Use Fixedsys font in Notepad (like Win9x)

[HKEY_CURRENT_USER\Software\Microsoft\Notepad]
"lfFaceName"="Fixedsys"


; (Deluxe CD Player) Disable album download batching and album info download

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\DeluxeCD\Settings]
"BatchEnabled"=dword:00000000
"DownloadEnabled"=dword:00000000


; Expand Control Panel in Start Menu, show file names using correct case (obsolete?), disable info tips

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"CascadeControlPanel"="YES"
"DontPrettyPath"=dword:00000000
"ShowInfoTip"=dword:00000000


; Show full path in the Explorer address bar

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState]
"FullPathAddress"=dword:00000001


; Remove IE desktop icon

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\ShellFolder]
"Attributes"=dword:00100024


; Places Bar (Desktop, My Computer, My Documents & My Network Places)

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\comdlg32\PlacesBar]
"Place0"=dword:00000000
"Place1"=dword:00000011
"Place2"=dword:00000005
"Place3"=dword:00000012
"Place4"=-


; Remove Alexa key

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Extensions\{c95fe080-8f5d-11d2-a20b-00aa003c157a}]


; Remove "On The Internet" and "For People" (Start Menu > Search)

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FindExtensions\Static\WABFind]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FindExtensions\Static\WebSearch]


; Stop checking for scheduled tasks on remote computers

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}]


; Remove Help and My Documents from Start Menu and don't display the Welcome Screen on first account startup

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer]
"NoSMHelp"=dword:00000001
"NoSMMyDocs"=dword:00000001
"NoWelcomeScreen"=dword:00000001


; Disable NTFS LastAccess time stamp updating

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"NtfsDisableLastAccessUpdate"=dword:00000001


; Fix memory corruption when using AMD + AGP (obsolete?)

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"LargePageMinimum"=dword:ffffffff
Oleg_II
I'd like to share a few usefull INFs (not REGs but the usage is nearly the same - place files into HFSVPK). You can use them separately or combine in one TRICKS.INF smile.gif
The tricks are not mine and some people should be credited for creating them but unfortunately I don't have notes about the authors blushing.gif If you are interested search Unattended Forum for it.

Name My Computer after user name (something like "Oleg 2's Computer" insted of "My Computer" newwink.gif
CODE
[Version]
Signature=$CHICAGO$

[DefaultInstall]
AddReg = Reg.Tweaks

[Reg.Tweaks]
HKCR,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}","LocalizedString",0x20000,"%USERNAME%'s Computer"


Control Panel to the right click on My Computer
CODE
[Version]
Signature=$CHICAGO$

[DefaultInstall]
AddReg = Reg.Tweaks

[Reg.Tweaks]
HKLM,"SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Control Panel\command",,,"rundll32.exe shell32.dll,Control_RunDLL"


Add Copy, Move and Send to the right click context menu
CODE
[Version]
Signature=$CHICAGO$

[DefaultInstall]
AddReg = Reg.Tweaks

[Reg.Tweaks]
HKCR,"AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To",,,"{C2FBB630-2971-11d1-A18C-00C04FD75D13}"
HKCR,"AllFilesystemObjects\shellex\ContextMenuHandlers\Move To",,,"{C2FBB631-2971-11d1-A18C-00C04FD75D13}"
HKCR,"AllFilesystemObjects\shellex\ContextMenuHandlers\Send To",,,"{7BA4C740-9E81-11CF-99D3-00AA004AE837}"


List contents of a folder on right click
CODE
[Version]
Signature=$CHICAGO$

[DefaultInstall]
AddReg = Reg.Tweaks

[Reg.Tweaks]
HKCR,Folder\shell\List Contents\command,,,"%11%\cmd.exe /C DIR ""%1"" /B /O /S>""%1""""_contents list.txt"""


Open files with notepad in right click menu
CODE
[Version]
Signature=$CHICAGO$

[DefaultInstall]
AddReg = Reg.Tweaks

[Reg.Tweaks]
HKCR,Unknown\shell\View with notepad\command,,,"%11%\notepad.exe ""%1"""


Add "Command Prompt Here" when right-clicking a directory
CODE
[Version]
Signature=$CHICAGO$

[DefaultInstall]
AddReg = Reg.Tweaks

[Reg.Tweaks]
HKCR,"Directory\shell\Command Prompt Here\command",,,"%11%\cmd.exe /k cd ""%1"""


PS Request: does anybody know how to add "My Network Places" to the right click on My Computer?
Bugs Bunny
Thanks for your additions thumbup.gif - found some things in your additions that are very useful to me.
If someone has some more things to add here, please feel free.

Tomacat76 I've seen some reg values that are in the HKEY_Current_User part of the registry. If these values get set by HFSLIP do they work? I was thinking during setup there is no current user. Will these values be stored in the administrators registry (the first real user that is created - not counting all users and default user)?

BTW had a typo in the topic - useful with ll but it seems that it's not possible to change the topic title afterwards ohmy.gif - maybe a moderator is able to change it?
tommyp
The reg tweaks you make are made to the default user, there is no such thing as the administrator when the reg files are parsed. In other words, the admin account is created after the reg files are parsed, so the admin will pick up these fixes. BTW, these lines are run a few minutes before the OEM/CMDLINES part of installation.

Lotsa goodies for a reg file: http://www.msfn.org/board/index.php?showtopic=49320
Tomcat76
QUOTE (Bugs Bunny @ Dec 12 2005, 11:45 PM) *
Tomacat76 I've seen some reg values that are in the HKEY_Current_User part of the registry. If these values get set by HFSLIP do they work?
I have actually never tried these tweaks with HFSLIP yet, but I did some stuff with Adobe Reader and Messenger in both HKLM and HKCU and it's always worked. I don't see why these should fail.


Here's another tweak which I did in the past using a batch file: changing the default sort order of the My Computer and My Documents desktop icons so My Computer is displayed first (just like in Win9x). If you do this with a batch file on an existing installation of Windows, it needs to be done like this:

1) Change the sort order and remove the My Computer and My Documents icons from the desktop (reg)
2) Kill explorer.exe
3) Place back the icons (reg)

Since there is no desktop yet when Windows installation goes through SVCPACK, I think it should be enough to just change the sort order... but I haven't tried it yet.

[HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}]
"SortOrderIndex"=dword:00000054
os2fan2
This is what i use currently. I do some internationalisation settings, such as enable measurements, make Sunday the first day of the week, etc. It uses a different method to kill the internet connexion dullard too.

CODE
Windows Registry Editor Version 5.00

;My Computer First Desktop Icon
[HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}]
"SortOrderIndex"=dword:00000054

[HKEY_CURRENT_USER\Console]
"InsertMode"=dword:00000001
"QuickEdit"=dword:00000000

[HKEY_CURRENT_USER\Control Panel\Desktop]
"MenuShowDelay"="2"

[HKEY_CURRENT_USER\Control Panel\International]
"iDate"="2"
"iFirstDayOfWeek"="6"
"iMeasure"="1"
"iTime"="1"
"sLongDate"="dddd, dd MMMM yyyy"
"sShortDate"="yyyy/MM/dd"
"sTimeFormat"="HH:mm:ss"

[HKEY_CURRENT_USER\Control Panel\Sound]
"Beep"="no"

[HKEY_CURRENT_USER\Environment]
"TEMP"="%USERPROFILE%\TEMP"
"TMP"="%USERPROFILE%\TEMP"

[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
"CompletionChar"=dword:00000009
"PathCompletionChar"=dword:00000009

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer]
"Show_FullURL"=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"IntelliMenus"="No"
"Window Title"="MsMosaic"
"AllowWindowReuse"=dword:00000000


[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\MSKB]
@="http://support.microsoft.com/?kbid=%s"

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\AV]
@="http://www.altavista.com/sites/search/web?q=%s"

; this should kill this thing.
[HKEY_CURRENT_USER\Software\Microsoft\Internet Connection Wizard]
"DesktopChanged"=dword:00000001
"Completed"=hex:01,00,00,00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\Ggl]
@="http://www.google.com/search?q=%s"

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\MSN]
@="http://search.msn.com/results.asp?q=%s"

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\FM]
@="http://www.filemirrors.com/search.src?file=%s"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"DontPrettyPath"=dword:00000001
"Hidden"=dword:00000001
"HideFileExt"=dword:00000000
"IntelliMenus"="No"
"ShowSuperHidden"=dword:00000001
"SuperHidden"=dword:00000001
; dont pretty path = show case as falls

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
"ShowDriveLettersFirst"=dword:00000004

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Tips]
"Show"=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"MaxConnectionsPer1_0Server"=dword:0000000a
"MaxConnectionsPerServer"=dword:0000000a

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"ClassicShell"=dword:00000001
"NoDevMgrUpdate"=dword:00000001
"NoWindowsUpdate"=dword:00000001
"NoInternetIcon"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]
"ParseAutoexec"="0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Search]
"SearchAssistant"="http://www.google.com/ie"


[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU]
"NoAutoUpdate"=dword:00000001


[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Infodelivery\Restrictions]
"NoSplash"=dword:00000001

Tomcat76
Now I'm stumped. The regedits for MSN Messenger (HKCU) and for Advanced Office Password Recovery (HKLM) didn't take on Win2K. They did on WinXP.

How come some work on Win2K (Adobe Reader) and others don't?

I'll try to use HKU next time for the HKCU stuff, but how do I do it for things that should end up in HKLM without using a second install package (for RunOnceEx or whatever)?
tommyp
The regedits are parsed before installing programs. Should I make it the other way around? It doesn't really matter to me because I don't use hfslip to install programs.
Oleg_II
Tomcat76
If you use W2k you can try to use FDV's files to disable file protection and include your tweaks directly in HIVES*.INF.

I had this problem before with Yahoo Messanger (?) that aske for IE6 to install. I just give it up but it may be possible theoretically to have a line in one of the HIVES*.INF that says about IE6 version installed newwink.gif
tommyp
Don't use yahoo messenger. Use GAIM. It does all of those message type programs in one. Sorry for being off-topic.
Oleg_II
TommyP
I don't use it newwink.gif I installed the system for my friend and she uses some weird programs blink.gif

Wow! It's nearly 7MB! I don't use messangers but I'd prefer something smaller. Maybe Miranda?
Tomcat76
QUOTE (Oleg_II @ Dec 14 2005, 11:50 PM) *
If you use W2k you can try to use FDV's files to disable file protection and include your tweaks directly in HIVES*.INF.
That's exactly what I want to avoid. I want the reg tweaks embedded in the silent/switchless package for the program they apply to.


Yahoo Messenger is fine. I use version 5.6 (build 1358). The installer is 2.79MB.
Oleg_II
Tomcat76
OK, then make a CMD, INF or REG with this tweaks and run it before you run the programs.
I mean the programs that doesn't install without IE6 - make this tweak that let them think it's installed newwink.gif
Tomcat76
QUOTE (Oleg_II @ Dec 15 2005, 03:29 AM) *
OK, then make a CMD, INF or REG with this tweaks and run it before you run the programs.
I mean the programs that doesn't install without IE6 - make this tweak that let them think it's installed newwink.gif
????

OK, this is getting confusing. I want this in the registry when installing MSN Messenger 7.0:

[HKEY_CURRENT_USER\Software\Microsoft\MSNMessenger]
"AppSettings"=hex:62,04,00,00
"DSBkgndMode"=hex:01,00,00,00
"PassportBalloon"=hex:0a,00,00,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"MsnMsgr"=-



And this when installing AOPR:

[HKEY_LOCAL_MACHINE\SOFTWARE\ElcomSoft\Advanced Office Password Recovery\Registration]
"Code"="XXXXX-XXXX-XXXXX-XXXXX-XXXXX-XXXXX"
Oleg_II
Tomcat76
This goes to your HFSVPK:
appz.cmd
CODE
@echo off
IF EXIST %SYSTEMROOT%\SYSTEM32\CMDOW.EXE cmdow @ /HID
Title Instaling Appz
REM find cdrom and set variable CDDRIVE
for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\cdrom_nt.5 set CDDRIVE=%%i:
set WINPATH=%CDDRIVE%\
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "CDDRIVE" /t REG_EXPAND_SZ /d ^%WINPATH%^ /f

regedit /s %CDDRIVE%\myreg123.reg

start /wait %CDDRIVE%\myprogy1.exe
start /wait %CDDRIVE%\myprogy2.exe
start /wait %CDDRIVE%\myprogy3.exe

ECHO Delete programs from autostart
REG delete HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v MsnMsgr /f


I have not tried it. Just an idea.
Tomcat76
I just checked the silent installer for MSN Messenger 7.0 and it appears I forgot to include the reg patch. So it's just the AOPR that screws up (HKLM).

Oleg II... I don't see the difference between that and what I'm doing now. The package for AOPR contains:
- the original AOPR setup files
- the registry tweak (.reg file)
- a CMD converted to EXE which runs the registry tweak with the -s switch and then installs AOPR with the /S switch

This is wrapped in a 7-zip self-extracting package that runs the internal once-cmd-now-exe file.

As said earlier, this works in Windows XP so it's not the method that's the problem (unless I used REG.EXE instead of REGEDIT.EXE but that's not the case) but the fact that I can't reach HKLM from SVCPACK.
Oleg_II
Tomcat76
Sorry maybe I missed something. I thought we are talking about programs that require IE6 version blushing.gif

I have a tweak with HKLM in INSTALL.INF that I run from HFSVPK folder too:
CODE
; Control Panel to My Computer
HKLM,"SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Control Panel\command",,,"rundll32.exe shell32.dll,Control_RunDLL"
and it's working. And it's not the only tweak with HKLM I have.
Tomcat76
QUOTE (Oleg_II @ Dec 15 2005, 04:27 AM) *
Sorry maybe I missed something. I thought we are talking about programs that require IE6 version blushing.gif
You're probably mistaking me for someone else. smile.gif

I gave it another go, this time WITH the reg tweak for MSN Messenger.... and it didn't work.

I just checked all the programs I have in HFSVPK, and right now only MSN Messenger and AOPR contain registry tweaks. Is it possible that Windows 2000, during installation, doesn't know how to handle "regedit -s" and needs "regedit /s" instead? The reg files do work when I install these two packages AFTER installation of Windows, so it must be something specific to the Windows setup.

Edit: Nope. The regedits still don't take place. I give up; it's clear it doesn't work from SVCPACK.
tommyp
TC - Please read post #9 of this thread. Try uncabbing the svcpack.inf and copy/paste the hfslip.cmd file so that it happens after installing your programs. Report back issues/findings. Thanks!
Tomcat76
QUOTE (tommyp @ Dec 15 2005, 11:54 AM) *
TC - Please read post #9 of this thread. Try uncabbing the svcpack.inf and copy/paste the hfslip.cmd file so that it happens after installing your programs. Report back issues/findings. Thanks!
I think we're getting somewhere. When I reg tweaked two/three months ago (Adobe Reader 7.0.3, etc.), I had everything in one .REG file wrapped in an executable named "zPOST.exe" made with IExpress, which (of course) is being executed after the last program.

This is what I got now:

[SetupHotfixesToRun]
HFSLIP.CMD
MPSetup.exe /Q:A /R:N
AOPR.exe
DNF11r.exe
DNF20z.exe
jre506.exe
MSNMsg70.exe
Rdr705EN.exe
UPHClean.exe
WMPCskEN.exe
Q890830.EXE /Q

So if the registry tweaks MUST be executed after the last program, it's obvious why my method is failing. Is this a limitation of Windows 2000?


Edit:
Post #9 refers to registry tweaks that are parsed by HFSLIP. Since I don't have any "loose" .REG files, I figured that comment didn't apply to me. My .REG files are embedded into the silent executables of AOPR.exe and MsnMsg70.exe.
Tomcat76
I separated the reg tweaks from the programs and it still doesn't work.

[SetupHotfixesToRun]
HFSLIP.CMD
MPSetup.exe /Q:A /R:N
AOPR.exe
DNF11r.exe
DNF20z.exe
jre506.exe
MSNMsg70.exe
Rdr705EN.exe
UPHClean.exe
WMPCskin.exe
zregAOPR.exe
zregMM70.exe

Q890830.EXE /Q

HFSLIP.CMD:
CODE
@ECHO OFF&SETLOCAL ENABLEEXTENSIONS
FOR %%? IN (CMDOW.EXE) DO IF "%%~$PATH:?" NEQ "" CMDOW @ /HID
TITLE HFSLIP
IF EXIST %~d0\I386\SVCPACK SET HFSLIP=%~d0\I386
%HFSLIP%\updroots.exe %HFSLIP%\authroots.sst
%HFSLIP%\updroots.exe %HFSLIP%\updroots.sst
%HFSLIP%\updroots.exe -l %HFSLIP%\roots.sst
%HFSLIP%\updroots.exe -d %HFSLIP%\delroots.sst
FOR /F %%I IN ('DIR /B %SYSTEMROOT%\*.TMP') DO (
    ATTRIB -R %SYSTEMROOT%\%%I
    DEL /F /Q %SYSTEMROOT%\%%I
    )
rundll32.exe iernonce.dll,RunOnceExProcess
SET PREP=%~dp0
CD /D %HFSLIP%
VGXUPDATE Q823353
OEUPDATE Q823353
VGXUPDATE Q833989
OEUPDATE Q833989
EXIT
tommyp
With w2k, if you call a silent regedit, you must specify the entire working string to regedit for it to run correctly (ex %windir%\regedit.exe /s and not regedit.exe /s). After you are in the first logon, you can run a simple regedit /s reg.reg. This is not an issue with XP. BTW, why not just put your regedit files in hfsvpk folder and let hfslip take care of it for you automatically? No need to repack anything.
Tomcat76
Thanks. I'm trying it out now...
Tomcat76
I wouldn't know. I've only been a mod for a few days.

As far as I can see, the edits consisted of putting the long lists of reg tweaks in CODE boxes; the text doesn't seem to be altered or censored.
saugatak
How do I name the .reg file to HFSLIP it?

xxxx.reg and then just put it in HVSVPK? Do I need to add any special command up front?
tain
From Step 5:
QUOTE
The HFSVPK Directory - For installing Self Extracting Silent Switchless Installers (.REG tweak files, .INF files, CMD files, and other packages)

You can put any Self Extracting Silent Switchless Installers/Programs you like in the HFSVPK folder.
You can also put .REG, .INF, and CMD files in HFSVPK. To generate some very useful .REG files, try Registry Tweakage.

You should be fine as long as you avoid spaces and special characters.
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.