cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
saulob
Engaged Sweeper II

This is my script:

Command:
Xcopy "{PackageShare}\Installers\uninstall.exe" c:\remotefolder /I /A /R /Y

Command:
Xcopy "{PackageShare}\Installers\executeFile.bat" c:\remotefolder /I /A /R /Y

Command:
c:\remotefolder \executeFile.bat



The bat files contains the uninstall command inside that execute the uninstall tool.

But the .bat file does not work. The uninstall.exe does not execute.

I tried one bat with a "msg * test ok" command and it does execute, tried one with a "dir > s.txt" but the s.txt file it's not created.

Why some commands execute on the remote machine and others not?

1 REPLY 1
CyberCitizen
Honored Sweeper
It is hard to tell without seeing what your trying to uninstall, but I would go away from using a bat file as it won't pass error codes through etc. I would create it as a deployment package with each step etc so you can see where it's failing, its a little extra work at the start but makes things alot easier.