Convert .inf to .reg
Convert .inf to .reg
Does anyone know how I can convert a .inf file to .reg so I can deploy it on a live installation?
I know you can use Reg2Inf for converting .reg files to .inf, but is there something for the opposite effect?
I know you can use Reg2Inf for converting .reg files to .inf, but is there something for the opposite effect?
- ricktendo64
- Posts: 3214
- Joined: Mon May 22, 2006 12:27 am
- Location: Honduras
But installwatch and regshot reflect only changes applied to test computer,ricktendo64 wrote:Apply the INF then go to your registry editor and export the changes (installwatch and regshot will also work)
and inf registry keys that have same values as the one that allready exist
into test computer will not be reflected into final reg.
On different computers can have different values for same registry keys.
As a solution, some time ago,
1: i have started computer in vmware, install InstallWatchPro 2.5, if are not allready installed
2. started regedit and removed registry keys or, when posible, entire regitry branches that will be changed by inf,
3. make one Snaphot by using InstallWatchPro 2.5
4. run the inf
5. Analize changes by using InstallWatchPro
6. Filter results, because some keys are from another "movies"
InstallWatchPro 2.5c 3,70 MB, md5:162590D2653D9354C8232B987C64CE33
- ricktendo64
- Posts: 3214
- Joined: Mon May 22, 2006 12:27 am
- Location: Honduras
Here is my INF - Just a bunch of IE8 Tweaks.
Code: Select all
;Show Status Bar in all windows in Internet Explorer
HKLM,"SOFTWARE\Microsoft\Internet Explorer\Main","StatusBarWeb",0x00010001,1
;Show Status Bar in all Windows in Explorer
HKLM,"SOFTWARE\Microsoft\Internet Explorer\Main","StatusBarOther",0x00010001,1
;Force Internet Explorer Menu Bar to Top (above the address bar)
HKLM,"Software\Microsoft\Internet Explorer\Toolbar\WebBrowser","ITBar7Position",0x10001,1
;Disable "Open File Security Warning"
HKLM,"Software\Microsoft\Internet Explorer\Download","CheckExeSignatures",0x0,"No"
HKLM,"Software\Microsoft\Internet Explorer\Download","RunInvalidSignatures",0x10001,01,00,00,00
HKLM,"Software\Microsoft\Windows\CurrentVersion\Policies\Associations","LowRiskFileTypes",0x0,".zip;.rar;.nfo;.txt;.exe;.bat;.com;.cmd;.reg;.msi;.htm;.html;.gif;.bmp;.jpg;.avi;.mpg;.mpeg;.mov;.mp3;.m3u;.wav;"
HKLM,"Software\Microsoft\Windows\CurrentVersion\Policies\Attachments","SaveZoneInformation",0x10001,01,00,00,00
;Disable the Favorites Bar
HKLM,"Software\Microsoft\Internet Explorer\LinksBar","Enabled",0x10001,00,00,00,00
;Disable "Reuse windows for launching shortcuts (when tabbed browsing is off)"
HKLM,"Software\Microsoft\Internet Explorer\Main","AllowWindowReuse",0x10001,00,00,00,00
;Disable "Internet Explorer is not currently your default browser. Would you like to make it your default browser?"
HKLM,"Software\Microsoft\Internet Explorer\Main","Check_Associations",0x0,"no"
;Remove Internet Explorer first run dialogs
HKLM,"Software\Microsoft\Internet Explorer\Main","IE8RunOnceLastShown",0x10001,01,00,00,00
HKLM,"Software\Microsoft\Internet Explorer\Main","IE8RunOnceLastShown_TIMESTAMP",0x1,10,5b,dd,f1,61,df,cd,01
HKLM,"Software\Microsoft\Internet Explorer\Main","IE8RunOncePerInstallCompleted",0x10001,01,00,00,00
HKLM,"Software\Microsoft\Internet Explorer\Main","IE8TourShown",0x10001,01,00,00,00
;When a new tab is opened, open Your first home page (also remove the tabs welcome)
HKLM,"Software\Microsoft\Internet Explorer\TabbedBrowsing","NewTabPageShow",0x10001,01,00,00,00
;Always open pop-ups in a new tab
HKLM,"Software\Microsoft\Internet Explorer\TabbedBrowsing","PopupsUseNewWindow",0x10001,02,00,00,00
;Use inline AutoComplete (outside of Internet Explorer)
HKLM,"Software\Microsoft\Windows\CurrentVersion\Explorer\AutoComplete","Append Completion",0x0,"yes"
;Disable play sound and display message when a popup is blocked:
HKLM,"Software\Microsoft\Internet Explorer\New Windows","PlaySound",0x10001,00,00,00,00
HKLM,"Software\Microsoft\Internet Explorer\New Windows","UseSecBand",0x10001,00,00,00,00
;Do not cache failed DNS lookups
HKLM,"SYSTEM\CurrentControlSet\Services\Dnscache\Parameters","NegativeCacheTime",0x10001,00,00,00,00
;Dis-allow spying by web-sites
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\ProtocolDefaults","about",0x10001,04,00,00,00
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\ProtocolDefaults","about:",0x10001,04,00,00,00
;Allow Internet Explorer to open direct links to swf files
HKLM,"SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BLOCK_LMZ_SCRIPT","iexplore.exe",0x10001,00,00,00,00
;Set google.co.uk as the home page in Internet Explorer
HKLM,"Software\Microsoft\Internet Explorer\Main","Start Page",0x0,"http://www.google.co.uk/"
;Set google.com as the default search provider in Internet Explorer
HKLM,"Software\Microsoft\Internet Explorer\SearchScopes","DefaultScope",0x0,"{F203491B-27E3-463D-B1E9-62A6C65D094D}"
HKLM,"Software\Microsoft\Internet Explorer\SearchScopes","DownloadUpdates",0x10001,01,00,00,00
HKLM,"Software\Microsoft\Internet Explorer\SearchScopes","Version",0x10001,02,00,00,00
;Other search providers
HKLM,"Software\Microsoft\Internet Explorer\SearchScopes\{F203491B-27E3-463D-B1E9-62A6C65D094D}","DisplayName",0x0,"Google"
HKLM,"Software\Microsoft\Internet Explorer\SearchScopes\{F203491B-27E3-463D-B1E9-62A6C65D094D}","FaviconURL",0x0,"http://www.google.com/favicon.ico"
HKLM,"Software\Microsoft\Internet Explorer\SearchScopes\{F203491B-27E3-463D-B1E9-62A6C65D094D}","OSDFileURL",0x0,"http://download.microsoft.com/download/A/3/C/A3C89D63-E2F0-460D-9F5F-23B51EA52B5E/Google.xml"
HKLM,"Software\Microsoft\Internet Explorer\SearchScopes\{F203491B-27E3-463D-B1E9-62A6C65D094D}","ShowSearchSuggestions",0x10001,01,00,00,00
HKLM,"Software\Microsoft\Internet Explorer\SearchScopes\{F203491B-27E3-463D-B1E9-62A6C65D094D}","SuggestionsURL_JSON",0x0,"http://suggestqueries.google.com/complete/search?output=firefox&client=IE8&qu={searchTerms}"
HKLM,"Software\Microsoft\Internet Explorer\SearchScopes\{F203491B-27E3-463D-B1E9-62A6C65D094D}","URL",0x0,"http://www.google.com/search?q={searchTerms}&rls=com.microsoft:{language}&ie={inputEncoding}&oe={outputEncoding}&startIndex={startIndex?}&startPage={startPage}"
; Add SearchURL Keywords for Google and Wikipedia
HKLM,"Software\Microsoft\Internet Explorer\SearchUrl","provider",0x0
;Google
HKLM,"Software\Microsoft\Internet Explorer\SearchUrl\g",,0x0,"http://www.google.com/search?q=%%s"
HKLM,"Software\Microsoft\Internet Explorer\SearchUrl\g"," ",0x0,"+"
HKLM,"Software\Microsoft\Internet Explorer\SearchUrl\g","#",0x0,"%%23"
HKLM,"Software\Microsoft\Internet Explorer\SearchUrl\g","&",0x0,"%%26"
HKLM,"Software\Microsoft\Internet Explorer\SearchUrl\g","?",0x0,"%%3F"
HKLM,"Software\Microsoft\Internet Explorer\SearchUrl\g","+",0x0,"%%2B"
HKLM,"Software\Microsoft\Internet Explorer\SearchUrl\g","=",0x0,"%%3D"
;Wikipedia
HKLM,"Software\Microsoft\Internet Explorer\SearchUrl\wp",,0x0,"http://en.wikipedia.org/w/index.php?title=Special%%3ASearch&search=%%s"
HKLM,"Software\Microsoft\Internet Explorer\SearchUrl\wp"," ",0x0,"+"
HKLM,"Software\Microsoft\Internet Explorer\SearchUrl\wp","#",0x0,"%%23"
HKLM,"Software\Microsoft\Internet Explorer\SearchUrl\wp","&",0x0,"%%26"
HKLM,"Software\Microsoft\Internet Explorer\SearchUrl\wp","?",0x0,"%%3F"
HKLM,"Software\Microsoft\Internet Explorer\SearchUrl\wp","+",0x0,"%%2B"
HKLM,"Software\Microsoft\Internet Explorer\SearchUrl\wp","=",0x0,"%%3D"
- ricktendo64
- Posts: 3214
- Joined: Mon May 22, 2006 12:27 am
- Location: Honduras
All you need to add is this to the top
Right click INF file and choose Install
Code: Select all
[Version]
Signature="Windows NT"
[DefaultInstall]
AddReg=Tweaks.AddReg
[Tweaks.AddReg]
; Put your tweaks under here
rundll32.exe advpack.dll,LaunchINFSectionEx .\foobar.inf,DefaultInstall,,12,NZoom7000 wrote:Another question - Can you silently install an INF file like you can with a REG file? (E.g. regedit /s <filename>.reg)
Change "DefaultInstall" to match the name of the install section in your INF and ".\foobar" to the path of your INF file.
Note that LaunchINFSectionEx does not support COM registrations, so if your INF has RegisterDlls, you can't use this.
Edit: ...and yumeyao beat me to the punch.

- OnePiece Alb
- Posts: 525
- Joined: Sat Sep 01, 2007 7:01 pm
- Location: Albania
- Contact:
Nice tool - I have looked for a way to convert .reg to .inf WITHOUT having to have .NET installed - Thanks.
I also had looked for a way to convert .inf to .reg. However, when I use this tool, I get the following output no matter what .inf I use as input. Anyone know what I am doing wrong?
Code: Select all
Windows Registry Editor Version 5.00
; prog.addregSection
- OnePiece Alb
- Posts: 525
- Joined: Sat Sep 01, 2007 7:01 pm
- Location: Albania
- Contact:
dxtool.exe necesito give him administrator rights?
Last edited by OnePiece Alb on Mon Mar 28, 2011 11:31 am, edited 1 time in total.
- OnePiece Alb
- Posts: 525
- Joined: Sat Sep 01, 2007 7:01 pm
- Location: Albania
- Contact:
- OnePiece Alb
- Posts: 525
- Joined: Sat Sep 01, 2007 7:01 pm
- Location: Albania
- Contact:
Update http://www.ryanvm.net/forum/viewtopic.p ... 110#113110, and now everything ok in windows XP, added delete after option
cmd line
Dxtool.exe /CTDA file_path ;Cab Tool (Delete file after)
shortcut

Ciao a tutti.
cmd line
Dxtool.exe /CTDA file_path ;Cab Tool (Delete file after)
shortcut

Ciao a tutti.
Cool - grandi opere. La ringrazio molto!
Cool - Works great. Thank you very much!
Edit: I have found a couple small bugs. The "Cancell" button should be "Cancel" (one "l").

Also when I select more than ~35 files to mass cab, I get the following error. When I select less, all works fine. As stated earlier, I have full admin access. I get this error using both the /CT and /CTDA switches.

Cool - Works great. Thank you very much!
Edit: I have found a couple small bugs. The "Cancell" button should be "Cancel" (one "l").

Also when I select more than ~35 files to mass cab, I get the following error. When I select less, all works fine. As stated earlier, I have full admin access. I get this error using both the /CT and /CTDA switches.

- OnePiece Alb
- Posts: 525
- Joined: Sat Sep 01, 2007 7:01 pm
- Location: Albania
- Contact: