@echo off echo ================================= echo UNINSTALLING THE PUREEDGE VIEWER echo ================================= echo UNINSTALLING THE PUREEDGE VIEWER > PureEdge_65_Uninstall.log echo Ending Viewer instances that are currently running. echo. echo Ending Viewer instances that are currently running. >> PureEdge_65_Uninstall.log tskill /A /V masqform >> PureEdge_65_Uninstall.log echo. echo Issuing the PureEdge Viewer 6.5 Uninstall Command echo Issuing the PureEdge Viewer 6.5 Uninstall Command >> PureEdge_65_Uninstall.log RunDll32 "%PROGRAMFILES%\COMMON~1\INSTAL~1\engine\6\INTEL3~1\Ctor.dll",LaunchSetup "C:\Program Files\InstallShield Installation Information\{E0000650-0650-0650-0650-000000000650}\Setup.exe" -l0x9 -uninst >> PureEdge_65_Uninstall.log echo. :RESTARTQUESTION set choice=- set /p choice=Did the Wizard successfully complete? (y/n) : if %choice%==y goto CONTINUE if %choice%==n goto STOP goto RESTARTQUESTION :STOP echo. echo User indicated Uninstall did not complete successfully >> PureEdge_65_Uninstall.log echo Please contact your network administrator for further assistance is required. goto QUIT :CONTINUE echo. echo NOTE: You may see errors or messages stating that files are not found. echo This is normal and is not any cause for concern. echo. echo Checking/Removing the Install Shield residue for PureEdge Viewer 6.0, 6.1 or 6.5 in "%PROGRAMFILES%\InstallShield Installation Information\" echo Checking/Removing the Install Shield residue for PureEdge Viewer 6.0, 6.1 or 6.5 in "%PROGRAMFILES%\InstallShield Installation Information\" >> PureEdge_65_Uninstall.log echo Removing Install Shield residue for PureEdge Viewer 6.0 >> PureEdge_65_Uninstall.log rmdir /Q /S "%PROGRAMFILES%\InstallShield Installation Information\{E0000600-0600-0600-0600-000000000600}" >> PureEdge_65_Uninstall.log echo Removing Install Shield residue for PureEdge Viewer 6.1 >> PureEdge_65_Uninstall.log rmdir /Q /S "%PROGRAMFILES%\InstallShield Installation Information\{E0000610-0610-0610-0610-000000000610}" >> PureEdge_65_Uninstall.log echo Removing Install Shield residue for PureEdge Viewer 6.5 >> PureEdge_65_Uninstall.log rmdir /Q /S "%PROGRAMFILES%\InstallShield Installation Information\{E0000650-0650-0650-0650-000000000650}" >> PureEdge_65_Uninstall.log echo. echo Removing "%PROGRAMFILES%\PureEdge\Viewer 6.5" echo Removing "%PROGRAMFILES%\PureEdge\Viewer 6.5" >> PureEdge_65_Uninstall.log rmdir /Q /S "%PROGRAMFILES%\PureEdge\Viewer 6.5" >> PureEdge_65_Uninstall.log echo. :RESTARTQUESTION set choice=- set /p choice=Restart PC? (y/n) : if %choice%==y goto RESTARTPC if %choice%==n goto NORESTARTPC goto RESTARTQUESTION :RESTARTPC echo Restarting PC >> PureEdge_65_Uninstall.log shutdown -r -t 10 goto END :NORESTARTPC echo. echo Did not restart PC with script >> PureEdge_65_Uninstall.log echo Please restart your PC at your earliest convience. :END echo. echo PureEdge 6.5 Viewer has been successfully uninstalled >> PureEdge_65_Uninstall.log echo PureEdge 6.5 Viewer has been successfully uninstalled. :QUIT pause