Node.js and extension(s) question

I just came out with an idea to install into my project
extension (not quite a plugin in MV), but library to node js that
allows me to access windows registry, this is my first time I will
attempt and here is my question:

Does it will be included in project when I deploy it and if yes, then
what possible issues this may cause to potential customer of my game?

Now to tell what do I need accessing windows registry in my game
simple, I want that way handling control whetter game is registered or not.

I'm also open for other ideas to check if game is registered or not.
Well, in one of my projects I have used an external node library to copy and filter some files in the player's computer, and I can say that the Antivirus of the players will detect it as a virus, as it will be an unknown program trying to modify files within windows.

Even Windows Defender itself will detect it.

Your case seems to be even more applicable as you're trying to edit Windows registry. Not only that any Antivirus will not let you do that (and the antivirus of several players will detect it as a "virus" no one will want to ever risk, ending up being instantly deleted), but I also don't recommend you to use Windows Registry to do this. Do not ever modify those. You will never know what configurations each player has, and some registries will differ from windows to windows (versions i mean).

If you really want to check if your game is registered or not, I would recommend you to use the folders from AppData. You can create files in multiple folders (you may use an unreadable name for the folders such as: 324FEPCC899011), and create text files which would contain a certain number (it can be an encrypted number or whatever you want) in each folder , but only one folder of those folders will be the "real" folder you need to check, the other ones are would be just dummy / false folders to make player not easily edit / delete them.

And even so, I think some Antiviruses will detect this activity as it is an unknown program editing files. Safest method would be to create a login sequence to your game, but remember that it will not work unless the player uses internet connection.
@Hisao Shou You're right about that registry, my antivirus also detects even If I manualy edit registry,
now, about a file in user data folder, because I'm tired after work (high temp, dry air, stupid boss) what
comes on my mind if comes to disadvantages, file can be shared and second thing, if user creates another account and remove previous, he would need to register it again.

I could store registered users in MySQL database, but I either should setup one in my home, or buy hosting.

But in 96% I agree with you 🙂
I also don't recommend you to use Windows Registry to do this. Do not ever modify those.
Um, the registry is meant to be modified. Whenever you install a program, it modifies the registry. Storing settings in the Windows Registry is a little unusual but not unheard of.

That said, I still think using AppData is preferable for this use case, as you described.
@Hisao Shou You're right about that registry, my antivirus also detects even If I manualy edit registry,
now, about a file in user data folder, because I'm tired after work (high temp, dry air, stupid boss) what
comes on my mind if comes to disadvantages, file can be shared and second thing, if user creates another account and remove previous, he would need to register it again.

I could store registered users in MySQL database, but I either should setup one in my home, or buy hosting.

But in 96% I agree with you 🙂

The SQL database would be indeed most preferable option. Also you just need a basic webhost, which is around 5-10$, that would be enough to keep a plenty of entries.

Original thread: https://forums.rpgmakerweb.com/threads/node-js-and-extension-s-question.123713/