mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
Refact. Msi, remove unused code (#7685)
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// CustomAction.cpp : Defines the entry point for the custom action.
|
||||
#include "pch.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <strutil.h>
|
||||
#include <shellapi.h>
|
||||
#include <tlhelp32.h>
|
||||
@@ -70,26 +70,6 @@ LExit:
|
||||
return WcaFinalize(er);
|
||||
}
|
||||
|
||||
#include "../../../src/platform/windows_delete_test_cert.cc";
|
||||
UINT __stdcall DeleteTestCerts(
|
||||
__in MSIHANDLE hInstall)
|
||||
{
|
||||
HRESULT hr = S_OK;
|
||||
DWORD er = ERROR_SUCCESS;
|
||||
|
||||
hr = WcaInitialize(hInstall, "DeleteTestCerts");
|
||||
ExitOnFailure(hr, "Failed to initialize");
|
||||
|
||||
WcaLog(LOGMSG_STANDARD, "Initialized.");
|
||||
|
||||
DeleteRustDeskTestCertsW();
|
||||
WcaLog(LOGMSG_STANDARD, "DeleteRustDeskTestCertsW finished.");
|
||||
|
||||
LExit:
|
||||
er = SUCCEEDED(hr) ? ERROR_SUCCESS : ERROR_INSTALL_FAILURE;
|
||||
return WcaFinalize(er);
|
||||
}
|
||||
|
||||
// https://learn.microsoft.com/en-us/windows/win32/api/winternl/nf-winternl-ntqueryinformationprocess
|
||||
// **NtQueryInformationProcess** may be altered or unavailable in future versions of Windows.
|
||||
// Applications should use the alternate functions listed in this topic.
|
||||
|
||||
Reference in New Issue
Block a user