VirtualBox

Ignore:
Timestamp:
Mar 28, 2017 6:02:37 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
114241
Message:

Installer/win: make sure that 'the other' network filter driver is uninstalled on uninstall or on install (just a crude fix attempt, trying to clean up the mess on the test systems)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.cpp

    r63311 r66312  
    55
    66/*
    7  * Copyright (C) 2008-2016 Oracle Corporation
     7 * Copyright (C) 2008-2017 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    505505static MSIHANDLE g_hCurrentModule = NULL;
    506506
     507static UINT _uninstallNetFlt(MSIHANDLE hModule);
     508static UINT _uninstallNetLwf(MSIHANDLE hModule);
     509
    507510static VOID vboxDrvLoggerCallback(VBOXDRVCFG_LOG_SEVERITY enmSeverity, char *pszMsg, void *pvContext)
    508511{
     
    699702#endif /*VBOX_WITH_NETFLT*/
    700703
    701 UINT __stdcall UninstallNetFlt(MSIHANDLE hModule)
     704/*static*/ UINT _uninstallNetFlt(MSIHANDLE hModule)
    702705{
    703706#ifdef VBOX_WITH_NETFLT
     
    740743#endif /* VBOX_WITH_NETFLT */
    741744
    742     /* Never fail the install even if we did not succeed. */
     745    /* Never fail the uninstall even if we did not succeed. */
    743746    return ERROR_SUCCESS;
    744747}
    745748
    746 UINT __stdcall InstallNetFlt(MSIHANDLE hModule)
     749UINT __stdcall UninstallNetFlt(MSIHANDLE hModule)
     750{
     751    (void)_uninstallNetLwf(hModule);
     752    return _uninstallNetFlt(hModule);
     753}
     754
     755static UINT _installNetFlt(MSIHANDLE hModule)
    747756{
    748757#ifdef VBOX_WITH_NETFLT
     
    799808}
    800809
    801 
    802 UINT __stdcall UninstallNetLwf(MSIHANDLE hModule)
     810UINT __stdcall InstallNetFlt(MSIHANDLE hModule)
     811{
     812    (void)_uninstallNetLwf(hModule);
     813    return _installNetFlt(hModule);
     814}
     815
     816
     817/*static*/ UINT _uninstallNetLwf(MSIHANDLE hModule)
    803818{
    804819#ifdef VBOX_WITH_NETFLT
     
    841856#endif /* VBOX_WITH_NETFLT */
    842857
    843     /* Never fail the install even if we did not succeed. */
     858    /* Never fail the uninstall even if we did not succeed. */
    844859    return ERROR_SUCCESS;
    845860}
    846861
    847 UINT __stdcall InstallNetLwf(MSIHANDLE hModule)
     862UINT __stdcall UninstallNetLwf(MSIHANDLE hModule)
     863{
     864    (void)_uninstallNetFlt(hModule);
     865    return _uninstallNetLwf(hModule);
     866}
     867
     868static UINT _installNetLwf(MSIHANDLE hModule)
    848869{
    849870#ifdef VBOX_WITH_NETFLT
     
    913934    /* Never fail the install even if we did not succeed. */
    914935    return ERROR_SUCCESS;
     936}
     937
     938UINT __stdcall InstallNetLwf(MSIHANDLE hModule)
     939{
     940    (void)_uninstallNetFlt(hModule);
     941    return _installNetLwf(hModule);
    915942}
    916943
     
    11301157#endif /* VBOX_WITH_NETFLT */
    11311158
    1132     /* Never fail the install even if we did not succeed. */
     1159    /* Never fail the uninstall even if we did not succeed. */
    11331160    return ERROR_SUCCESS;
    11341161}
     
    11631190#endif /* VBOX_WITH_NETFLT */
    11641191
    1165     /* Never fail the install even if we did not succeed. */
     1192    /* Never fail the uninstall even if we did not succeed. */
    11661193    return ERROR_SUCCESS;
    11671194}
     
    12441271#endif /* VBOX_WITH_NETFLT */
    12451272
    1246     /* Never fail the install even if we did not succeed. */
     1273    /* Never fail the update even if we did not succeed. */
    12471274    return ERROR_SUCCESS;
    12481275}
     
    12991326#endif /* VBOX_WITH_NETFLT */
    13001327
    1301     /* Never fail the install even if we did not succeed. */
     1328    /* Never fail the uninstall even if we did not succeed. */
    13021329    return ERROR_SUCCESS;
    13031330}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette