diff --git a/res/msi/CustomActions/CustomActions.cpp b/res/msi/CustomActions/CustomActions.cpp index 85ea27fe8bd..209b31a89f3 100644 --- a/res/msi/CustomActions/CustomActions.cpp +++ b/res/msi/CustomActions/CustomActions.cpp @@ -1,6 +1,6 @@ // CustomAction.cpp : Defines the entry point for the custom action. #include "pch.h" - +#include #include #include #include @@ -70,26 +70,6 @@ UINT __stdcall RemoveInstallFolder( 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. diff --git a/res/msi/CustomActions/CustomActions.def b/res/msi/CustomActions/CustomActions.def index 08a539cb7e9..0673ee1ad6d 100644 --- a/res/msi/CustomActions/CustomActions.def +++ b/res/msi/CustomActions/CustomActions.def @@ -3,5 +3,4 @@ LIBRARY "CustomActions" EXPORTS CustomActionHello RemoveInstallFolder - DeleteTestCerts TerminateProcesses diff --git a/res/msi/Package/Components/RustDesk.wxs b/res/msi/Package/Components/RustDesk.wxs index cf41ba01a55..f01c4999d4e 100644 --- a/res/msi/Package/Components/RustDesk.wxs +++ b/res/msi/Package/Components/RustDesk.wxs @@ -30,7 +30,6 @@ - diff --git a/res/msi/Package/Fragments/CustomActions.wxs b/res/msi/Package/Fragments/CustomActions.wxs index 500b5da409c..0c1e61e4de6 100644 --- a/res/msi/Package/Fragments/CustomActions.wxs +++ b/res/msi/Package/Fragments/CustomActions.wxs @@ -6,7 +6,6 @@ -