Windows 10: A REGISTRY mystery - reg file doesn't import properly

Discus and support A REGISTRY mystery - reg file doesn't import properly in Windows 10 Support to solve the problem; I have imported hundreds of reg files into every windows build since 95, now I run into another W10 mystery. I have a complete export of the key... Discussion in 'Windows 10 Support' started by ruggb, Feb 15, 2017.

  1. ruggb Win User

    A REGISTRY mystery - reg file doesn't import properly


    I have imported hundreds of reg files into every windows build since 95, now I run into another W10 mystery.
    I have a complete export of the key REPETIER. When I import it some REG_SZ entries do not import.

    This is an unmodified export of a sub-key under Repetier.
    reg mystery.reg

    The items that do not import are in bold:

    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\SOFTWARE\Repetier\printer\CC-BOT PLA Full sizeX]
    "travelFeedrate"="7800"
    "zAxisFeedrate"="1000"
    "checkTemp"=dword:00000001
    "checkTempInterval"=dword:00000003
    "disposeX"="0"
    "disposeY"="305"
    "disposeZ"="0"
    "goDisposeAfterJob"=dword:00000001
    "disableHeatedBetAfterJob"=dword:00000001
    "disableExtruderAfterJob"=dword:00000001
    "disableMotorsAfterJob"=dword:00000001
    "printAreaWidth"="305"
    "printAreaDepth"="305"
    "printAreaHeight"="290"
    "dumpAreaLeft"="125"
    "dumpAreaFront"="0"
    "dumpAreaWidth"="22"
    "dumpAreaDepth"="40"
    "defaultExtruderTemp"=dword:000000c8
    "defaultHeatedBedTemp"=dword:00000005
    "filterPath"="yourFilter #in #out"
    "runFilterEverySlice"=dword:00000000
    "logM105"=dword:00000000
    "addPrintingTime"="8"
    "xhomeMax"=dword:00000000
    "yhomeMax"=dword:00000000
    "zhomeMax"=dword:00000000
    "printerXMax"="305"
    "printerXMin"="0"
    "printerYMax"="305"
    "printerYMin"="0"
    "printerBedLeft"="0"
    "printerBedFront"="0"
    "numExtruder"=dword:00000001
    "printerType"=dword:00000000
    "rostockHeight"="340"
    "rostockRadius"="135"
    "cncZTop"="0"
    "connector"="SerialConnector"
    "sendETADispay"=dword:00000001
    "hasMixingExtruder"=dword:00000000
    "maxExtruderTemp"=dword:00000104
    "maxBedTemp"=dword:00000078
    "manualExtrusionSpeed"="2"
    "manualExtrusionSpeedFast"="20"
    "manualReatrctionSpeed"="30"
    "InvertXAxisControl"=dword:00000000
    "InvertYAxisControl"=dword:00000000
    "InvertZAxisControl"=dword:00000000
    "PrinterHasSD"=dword:00000001
    "maxVolumePerSecond"="12"
    "port"="COM4"
    "baud"="250000"
    "transferProtocol"=dword:00000000
    "resetOnConnect"=dword:00000002
    "resetOnEmergency"=dword:00000002
    "receiveCacheSize"=dword:0000007f
    "communicationTimeout"=dword:00000028
    "pingPong"=dword:00000000
    "gcodeScript5"="G1 Z5 ; lower bed

    G1 X167.5 Y152 F5000 ; go to center

    G28 Z0 ; test Z0"
    "gcodeScript1Name"="GOTO full bed home - test Z0"
    "gcodeScript2Name"="GOTO full bed back left (X=0, Y=305), test Z0"
    "gcodeScript3Name"="GOTO full bed back right (X=305, Y=305), test Z0"
    "gcodeScript4Name"="GOTO full bed front right (X=305, Y=0), test Z0"
    "gcodeScript5Name"="Center Head, test Z0"
    "slicerSelection"="Slic3r"
    "FlipXY"=dword:00000000
    "gcodePrepend"="G28 ; home all

    G1 Z10 ; lower table and wait"
    "gcodeAppend"="M104 S0 ; hotends off

    G91 ; relative

    G1 Z5 ; lower table

    G90 ; absolute

    G1 X167.5 Y305 F5000 ; park X&Y

    ; This parks in middle to allow hotend fans to cool model

    "
    "gcodeKill"="M104 S0 ; hotends off

    G91 ; relative

    G1 Z5 ; lower table

    G90 ; absolute

    G1 X167.5 Y305 F5000 ; park X&Y

    ; This parks in middle to allow hotend fans to cool model"
    "gcodePause"="G91 ; relative

    G1 Z5 ; lower table

    G90 ; absolute

    G1 X0 Y305 F5000 ; park X&Y

    ; This parks at end keep hotend fans from cooling model"
    "gcodeScript1"="G1 Z5 ; lower bed

    G1 X0 Y0 ; GOTO home

    G28 Z0 ; test Z0

    "
    "gcodeScript2"="G1 Z5 ; lower bed

    G1 X0 Y305 F5000 ; move to back left

    G28 Z0 ; test Z0"
    "gcodeScript3"="G1 Z5 ; lower bed

    G1 X305 Y305 f5000 ; move to back right

    G28 Z0 ; test Z0"
    "gcodeScript4"="G1 Z5 ; lower bed

    G1 X305 Y0 f5000 ; move to front right

    G28 Z0 ; test Z0

    "


    [HKEY_CURRENT_USER\SOFTWARE\Repetier\printer\CC-BOT PLA Full size\ext0]
    "extruderId"=dword:00000000
    "offsetX"="0"
    "offsetY"="0"
    "color"=dword:ffff8040
    "diameter"="0.4"
    "script"=""
    "tempOffset"="0"
    "name"=""

    [HKEY_CURRENT_USER\SOFTWARE\Repetier\printer\CC-BOT PLA Full size\ext1]
    "extruderId"=dword:00000001
    "offsetX"="0"
    "offsetY"="0"
    "color"=dword:ff00ff00
    "diameter"="0.4"
    "script"=""
    "tempOffset"="0"
    "name"=""



    Can someone explain why???????????
    Note: viewing the reg file in Notepad, the extra LF appears as an extra space at the end of the line. I did not add it.

    :)
     
    ruggb, Feb 15, 2017
    #1
  2. ruggb Win User

    regedit won't import its export

    When I export a key with regedit, regedit won't import it properly.

    The registry key was generated by a program.

    The values of registry names that do not import contain CR CR LF at the end of each line in the value

    The value in the program that created the entry looks like this

    G1 Z5 ; lower bed

    G1 X50 Y260 f5000 ; move to back left

    G28 Z0 ; test Z0

    That is one value for a script name with CRs & LFs

    The reg file contains this:

    A REGISTRY mystery - reg file doesn't import properly [​IMG]

    So the 0d 00 0d 00 0a 00 must be terminating the " and since that makes it invalid the entry is dropped on import.

    So how does the program create it in the first place?

    How can I successfully export then import this key?

    I need to do this so I won't have to recreated the entries and potentially get them wrong on another computer.

    These are the entries in the registry


    A REGISTRY mystery - reg file doesn't import properly [​IMG]


    The entries ending with NAME do import as there are no CR or LF in them.
     
    ruggb, Feb 15, 2017
    #2
  3. sralpert Win User
    Windows 10 regedit cannot import a reg file

    I save a reg file in a directory with no spaces. I want to import back into the Windows 10 registry but receive an error message:

    Cannot import <filename>.reg: Error accessing the registry.

    I am running as Administrator and have full control.

    What's wrong?

    /steveA
     
    sralpert, Feb 15, 2017
    #3
  4. JagoWU Win User

    A REGISTRY mystery - reg file doesn't import properly

    Are you trying to import the key while logged in with a standard windows account? You would need to log in as a user who is apart of the local admin or run script as admin to import the key.
     
    JagoWU, Feb 15, 2017
    #4
  5. Kyhi Win User
    your quotes " " are all over the place... need to be one line...

    Code: "pingPong"=dword:00000000 "gcodeScript5"="G1 Z5 ; lower bedG1 X167.5 Y152 F5000 ; go to centerG28 Z0 ; test Z0" "gcodeScript1Name"="GOTO full bed home - test Z0" "gcodeScript2Name"="GOTO full bed back left (X=0, Y=305), test Z0" "gcodeScript3Name"="GOTO full bed back right (X=305, Y=305), test Z0" "gcodeScript4Name"="GOTO full bed front right (X=305, Y=0), test Z0" "gcodeScript5Name"="Center Head, test Z0" "slicerSelection"="Slic3r" "FlipXY"=dword:00000000 "gcodePrepend"="G28 ; home allG1 Z10 ; lower table and wait" "gcodeAppend"="M104 S0 ; hotends offG91 ; relativeG1 Z5 ; lower tableG90 ; absoluteG1 X167.5 Y305 F5000 ; park X&Y; This parks in middle to allow hotend fans to cool model" "gcodeKill"="M104 S0 ; hotends offG91 ; relativeG1 Z5 ; lower tableG90 ; absoluteG1 X167.5 Y305 F5000 ; park X&Y; This parks in middle to allow hotend fans to cool model" "gcodePause"="G91 ; relativeG1 Z5 ; lower tableG90 ; absoluteG1 X0 Y305 F5000 ; park X&Y; This parks at end keep hotend fans from cooling model" "gcodeScript1"="G1 Z5 ; lower bedG1 X0 Y0 ; GOTO homeG28 Z0 ; test Z0" "gcodeScript2"="G1 Z5 ; lower bedG1 X0 Y305 F5000 ; move to back leftG28 Z0 ; test Z0" "gcodeScript3"="G1 Z5 ; lower bedG1 X305 Y305 f5000 ; move to back rightG28 Z0 ; test Z0" "gcodeScript4"="G1 Z5 ; lower bedG1 X305 Y0 f5000 ; move to front rightG28 Z0 ; test Z0"[/quote] I just back spaced the line(s) >
     
  6. RolandJS Win User
    Replendence has a free version of Registrar Registry Manager which has an import/export [within its secondary panel]; you might have to try with that tool.
     
    RolandJS, Feb 15, 2017
    #6
  7. ruggb Win User
    I am THE admin
    That file was a direct export from REGEDIT. Are you saying REGEDIT can't properly export registry keys??
    Does MS know this??
     
    ruggb, Feb 16, 2017
    #7
  8. Kyhi Win User

    A REGISTRY mystery - reg file doesn't import properly

    very combative for someone asking for help.. Just saying..
     
  9. ruggb Win User
    maybe it is just your interpretation, sorry - just saying there is no other admin here, and again I am disappointed in MS, not being able to control their own sw. How do I export keys from the registry with the registry's own sw and not get what I am suppose to, to be able to import back into a registry -- such that I must find a 3rd party solution?
    Just absurd, wouldn't you say???

    All those LF didn't look right to me either, but it is MS sw..........
     
    ruggb, Feb 16, 2017
    #9
  10. It looks like something scrambled the code, so it be could read, but notepad does not do that, only wordpad. Can you post the screenshot, what it looks like in the registry? Maybe some special characters are used?
     
    TairikuOkami, Feb 16, 2017
    #10
  11. ruggb Win User
    here u go - the long lines are the ones messed up

    A REGISTRY mystery - reg file doesn't import properly [​IMG]

    Not sure if u can read that
    All these entries are generated by the program
     
    ruggb, Feb 16, 2017
    #11
  12. RolandJS Win User
    I missed it, what program was used to type the REG file contents? I can't remember metapad or notepad, such need to have have their word-wrap turned off, adding unseen characters into its TXT or REG creation. Wordpad? -- I have not used such, I do not know if Wordpad adds unseen characters or re-formats the writings within its TXT or REG creations. I don't believe anyone uses MS Word for such creations.
     
    RolandJS, Feb 16, 2017
    #12
  13. RolandJS Win User

    A REGISTRY mystery - reg file doesn't import properly

    Amended: Repetier Host a 3D printer program created the registry material...RegEdit did the exporting...
    I have no answer why RegEdit cannot accurately import its own previous export.
    I'm been in listening mode since this post, to learn from those who know far more than I *Smile
     
    RolandJS, Feb 16, 2017
    #13
  14. ruggb Win User
    The original keys were generated by Repetier. I have xfered these keys between my computers in the past without an issue. I don't believe the program changed RE this. The file I uploaded was a reg file that regedit created. Viewing the reg file with notepad showed the LF characters.
    Maybe it is something with notepad. I will redo it using ultraedit.
     
    ruggb, Feb 16, 2017
    #14
  15. ruggb Win User
    OK, I just exported the Repetier key with all the sub-keys. I then deleted one subkey in the registry and imported the reg file without opening it. All the gcode entries except the gcodeScript#name are missing from the subkey that I deleted. The rest of the entries are there.
     
    ruggb, Feb 16, 2017
    #15
Thema:

A REGISTRY mystery - reg file doesn't import properly

Loading...
  1. A REGISTRY mystery - reg file doesn't import properly - Similar Threads - REGISTRY mystery reg

  2. Cannot import registry file for windows defender, getting error "cannot import file...

    in Windows 10 Software and Apps
    Cannot import registry file for windows defender, getting error "cannot import file...: Already tried granting permissions in regedit and taking ownership of the file + granting everyone permissions, also ran a "sfc /scannow" command to search for any corrupt files, but I get the exact same error....
  3. Cannot import registry file for windows defender, getting error "cannot import file...

    in Windows 10 BSOD Crashes and Debugging
    Cannot import registry file for windows defender, getting error "cannot import file...: Already tried granting permissions in regedit and taking ownership of the file + granting everyone permissions, also ran a "sfc /scannow" command to search for any corrupt files, but I get the exact same error....
  4. Mysterious Display registries

    in Windows 10 Customization
    Mysterious Display registries: What are these registeries used for? Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\EnergyEstimation\Display DisplayBacklightPowerFloor DisplayBacklightPowerGradient DisplayBacklightPowerQDenominator DisplayBacklightPowerQNumerator...
  5. Mysterious Registry

    in Windows 10 Customization
    Mysterious Registry: Greetengs everybody and happy holidays. Could you please explain to me purpose of this Registry Values Windows 10, I couldn't find anything about it on the web: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\EnergyEstimation\Display...
  6. REG Import

    in Windows 10 Support
    REG Import: Good afternoon, I am putting a Batch file together that involves exporting and importing the Registry. However, I have a question. I am only posting the relevant parts of the code instead of the whole code. To export the Registry I am using . . . Code: for %%a in (HKLM HKCU...
  7. Cannot import Registry File, Not all Data was successfully written to the Registry

    in Windows 10 News
    Cannot import Registry File, Not all Data was successfully written to the Registry: [ATTACH]Windows Registry allows any user to take backup and restore registry files. While the […] This article Cannot import Registry File, Not all Data was successfully written to the Registry first appeared on TheWindowsClub.com. read more...
  8. Modifying Registry with "reg" file

    in Windows 10 Support
    Modifying Registry with "reg" file: I exported a HKCU key and saved it as a reg file. I now want to import it to another HDD. Prior to doing this I noticed the properties list in the Receiving system: 1) Contains the same list of items BUT 2) Are in a different order than the exported file. What to confirm...
  9. Import reg file in a batch file

    in Windows 10 Support
    Import reg file in a batch file: Hi, i've a reg file to mod windows 10 that works properly, but if i import it in a batch file it doesn't work. this is the reg file i've called Windows10.reg Code: Windows Registry Editor Version 5.00...
  10. Cannot import .reg. Error opening the file.

    in Windows 10 Support
    Cannot import .reg. Error opening the file.: ...There may be a disk or file system error. Happens when double-clicking reg-file on the NAS-share, which is mapped as a network drive. User is a user with admin rights (membership of Administrators group), and it is the first and only user that was created while W10 was...