gersonkurz / regdiff Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/regdiff
Automatically exported from code.google.com/p/regdiff
Reg File Size = 350MB
OS = Win 10 64 Bit
RAM = 16 GB
Using any command gives this
Reading (FileName).reg...
Writing (FileName).reg...
Unhandled Exception: System.InvalidCastException: Specified cast is not valid.
at regis3.RegValueEntry.WriteRegFileFormat(TextWriter output, Dictionary2 replacementLookup) at regis3.RegKeyEntry.WriteRegFileFormat(TextWriter output, RegFileExportOptions options, Dictionary
2 replacementLookup)
at regis3.RegKeyEntry.WriteRegFileFormat(TextWriter output, RegFileExportOptions options, Dictionary2 replacementLookup) at regis3.RegKeyEntry.WriteRegFileFormat(TextWriter output, RegFileExportOptions options, Dictionary
2 replacementLookup)
at regis3.RegKeyEntry.WriteRegFileFormat(TextWriter output, RegFileExportOptions options, Dictionary2 replacementLookup) at regis3.RegKeyEntry.WriteRegFileFormat(TextWriter output, RegFileExportOptions options, Dictionary
2 replacementLookup)
at regis3.RegKeyEntry.WriteRegFileFormat(TextWriter output, RegFileExportOptions options, Dictionary2 replacementLookup) at regis3.RegKeyEntry.WriteRegFileFormat(TextWriter output, RegFileExportOptions options, Dictionary
2 replacementLookup)
at regis3.RegKeyEntry.WriteRegFileFormat(TextWriter output, RegFileExportOptions options, Dictionary2 replacementLookup) at regis3.RegKeyEntry.WriteRegFileFormat(TextWriter output, RegFileExportOptions options, Dictionary
2 replacementLookup)
at regis3.RegKeyEntry.WriteRegFileFormat(TextWriter output, RegFileExportOptions options, Dictionary2 replacementLookup) at regis3.RegKeyEntry.WriteRegFileFormat(TextWriter output, RegFileExportOptions options, Dictionary
2 replacementLookup)
at regis3.RegFileExporter.Export(RegKeyEntry key, TextWriter file, RegFileExportOptions options)
at regis3.RegFileExporter.Export(RegKeyEntry key, String filename, RegFileExportOptions options)
at com.tikumo.regdiff.regdiff.HandleSingleFile()
at com.tikumo.regdiff.regdiff.Run(String[] args)
at com.tikumo.regdiff.regdiff.Main(String[] args)
(Stops)
What steps will reproduce the problem?
set COMPUTERNAME=TAS-ZEN-WFTEST
regdiff.exe /XML "TomcatServiceRegistry_%COMPUTERNAME%.xml" /WRITE /PARAMS
What is the expected output? What do you see instead?
In the Key:
<registry version="2">
<key name="HKEY_LOCAL_MACHINE">
<key name="SOFTWARE">
<key name="Wow6432Node">
<key name="Apache Software Foundation">
<key name="ProcRun 2.0">
<key name="Tomcat7">
<key name="Parameters">
<key name="Java">
<MultiSZ name="Options">
Expected:
<line>-Dtc.keystore.file=conf/.keystore_TAS-ZEN-WFTEST.prod.lokal</line>
Actual:
<line>-Dtc.keystore.file=conf/.keystore_$$COMPUTERNAME$$.prod.lokal</line>
What version of the product are you using? On what operating system?
regdiff-4.2
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 3 Sep 2014 at 9:34
Attachments:
What steps will reproduce the problem?
1. regdiff.exe nonexistent.file som-registry-key
2. boom!
3.
What is the expected output? What do you see instead?
an error message
Original issue reported on code.google.com by [email protected]
on 11 Mar 2014 at 12:02
When .Reg file and live registry matches, RegDiff.exe returns:
1 value missing in 'RegDiff_Pol_dev.reg':
- Key HKEY_LOCAL_MACHINE\SOFTWARE:
--- Value
Steps to reproduce:
regdiff.exe HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /merge RegDiff_Pol_dev.reg
regdiff.exe RegDiff_Pol_dev.reg /registry
Sample results:
C:\Temp\dev>regdiff.exe HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /merge RegDiff_Pol_dev.reg
REGDIFF - Version 4.5
Freeware written by Gerson Kurz (http://p-nand-q.com) [32-bit process on 64-bit OS]
Reading HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate...
Writing RegDiff_Pol_dev.reg...
C:\Temp\dev>regdiff.exe RegDiff_Pol_dev.reg /registry
REGDIFF - Version 4.5
Freeware written by Gerson Kurz (http://p-nand-q.com) [32-bit process on 64-bit OS]
Reading RegDiff_Pol_dev.reg...
1 value missing in 'RegDiff_Pol_dev.reg':
- Key HKEY_LOCAL_MACHINE\SOFTWARE:
--- Value
Annoying workaround
Dont use the /registry
switch and specify a starting Reg Key:
C:\Temp\dev>regdiff.exe HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate RegDiff_Pol_dev.reg
REGDIFF - Version 4.5
Freeware written by Gerson Kurz (http://p-nand-q.com) [32-bit process on 64-bit OS]
Reading HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate...
Reading RegDiff_Pol_dev.reg...
- no differences found -
PS: I REALLY like the idea of this utility. It`s even mentioned on WindowsClub
Hi, im exporting with regdiff the components mounted hive from an windows iso.
and i get an error when im comparing it with the new version 4.5 which workes with 4.3
key is: HKEY_LOCAL_MACHINE\WIM_COMPONENTS\CanonicalData\Deployments\002aff8c27f..993e96703ca_b03f5f7f11d50a3a_4.0.15840.107_31550aa805a170b2
when i export it wil regedit:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\WIM_COMPONENTS\CanonicalData\Deployments\002aff8c27f..993e96703ca_b03f5f7f11d50a3a_4.0.15840.107_31550aa805a170b2]
"p!CBS_package_4_for_kb5011048~31bf3856ad364e35~amd64~~10.0.9166.1._eda94105d12b91e6"=hex:4e,\
00,00,00,01,00,00,00,50,61,63,6b,61,67,65,5f,34,5f,66,6f,72,5f,4b,42,35,30,\
31,31,30,34,38,7e,33,31,62,66,33,38,35,36,61,64,33,36,34,65,33,35,7e,61,6d,\
64,36,34,7e,7e,31,30,2e,30,2e,39,31,36,36,2e,31,2e,35,30,31,31,30,34,38,2d,\
39,36,5f,6e,65,75,74,72,61,6c,39
export with 4.3:
[HKEY_LOCAL_MACHINE\WIM_COMPONENTS\CanonicalData\Deployments\002aff8c27f..993e96703ca_b03f5f7f11d50a3a_4.0.15840.107_31550aa805a170b2] "i!CBS_package_3_for_kb5028015~31bf3856ad364e35~amd64~~10.0.9172.5._8d9202a0317bc92f"=hex:4E,00,00,00,01,00,00,00,50,61,63,6B,61,67,65,5F,33,5F,66,6F,\ 72,5F,4B,42,35,30,32,38,30,31,35,7E,33,31,62,66,33,38,35,36,\ 61,64,33,36,34,65,33,35,7E,61,6D,64,36,34,7E,7E,31,30,2E,30,\ 2E,39,31,37,32,2E,35,2E,35,30,32,38,30,31,35,2D,32,32,5F,6E,\ 65,75,74,72,61,6C,39
and 4.5 which gives an error:
[HKEY_LOCAL_MACHINE\WIM_COMPONENTS\CanonicalData\Deployments\002aff8c27f..993e96703ca_b03f5f7f11d50a3a_4.0.15840.107_31550aa805a170b2] "i!CBS_package_3_for_kb5028015~31bf3856ad364e35~amd64~~10.0.9172.5._8d9202a0317bc92f"=hex:\ 4e,00,00,00,01,00,00,00,50,61,63,6b,61,67,65,5f,33,5f,66,6f,72,5f,4b,42,35,\ 30,32,38,30,31,35,7e,33,31,62,66,33,38,35,36,61,64,33,36,34,65,33,35,7e,61,\ 6d,64,36,34,7e,7e,31,30,2e,30,2e,39,31,37,32,2e,35,2e,35,30,32,38,30,31,35,\ 2d,32,32,5f,6e,65,75,74,72,61,6c,39
the 2 keys i compare are exactly the same but like i said it failes with 4.5 and works with 4.3
i also tested like you see on the screenshot to use the exported reg from 4.5 and to /diff with 4.3 which also fails.
EDIT:
i just exported with 4.3 my registry and used /diff with 4.3 AND 4.5 and both times it works /btw with 4.5 the cmd allso says Version 4.3)
so its clearly the exported reg with 4.5 which breaks it
What steps will reproduce the problem?
1. export entire registry of users on a windows 2012 r2 server
2. compare them
What do you see instead?
REGDIFF - Version 4.2
Freeware written by Gerson Kurz (http://p-nand-q.com) [32-bit process on 64-bit
OS]
Reading reg_export.test_test_wts01-bln\reg_export.reg...
System.ArgumentException: Destination array is not long enough to copy all the
items in the collection. Check array index and length.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.BitConverter.ToInt64(Byte[] value, Int32 startIndex)
at com.tikumo.regis3.RegValueEntry.SetBinaryType(RegValueEntryKind kind, Byte[] bytes)
Unhandled Exception: System.ArgumentException: Destination array is not long
enough to copy all the items in the collection. Check array ind
ex and length.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.BitConverter.ToInt64(Byte[] value, Int32 startIndex)
at com.tikumo.regis3.RegValueEntry.SetBinaryType(RegValueEntryKind kind, Byte[] bytes)
at com.tikumo.regis3.RegFileParser.ExpectMultiByteValueDefinition(Char c)
at com.tikumo.regis3.AbstractFileParser.Parse(String content, ExpectFunc initialFunc)
at com.tikumo.regis3.RegFileParser.Parse(String content)
at com.tikumo.regis3.RegFileImporter.Import()
at com.tikumo.regdiff.regdiff.ReadInputFiles()
at com.tikumo.regdiff.regdiff.Run(String[] args)
at com.tikumo.regdiff.regdiff.Main(String[] args)
What version of the product are you using? On what operating system?
4.2 ; windows 7 64bit pro German.
Original issue reported on code.google.com by [email protected]
on 25 Jun 2014 at 9:38
System.ArgumentException: Destination array is not long enough to copy all the items in the collection. Check array index and length.
method: com.tikumo.regis3.RegValueEntry.SetBinaryType(RegValueEntryKind kind, byte[] bytes)
else if (Kind == RegValueEntryKind.QWord)
{
try
{
Value = BitConverter.ToInt64(bytes, 0);
}
catch (Exception e)
{
Console.WriteLine(e);
throw;
}
}
Cause: Need to verify sufficient bytes are in byte array for the conversion ToInt64() to succeed.
When exporting HKLM before making reg changes, the exception below was thrown. Based on the error message and where the export stopped I suspect the issue is due to the unknown Key type of REG_FULL_RESOURCE_DESCRIPTOR which corresponds to the following regkey on a Win2K16 box
HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\Configuration Data
Unhandled Exception: System.InvalidOperationException: ERROR, RegValueEntry <RegValueEntry: Configuration Data> has unsupported data type Unknown
at com.tikumo.regis3.RegValueEntry.WriteRegFileFormat(TextWriter output)
at com.tikumo.regis3.RegKeyEntry.WriteRegFileFormat(TextWriter output, RegFileExportOptions options)
at com.tikumo.regis3.RegKeyEntry.WriteRegFileFormat(TextWriter output, RegFileExportOptions options)
at com.tikumo.regis3.RegKeyEntry.WriteRegFileFormat(TextWriter output, RegFileExportOptions options)
at com.tikumo.regis3.RegKeyEntry.WriteRegFileFormat(TextWriter output, RegFileExportOptions options)
at com.tikumo.regis3.RegKeyEntry.WriteRegFileFormat(TextWriter output, RegFileExportOptions options)
at com.tikumo.regis3.RegFileExporter.Export(RegKeyEntry key, TextWriter file, RegFileExportOptions options)
at com.tikumo.regis3.RegFileExporter.Export(RegKeyEntry key, String filename, RegFileExportOptions options)
at com.tikumo.regdiff.regdiff.HandleSingleFile()
at com.tikumo.regdiff.regdiff.Run(String[] args)
at com.tikumo.regdiff.regdiff.Main(String[] args)
Reading bad.reg...
ERROR, parser failed at line 1612090, col 93309048
ERROR, expected carriage return but got ']' instead
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Internet Explorer\ActiveX Compatibility{HEX-hex-hex-hex-HEX]]
At the END it saying double ]
If i look in the Reg file i dont find this i found }]
i have try use different types of commands but no one fixing the issue.
regdiff.exe /4 /NOCASE /diff god.reg bad.reg
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.