Quantcast
Channel: Configuration Manager 2007 Software Distribution forum
Viewing all articles
Browse latest Browse all 629

Invalid executable file

$
0
0

We have a program (Ansys) on multiple W7x64 computers with a uninstall.exe in the program folder. We need to run this Uninstall.exe program to uninstall the software so that we can install a new version. I created a batch file that works when you launch it manually however through SCCM it fails with  "Invalid executable file" taken from the execmgr.log file. Here is my batch file:

Batch File Test One:

Call "c:\Program Files\ANSYS Inc\Uninstall.exe" –silent 

Batch File Test Two:

Call "%programfiles%\ANSYS Inc\Uninstall.exe" –silent 

In the SCCM Program command line, I have the command line directly pointed to this batch file. I have ran batch files before this way with no issues, but I have never had to point to a uninstall program on the local machine to initiate an uninstall. So I am confused.  Help?  


Viewing all articles
Browse latest Browse all 629

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>