[Request] Please Help Me Make CAB for This Reg

Forum for anything else which doesn't fit in the above forums. Site feedback, random talk, whatever, are welcome.
Post Reply
User avatar
owikh84
Posts: 151
Joined: Sat Feb 04, 2006 11:13 am
Location: Tokyo, Japan

[Request] Please Help Me Make CAB for This Reg

Post by owikh84 » Thu May 25, 2006 11:39 pm

anyone plz help me make this reg to cabbed add on.
i've tried many many times with reg2inf and CreateurAddOn tool wiith no success. Duno what's the prob

Here's my reg:

Windows Registry Editor Version 5.00

;Passive FTP
[HKEY_CURRENT_USER\Software\Microsoft\Ftp]
"Use Web Based FTP"="no"
"Use PASV"="yes"

;Auto-Complete
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoComplete]
"Append Completion"="yes"

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

;Makes a right click option for unknown files (Open with notepad)
[HKEY_CLASSES_ROOT\*\shell]
@="\"notepad.exe %1\""
[HKEY_CLASSES_ROOT\*\shell\open]
@="Open &With Notepad"
[HKEY_CLASSES_ROOT\*\shell\open\command]
@="notepad.exe %1"

:Removes Nvidia desktop context menu for digital displays
[-HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\NvCplDesktopContext]
@="{A70C977A-BF00-412C-90B7-034C51DA2439}"

[HKEY_CURRENT_USER\Software\Microsoft\Notepad]
;Enable status bar in notepad
"StatusBar"=dword:00000001
;Enable word wrap
"fWrap"=dword:00000001

;Disable NVIDIA Driver Helper
;NVIDIA Driver Helper Service which gets installed under Windows NT4/2000/XP/2003 by the NVIDIA drivers for some of their
;graphics cards (or graphics cards based on an NVIDIA chipset). We do not at this stage know what this process does except
;consume memory ! And we also have no idea as to what a “Driver Helper Service” is supposed to do !!
;This service is often responsible for various glitches, from significant shutdown delays to excessive memory usage. Disabling
;it, however, does not result in our experience in any ill-effect as regards the proper operation of your NVIDIA or NVIDIA chipset
;graphics card.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NVSvc]
"Type"=dword:00000010
"Start"=dword:00000004
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):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,6e,\
00,76,00,73,00,76,00,63,00,33,00,32,00,2e,00,65,00,78,00,65,00,00,00
"DisplayName"="NVIDIA Display Driver Service"
"ObjectName"="LocalSystem"
"Description"="Provides system and desktop level support to the NVIDIA display driver"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NVSvc\Security]
"Security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,\
00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,\
05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,\
20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,\
00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,\
00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NVSvc\Enum]
"0"="Root\\LEGACY_NVSVC\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001

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

;Disable StickyKeys shortcut
[HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys]
"Flags"="506"

;Disable Filterkeys shortcut
[HKEY_CURRENT_USER\Control Panel\Accessibility\Keyboard Response]
"Flags"="122"

;Disable ToggleKeys shortcut
[HKEY_CURRENT_USER\Control Panel\Accessibility\ToggleKeys]
"Flags"="58"

;Sort Start Menu and Favorites in Alphabetical Order (All Windows)
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder]
Image

User avatar
n7Epsilon
Moderator
Posts: 624
Joined: Thu Feb 17, 2005 1:37 am
Location: Cairo, Egypt

Post by n7Epsilon » Fri May 26, 2006 7:43 am

There's a problem with this REG file, some of comments are incorrectly prefixed with a : instead of a ; (semi-colon).

I have fixed this REG file. Here is the output of Reg2Inf which is correct:

Code: Select all

[Version]
Signature=$Windows NT$

[Optional Components]
MyRegTweaks

[DefaultInstall]
OptionDesc ="Registry Entries"
Tip        ="Registry Entries"
Modes      =0,1,2,3
AddReg     =REGEntries.AddReg
DelReg     =REGEntries.DelReg

[MyRegTweaks]
OptionDesc ="Registry Entries"
Tip        ="Registry Entries"
Modes      =0,1,2,3
AddReg     =REGEntries.AddReg
DelReg     =REGEntries.DelReg

[REGEntries.AddReg]
; FGCBA Reg2INF v0.23: _Conversion_A_Complete_
HKCU,"Software\Microsoft\Ftp","Use Web Based FTP",0,"no"
HKCU,"Software\Microsoft\Ftp","Use PASV",0,"yes"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\AutoComplete","Append Completion",0,"yes"
HKCR,"*\shell",,0,"""notepad.exe %1"""
HKCR,"*\shell\open",,0,"Open &With Notepad"
HKCR,"*\shell\open\command",,0,"notepad.exe %1"
HKCU,"Software\Microsoft\Notepad","StatusBar",0x00010001,01,00,00,00
HKCU,"Software\Microsoft\Notepad","fWrap",0x00010001,01,00,00,00
HKLM,"SYSTEM\CurrentControlSet\Services\NVSvc","Type",0x00010001,10,00,00,00
HKLM,"SYSTEM\CurrentControlSet\Services\NVSvc","Start",0x00010001,04,00,00,00
HKLM,"SYSTEM\CurrentControlSet\Services\NVSvc","ErrorControl",0x00010001,01,00,00,00
HKLM,"SYSTEM\CurrentControlSet\Services\NVSvc","ImagePath",0x00020000,"%SystemRoot%\system32\nvsvc32.exe"
HKLM,"SYSTEM\CurrentControlSet\Services\NVSvc","DisplayName",0,"NVIDIA Display Driver Service"
HKLM,"SYSTEM\CurrentControlSet\Services\NVSvc","ObjectName",0,"LocalSystem"
HKLM,"SYSTEM\CurrentControlSet\Services\NVSvc","Description",0,"Provides system and desktop level support to the NVIDIA display driver"
HKLM,"SYSTEM\CurrentControlSet\Services\NVSvc\Security","Security",1,01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00
HKLM,"SYSTEM\CurrentControlSet\Services\NVSvc\Enum","0",0,"Root\LEGACY_NVSVC\0000"
HKLM,"SYSTEM\CurrentControlSet\Services\NVSvc\Enum","Count",0x00010001,01,00,00,00
HKLM,"SYSTEM\CurrentControlSet\Services\NVSvc\Enum","NextInstance",0x00010001,01,00,00,00
HKCR,"CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}","SortOrderIndex",0x00010001,54,00,00,00
HKCU,"Control Panel\Accessibility\StickyKeys","Flags",0,"506"
HKCU,"Control Panel\Accessibility\Keyboard Response","Flags",0,"122"
HKCU,"Control Panel\Accessibility\ToggleKeys","Flags",0,"58"

[REGEntries.DelReg]
; FGCBA Reg2INF v0.23: _Conversion_B_Complete_
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}"
HKCR,"Directory\Background\shellex\ContextMenuHandlers\NvCplDesktopContext"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder"

We call this MyTweaks.INF

Now, in order for Windows to apply the tweaks, this INF file must by read by OCGEN.DLL during Windows Setup (ie: A Reference To It must be added to SYSOC.INF).

To Do this, we create a ENTRIES.INI file (example: Entries_owikh84.ini) that tells the integrator to add this reference.

The correct entries.ini file that will do this is:

Code: Select all

; Entries file for owikh84's Registry Tweaks
[general]
builddate=2006/05/26
description=owikh84's RegTweaks
language=English
title=owikh84's RegTweaks
version=1.0
website=http://www.ryanvm.net/

; This is the line that adds the reference to MyTweaks.Inf to SYSOC.INF
[sysoc]
owikh84Tweaks=ocgen.dll,OcEntry,MyTweaks.Inf,HIDE,7

; This line is to make Windows copy the INF file from the CD to the hard disk
; when installing Windows from DOS.
[dosnet_files]
d1,MyTweaks.Inf

; This line is to make Windows copy the INF file from the CD to the hard disk
; when Setup is in the GUI portion.
[txtsetup_files]
MyTweaks.inf    = 1,,,,,,,20,0,0
To understand this better, I suggest that you read this as it explains how addons are created and how they work:
http://www.ryanvm.net/forum/viewtopic.php?t=488

Here's a link to the finished addon CAB, (ready to be integrated):
http://rapidshare.de/files/21424480/owi ... s.cab.html

Note that this will work (the integration) but if some of the tweaks don't work, it would be because of the tweaks themselves.

Hope this helps :)

User avatar
owikh84
Posts: 151
Joined: Sat Feb 04, 2006 11:13 am
Location: Tokyo, Japan

Post by owikh84 » Fri May 26, 2006 12:39 pm

thanks n7Epsilon. you are the best!
Image

Post Reply