I'm trying to run a batch file that will uninstall Ultra VNC. When I run it from the computer locally or even from a server location, it works fine. I created the package in SCCM like I would for just about any other install package, but it doesn't work. I have tried several settings... drive letter, unc path, run from distribution point, run locally, etc... and several combinations of those settings.
I have read quite a bit on the net, but I'm still at a loss. I think I need to be using %~dp0
Here is what the batch looks like now...
if exist "C:\Program Files (x86)" goto 64bit
goto 32bit
:32bit
c:
cd \program files\ultravnc
unins000.exe /VERYSILENT /NORESTART
cd \program files\uvnc bvba\ultravnc
unins000.exe /VERYSILENT /NORESTART
taskkill /F /IM winvnc.exe
:64bit
c:
cd \program files (x86)\ultravnc
unins000.exe /VERYSILENT /NORESTART
cd \program files (x86)\uvnc bvba\ultravnc
unins000.exe /VERYSILENT /NORESTART
taskkill /F /IM winvnc.exe
Basically it goes to 2 possible locations and runs the uninstall. Then I added a taskkill because in one test, winvnc.exe was still running even after it uninstalled. Anyway, that's not what this about. I'm just trying to get this batch to run via SCCM 2007.
If I do need to use %~dp0, how would I do that with this batch file? I don't understand why that would be needed though... especially if I say to download the batch and run locally.
Hey all,
I'm trying to run a batch file that will uninstall Ultra VNC. When I run it from the computer locally or even from a server location, it works fine. I created the package in SCCM like I would for just about any other install package, but it doesn't work. I have tried several settings... drive letter, unc path, run from distribution point, run locally, etc... and several combinations of those settings.
I have read quite a bit on the net, but I'm still at a loss. I think I need to be using %~dp0
Here is what the batch looks like now...
if exist "C:\Program Files (x86)" goto 64bit
Share this post
Link to post
Share on other sites