Release native admin final 2.1.0
This commit is contained in:
1 parent
71c778b9d7
commit
d05253ba84
12 files changed
+1723
-113
No files matched your search
@@ -8,6 +8,7 @@
|
||||
#include <windows.h>
|
||||
#include <winsvc.h>
|
||||
#include <sddl.h>
|
||||
#include <shellapi.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
@@ -351,6 +352,10 @@ int install(const std::wstring& payloadDirectory) {
|
||||
return 1;
|
||||
}
|
||||
std::wprintf(L"DUO-RDP native C++ installation complete: %s\n", installDirectory.c_str());
|
||||
const HINSTANCE launched = ShellExecuteW(nullptr, L"open", (installDirectory + L"\\DuoRdpAdmin.exe").c_str(), nullptr, installDirectory.c_str(), SW_SHOWNORMAL);
|
||||
if (reinterpret_cast<INT_PTR>(launched) <= 32) {
|
||||
std::fwprintf(stderr, L"Installation is complete, but open DuoRdpAdmin.exe manually (ShellExecute error=%lld).\n", static_cast<long long>(reinterpret_cast<INT_PTR>(launched)));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user