src/Cedar/SW.c
// Copy the files of VPN Gate

Copy the files of VPN Gate
Copy the files of VPN Gate
bool SwSfxCopyVgFiles(HWND hWnd, wchar_t* src, wchar_t* dst)
{
	wchar_t* msg;
	wchar_t srcfilename[MAX_PATH];
	wchar_t exefilename[MAX_PATH];
	GetFileNameFromFilePathW(srcfilename, sizeof(srcfilename), src);
	GetFileNameFromFilePathW(exefilename, sizeof(exefilename), MsGetExeFileNameW());
	if (FileCopyW(src, dst))
	{
		return true;
	}
	msg = L"The file \"%s\" was not found on the directory which the installer \"%s\" is located on.\r\n\r\n"
		L"To continue the installation, the file \"%s\" is required on the same direcotry.\r\n"
		L"If you have extracted the installer from a ZIP archive, you have to also extract the file \"%s\" from the ZIP archive together.";
	MsgBoxEx(hWnd, MB_ICONINFORMATION, msg, srcfilename, exefilename, srcfilename, srcfilename);
	return false;
}
bool SwSfxCopyVgFiles ( HWND hWnd , wchar_t * src , wchar_t * dst ) { wchar_t * msg ; wchar_t srcfilename [ MAX_PATH ] ; wchar_t exefilename [ MAX_PATH ] ; GetFileNameFromFilePathW ( srcfilename , sizeof ( srcfilename ) , src ) ; GetFileNameFromFilePathW ( exefilename , sizeof ( exefilename ) , MsGetExeFileNameW ( ) ) ; if ( FileCopyW ( src , dst ) ) { return true ; } msg = L" \" \" \" \" \r \n \r \n " L" \" \" \r \n " L" \" \" " ; MsgBoxEx ( hWnd , MB_ICONINFORMATION , msg , srcfilename , exefilename , srcfilename , srcfilename ) ; return false ; }
Copy the files of VPN Gate
Copy the files of VPN Gate