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. Adapting .REG Files.

    in Windows 10 Software and Apps
    Adapting .REG Files.: I came across these somewhere [sorry I can't remember where or I would credit the owner]. I know that Icon and Position are optional, but MUIVerb and SubCommands are compulsory. Code: [HKEY_CLASSES_ROOT\DesktopBackground\Shell\AdvancedStartupOptions]" MUIVerb"="Advanced...
  3. Double click on *.reg file does NOT change the key value in Registry

    in Windows 10 Support
    Double click on *.reg file does NOT change the key value in Registry: I have a *.reg script which just modifies (overwrites) the value of a certain, existing Registry key. When I double click on it (similar to Win7) then a popup appears asking me if I really want to add the key. After clicking Ok I was informed that the key value has been...
  4. "Open With" menu - registry entries mysterious

    in Windows 10 Network and Sharing
    "Open With" menu - registry entries mysterious: I got tired of seeing an old version of Adobe Audition in my "Open With" menu for .wav files, so I tried to go to the registry to delete it. But the registry entries are really weird. Here is a screenshot of the Open With menu overlaid with regedit showing the relevant keys...
  5. Need Help With Registry Tweak Using .REG File &/Or .BAT File - Please & Thank You!

    in Windows 10 Ask Insider
    Need Help With Registry Tweak Using .REG File &/Or .BAT File - Please & Thank You!: [ATTACH] I'm not sure if this is the right place to ask this, but I've had no luck doing it myself. I've created a few .reg & .bat files in the past in regards to this, however some only would delete the registry entry, while others did nothing at all. Could someone help...
  6. .reg file error

    in Windows 10 BSOD Crashes and Debugging
    .reg file error: Hi,I tried to change windows 10 font style by running a reg file- Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts] "Segoe UI (TrueType)"="" "Segoe UI Bold (TrueType)"="" "Segoe UI Bold Italic (TrueType)"="" "Segoe...
  7. 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...
  8. Downloading a reg file.

    in Browsers and Email
    Downloading a reg file.: This is not a problem just a observation. I noticed something strange when I went to download Brink's reg file to bring back the Photo Viewer. Either Pale Moon or Windows 10 thinks it's a .TS video file. [img] Has anyone else notice this when downloading a reg file? 40086
  9. Question: How can I import .REG files to a non-booting Windows?

    in Windows 10 Performance & Maintenance
    Question: How can I import .REG files to a non-booting Windows?: Hey everyone, Today I used a registry cleaner to fix my slow system, but instead of repairing it it made my PC stuck in user login bootloop, but thankfully they backed up the registry and I have it. So the question is, how can I import the registry in this non-booting PC?...
  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...