1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-10 01:34:58 +03:00

v4.06-9435-beta

This commit is contained in:
dnobori
2014-03-26 12:38:30 +09:00
parent e61fca4d9d
commit 16d73ccb57
285 changed files with 425 additions and 280 deletions

View File

@ -2371,6 +2371,44 @@ LABEL_RETRY_4:
FileDeleteW(setuplog);
}
// Delete the existing Virtual Network Adapters
// Currently disabled because of 32bit/64bit problems
#if 0
if (c->Id == SW_CMP_VPN_CLIENT)
{
if (MsIsNt())
{
if (!(MsIs64BitWindows() && Is32()))
{
UINT i;
TOKEN_LIST *t;
SwPerformPrint(wp, _UU("SW_PERFORM_MSG_DELETE_NIC"));
// Enumeration
t = MsEnumNetworkAdapters(VLAN_ADAPTER_NAME, VLAN_ADAPTER_NAME_OLD);
if (t != NULL)
{
if (t->NumTokens >= 1)
{
if (SwPerformMsgBox(wp, MB_ICONQUESTION | MB_YESNO | MB_DEFBUTTON2, _UU("SW_PERFORM_MSG_DELETE_NIC")) == IDYES)
{
for (i = 0;i < t->NumTokens;i++)
{
char *name = t->Token[i];
MsUninstallVLan(name);
}
}
}
FreeToken(t);
}
}
}
}
#endif
SwPerformPrint(wp, _UU("SW_PERFORM_MSG_UPDATING"));
// Notify the update to the system