fix windows install extra commands and...

- prompt to remove install directory on uninstall
- delete start menu icons on uninstall
- create appdata folder if it doesn't exist
This commit is contained in:
ReenigneArcher
2022-08-20 21:12:37 -04:00
parent e04ed497a6
commit 6980ee36b3
2 changed files with 36 additions and 15 deletions

View File

@@ -6,6 +6,7 @@
#include <unordered_map>
#include <boost/asio.hpp>
#include <boost/filesystem.hpp>
#include "config.h"
#include "main.h"
@@ -910,6 +911,12 @@ int parse(int argc, char *argv[]) {
}
}
// create appdata folder if it does not exist
if(!boost::filesystem::exists(platf::appdata().string())) {
boost::filesystem::create_directory(platf::appdata().string());
}
// create config file if it does not exist
if(!fs::exists(sunshine.config_file)) {
std::ofstream { sunshine.config_file }; // create empty config file
}