Advertisement
Combreal

uninstallFWBellowV1331.bat

Feb 24th, 2021 (edited)
766
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.96 KB | None | 0 0
  1. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  2. :: Désinstalle les clients FileWave aux versions antérieures ::
  3. :: à 13.3.1 puis s'auto-détruit                              ::
  4. :: Auteur : M. Jolly - JM Haby, 2021-02-25                   ::
  5. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  6.  
  7. @echo off
  8. setlocal enabledelayedexpansion
  9.  
  10. FOR /F "skip=1 delims=" %%i IN ('wmic product where "name like 'FileWave Client'"  get Version') DO (
  11.     set v=%%i
  12.     If /I Not "%%i"=="!v:13.1.5=!" goto uninstall
  13.     If /I Not "%%i"=="!v:13.1.2=!" goto uninstall
  14.     If /I Not "%%i"=="!v:13.0.3=!" goto uninstall
  15.     If /I Not "%%i"=="!v:13.0.1=!" goto uninstall
  16.     If /I Not "%%i"=="!v:12.7.1=!" goto uninstall
  17. )
  18. GOTO :EOF
  19.  
  20. :uninstall
  21.   FOR /F "skip=1 delims=" %%i IN ('wmic product where "name like 'FileWave Client'"  get IdentifyingNumber') DO (
  22.     set GUID=%%i
  23.     goto end
  24.   )
  25. GOTO :EOF
  26.  
  27. :end
  28.   setlocal disabledelayedexpansion
  29.   msiexec /X %GUID% /QN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement