Code Monkey home page Code Monkey logo

Comments (7)

kessler avatar kessler commented on June 1, 2024

@zariweyo could you please provide some code that will help me recreate the problem? thanks

from node-regedit.

juanjo75es avatar juanjo75es commented on June 1, 2024

It still fails for me after making changes suggested by zariweyo

                                                      let valuesToPut = {};
                                                      valuesToPut[s3] = {
                                                        'FolderValueFlags': {
                                                          value: 0x28,
                                                          type: 'REG_DWORD'
                                                        },
                                                        'Attributes': {
                                                          value: 0xF080004D,  
                                                          type: 'REG_DWORD'
                                                        }
                                                      };

                                                      regedit.putValue(valuesToPut, function(err) {
                                                        if(typeof err !== "undefined")
                                                          console.log(err);
                                                        else{
                                                          
                                                        }
                                                      })

from node-regedit.

kessler avatar kessler commented on June 1, 2024

@juanjo75es currently very busy... so it will take time to get to this. However, if you run into a solution in the meanwhile, please don't hesitate to send a PR

from node-regedit.

nhz-io avatar nhz-io commented on June 1, 2024

REG_DWORD

  • CLng overflows at 0x80000000.
  • Need to use CDbl for writing
  • Need to conver Long to ULong for reading

from node-regedit.

nhz-io avatar nhz-io commented on June 1, 2024

REG_QWORD

  • No conversion needed - SetQWORDValue accepts a String
  • writing is limited to values below 9007199254740993 Precision
  • reading is unaffected by precision limit

I dont see a way to overcome the precision limit on writing 😢

from node-regedit.

juanjo75es avatar juanjo75es commented on June 1, 2024

@kessler Well ... I solved my problem using:

var exec = require('child_process').exec;
exec( "reg add (...)" , function(error, stdout, stderr){});

But I guess it won't help you.

from node-regedit.

kessler avatar kessler commented on June 1, 2024

@juanjo75es thanks for sharing the solution :)

from node-regedit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.