PDA

View Full Version : XmlToReg - Convert registry provisioning files to .reg files


AlexVallat
2nd August 2008, 10:32 AM
There are several tools available for converting .reg files to xml registry provisioning files, but none for going in the other direction. Admittedly, not quite so common a requirement, but could still come in handy.

This is a Windows command line tool which accepts an xml registry provisioning file as the only command line argument (just drop the .xml file on the .exe), and produces a .reg file next to it, in RegEdit v5 Unicode format.

Comments, suggestions, and bug reports all welcome.

Alex

Updates:

0.2:
Now supports empty values for String, MultiString and Binary values


.NET Framework (http://www.microsoft.com/downloads/details.aspx?FamilyId=333325FD-AE52-4E35-B531-508D977D32A6) (required)

Ameet
2nd August 2008, 11:05 AM
There are several tools available for converting .reg files to xml registry provisioning files, but none for going in the other direction. Admittedly, not quite so common a requirement, but could still come in handy.

This is a Windows command line tool which accepts an xml registry provisioning file as the only command line argument (just drop the .xml file on the .exe), and produces a .reg file next to it, in RegEdit v5 Unicode format.

Comments, suggestions, and bug reports all welcome.

Alex

.NET Framework (http://www.microsoft.com/downloads/details.aspx?FamilyId=333325FD-AE52-4E35-B531-508D977D32A6) (required)

Brilliant Alex. Simply brilliant :)

asango
2nd August 2008, 06:05 PM
Hi Alex,

wow, I think it took only 2 days from when I told you about my idea until you turned it into a usable solution!
Congratulations and a big thank!

One thing that occurred when I tested with some of my xml files (seems that I've always got the strangest testing files one can imagine...)

<characteristic type="Registry">
<characteristic type="HKLM\Comm\TIACXWLN1\Parms\TCPIP">
<parm name="WINS" value="" datatype="multiplestring"/>
</characteristic>
</characteristic>

The empty string value="" leads to a conversion abortion.
Maybe you can build in a fix for such a situation?

Thank you very much again for turning this into reality and I'll let you know in case i'll find anything else that needs to be fixed if you don't mind!

AlexVallat
2nd August 2008, 08:12 PM
Thanks for pointing that out, I hadn't considered empty values. I don't think an empty value is valid for a numeric or boolean data type, but there's no reason a string or binary value shouldn't be empty. Version 0.2 should handle them properly, and is now available in the first post.

Alex

frauhottelmann
16th March 2009, 07:49 PM
First, it's great that you made this app! But, I am having an issue with this.
I don't know why, but it doesn't make a real reg file. I just get an empty one!
I am attaching the provxml I tried it with!

AlexVallat
16th March 2009, 08:51 PM
That provxml isn't a registry provisioning file. It claims to be a "Metabase" provisioning file, which is one I'm not familiar with. It does seem to contain registry data, though, just not in the Registry provisioning format. What produced this file?

frauhottelmann
16th March 2009, 09:03 PM
Too bad. This is a provxml for a language SYS package for a WM 6.1 Standard ROM. I wanted to make CABs out of the packages, because not all languages fit in one ROM and I don't want to male 3 ROMs just for all languages. Unfortunately if I don't add the information of this file, not everything gets translated :(
Thanks for your help!

krazy_about_technology
17th March 2009, 10:39 AM
Thanks for this great tool buddy. I was looking for it since long ago. :)

Nokser
12th April 2009, 04:32 PM
Good app THX

irus
20th October 2009, 05:12 PM
Great app Thanks