UnityLauncherPro icon indicating copy to clipboard operation
UnityLauncherPro copied to clipboard

Handle corrupted "user.config"

Open unitycoder opened this issue 3 years ago • 1 comments

Had computer crash/BSOD, unitylauncherpro user.config file was corrupted and then application fails to launch.

info: https://www.codeproject.com/Articles/30216/Handling-Corrupt-user-config-Settings https://stackoverflow.com/questions/42708868/user-config-corruption

error: System.Configuration.ConfigurationErrorsException: 'Configuration system failed to initialize'

unitycoder avatar Oct 30 '22 11:10 unitycoder

restore backup can still fail, if backup file itself is broken.. need to save backup when it works and confirm that its xml file.

  • [ ] validate backup file when creating it
  • [ ] create secondary backup file?
  • [ ] allow exporting settings to file (or basically, button to browse config folder, so user can take manual copy)
  • [ ] dialog needs 3rd option, "reset settings", because if backup file is also broken, cannot get past this dialog, until go delete the file manually

Image

unitycoder avatar Jun 04 '25 10:06 unitycoder

added 3rd button for now

unitycoder avatar Nov 12 '25 20:11 unitycoder