nutdotnet / WinNUT-Client

WinForms-based client for monitoring your Uninterruptible Power Supply (UPS) connected to a Network UPS Tools (NUT) server.
GNU General Public License v3.0
186 stars 18 forks source link

Export settings for transfer/backup #121

Open chbeck2010 opened 8 months ago

chbeck2010 commented 8 months ago

Please make sure to fill out this form completely, and attach your program logs (set to Debug setting). You can delete this line.

WinNUT Version: 2.0.7722.30975 Windows OS Version: windows 10 21H2

Describe the bug A clear and concise description of what the bug is.

In win nut 1.x it was pretty easy to make one ini file and use that on multiple systems. Is there a way to quickly export a config on one system and inport it on another? (registry export/inport, appdata or something like that?

chbeck2010 commented 8 months ago

Created https://github.com/nutdotnet/WinNUT-Client/issues/121

gbakeman commented 7 months ago

Hi @chbeck2010 ,

WinNUT currently does not have an official method for exporting your settings. However, since settings are stored in the Registry, you can accomplish what you want with a few simple steps:

  1. Open a user (non-Admin) command prompt under the user that was running WinNUT
  2. Run command reg.exe export "HKEY_CURRENT_USER\SOFTWARE\WinNUT" "<export destination>" (where <export destination> is where the exported registry contents will go on your file system)

This creates a .reg file which you can then backup, and/or copy to additional computers, after which you can double-click the file so it will be imported and available for WinNUT.

I'm currently working on an upgrade to the Settings system and I think this will be a useful feature to have. I'd like to leave this issue open so I can reference it in the future. Thank you!

Ref #100