I have a batch file that scans the registry and if it finds bluebeam, its uninstalls it. the batch file works great, however I am unable to get it to work in winbatch. here is a sample of the batch file:
TASKKILL /F /IM "BBPrint.exe"
REM If upgrading 10.0 or 10.1, and you installed to a custom path, please fix the INSTALLDIR path below:
SET INSTALLDIR=%ProgramFiles%\Bluebeam Software\Bluebeam Revu
SET ADMINPATH=Pushbutton PDF\PbMngr5.exe
SET VUADMINPATH=Bluebeam Vu Admin.exe
SET WCV=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\InstallShield
SET WCV64=HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\InstallShield
SET WCVF=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders
SET WGF=%WINDIR%\Installer
SET ISII=%ProgramFiles%\InstallShield Installation Information
SET ISII64=%ProgramFiles(x86)%\InstallShield Installation Information
I have tried:
Runwait("Uninstall Previous Versions.bat", "")
and
cmd_32 = DirWindows(0):'syswow64\CMD.EXE'
Run( cmd_32, "Uninstall Previous Versions.bat" )
I know it can be done but for the life of me I am drawing a blank.
thanks
Nicholas
There are multiple reason why bat files might not work from a WinBatch run* function but first you need to prefix the cmd.exe parameters with a '/c ' or '/k ' to the get the command shell to treat the parameter that follows as a command to execute. Type 'cmd /?' from a command prompt to get more information.