
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2019 12:30 PM - last edited on ‎04-01-2024 04:40 PM by Mercedes_O
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?
Labels:
- Labels:
-
API & Integrations
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2019 07:15 AM
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.
