Skip to content

Commit

Permalink
Make sure old driver is uninstalled with NetCfg before installing new
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Mar 23, 2023
1 parent f62f12e commit 04ab640
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packetWin7/NPFInstall/NPFInstall/NPFInstall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ int _tmain(int argc, _TCHAR* argv[])
// -i or -i2
BOOL first_time = TRUE;
BOOL try_again = FALSE;
// Make sure NetCfg doesn't keep an old driver around
UninstallDriver(); // Don't care about return value
do {
try_again = FALSE;
if (InstallDriver())
Expand Down

0 comments on commit 04ab640

Please sign in to comment.