Windows Batch Script, Removal of (3) ShareFile Software

  • 1
  • Problem
  • Updated 4 months ago
Need to remove (3) ShareFile Software from 55 pc's, I wanted to use a script.
Print to SF: 2.7.76.0
Desktop App: 1.17.877.0
Outlook Plugin: installed 5.0.1349.1 (but it updates automatically)

Created basic .bat script that works but for all 3 software but it does not remove the items from Add/Remove programs (the data seems to clear, example print to sharefile, the printer device is removed) then in add/remove when i select one of the software and click uninstall the Citrix Installer comes up with the "modify / repair / uninstall" options. so a full uninstall/cleanup is NOT happening. I've used the same commands on other software without issue. maybe the "Installer" for the sharefile software is being left behind. but its not allowing for a clean uninstall when calling by script. ANY HELP is appreciated. i just dont want to do this manually 55 times.

i've tried calling MSIEXEC and calling the guid and ive tried wmic. both have the same effect.

Script Example: obviously i didnt run wmic and msiexec together, just showing the code that i used in separate tests. 

SET PRINT=Print to ShareFile for Windows
SET DESKTOP=ShareFile Desktop
SET OUTLOOK=ShareFile Outlook Plug-in

ECHO.
ECHO Removing %PRINT%...
wmic product where name="%PRINT%" call uninstall /nointeractive
MsiExec.exe /qn /X{1A1B444E-908E-4321-B381-76CB20CB6464}

ECHO.
ECHO Removing %DESKTOP%...
wmic product where name="%PRINT%" call uninstall /nointeractive
MsiExec.exe /qn /X{B3AF897A-36C4-4F73-AF98-54DF63E05EBE}

ECHO.
ECHO Removing %OUTLOOK%...
wmic product where name="%PRINT%" call uninstall /nointeractive
MsiExec.exe /qn /X{B46CA7AD-469E-4B17-8487-D2BDB9F90B75}
Photo of Michael Weston

Michael Weston

  • 1 Post
  • 0 Reply Likes
  • hopeless

Posted 4 months ago

  • 1

Be the first to post a reply!