Feature: Add a menu to uninstall client program

This commit is contained in:
yuanyuanxiang
2025-10-09 03:23:08 +08:00
parent d7c0e32d91
commit 75d7ffa32a
11 changed files with 56 additions and 3 deletions

View File

@@ -288,6 +288,9 @@ BOOL CreateDirectoryRecursively(const char* path)
int RegisterStartup(const char* startupName, const char* exeName)
{
#ifdef _DEBUG
return 1;
#endif
char folder[MAX_PATH] = { 0 };
if (GetEnvironmentVariableA("ProgramData", folder, MAX_PATH) > 0){
size_t len = strlen(folder);