1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-09-18 01:33:00 +03:00

Cedar/SW.c: load "vpnsetup.exe" directly instead of expecting it to be in "hamcore.se2"

The MSBuild project built the binary into "src/bin/hamcore", causing it to be added to "hamcore.se2".

As hinted by the name of the file ("vpnsetup_nosign.exe"), it is not signed by BuildUtil, possibly to save time (the setup package is signed).

The CMake project builds the binary in the same directory as the other ones, allowing the setup to install them without the need to build a package.
This commit is contained in:
Davide Beatrici 2020-07-26 00:06:15 +02:00
parent cc61c90372
commit 24d64222ea

View File

@ -141,7 +141,7 @@ bool SwCompileSfx(LIST *o, wchar_t *dst_filename)
{
// Generate the setup.exe file in the Temp directory
ConbinePathW(exe_filename, sizeof(exe_filename), MsGetMyTempDirW(), L"setup.exe");
if (FileCopyW(L"|vpnsetup_nosign.exe", exe_filename))
if (FileCopyW(L"vpnsetup.exe", exe_filename))
{
// Resource updating start
HANDLE h = _BeginUpdateResourceW(exe_filename, false);