mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +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:
parent
cc61c90372
commit
24d64222ea
@ -141,7 +141,7 @@ bool SwCompileSfx(LIST *o, wchar_t *dst_filename)
|
|||||||
{
|
{
|
||||||
// Generate the setup.exe file in the Temp directory
|
// Generate the setup.exe file in the Temp directory
|
||||||
ConbinePathW(exe_filename, sizeof(exe_filename), MsGetMyTempDirW(), L"setup.exe");
|
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
|
// Resource updating start
|
||||||
HANDLE h = _BeginUpdateResourceW(exe_filename, false);
|
HANDLE h = _BeginUpdateResourceW(exe_filename, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user