Rocket Man Posted December 10, 2012 Report post Posted December 10, 2012 What program are you deploying and what is the syntax of your script? If it is an msiexec /i script then try this msiexec /i "%~dp0program.msi" /parameters Try it with the quotes and without the quotes.. Quote Share this post Link to post Share on other sites More sharing options...
P.Keen Posted December 10, 2012 Report post Posted December 10, 2012 hi Rocket Man! Thanks for you reply this is the first line, MsiExec.exe /x{1E041DB4-A5B9-45E1-A660-563804Dxxxxx} /norestart /qb This is where it fails because the script works fine from a mapped drive, but gets the error using psexec and sccm 2012. How would what you recommend work with that string? and why? what does that do? Quote Share this post Link to post Share on other sites More sharing options...
P.Keen Posted December 11, 2012 Report post Posted December 11, 2012 I got it to work with psexec using the "-i" switch. psexec -i \\computername MsiExec.exe /x{1E041DB4-A5B9-45E1-A660-563804D0xxxx} /norestart /qb and it returned error code 0, but im not sure how this helps me with sending it from sccm. Quote Share this post Link to post Share on other sites More sharing options...
Peter van der Woude Posted December 12, 2012 Report post Posted December 12, 2012 By using psexec you can simulate the behavior of SCCM, as it performs its actions as the system account. The commandline is a standard uninstall string for some MSI. Quote Share this post Link to post Share on other sites More sharing options...
P.Keen Posted December 12, 2012 Report post Posted December 12, 2012 So how does one resolve the sccm deployment using psexec I know how to get it to work using psexec, but two different delivery systems. Quote Share this post Link to post Share on other sites More sharing options...
Rocket Man Posted December 12, 2012 Report post Posted December 12, 2012 psexec -i \\computername MsiExec.exe /x{1E041DB4-A5B9-45E1-A660-563804D0xxxx} /norestart /qb Why do you need to specify a computername in the uninstall(how will this mass uninstall??) I will give you an example of a situation i was in before. I implemented SCCM 2012 single site 360 odd PCs. All of them had eset AV on them. I wanted SCEP2010 on them but before I could do this I had to uninstall the ESET. The steps I took Went to the all programs folder on a machine that had the ESET on it. Found the uninstaller and opened file location. This pointed to "C:\Program Files\Eset\callmsi.exe" with an entry of {6E071DB4-85B9-45E1-A660-563804D08790}(not really this but this an example) So I devised a batch file as so "C:\Program Files\Eset\callmsi.exe" /uninstall {6E071DB4-85B9-45E1-A660-563804D08790} /quiet I created a package out of this batch file and deployed to all machines. This eventually removed the eset once all machines recieved the ConfiMgr Client and were able to recieve advertisements. Your MsiExec.exe /x{1E041DB4-A5B9-45E1-A660-563804Dxxxxx} /norestart /qb........how does it know where the location of this is to remove it?? You could a run command line task and point it to the location of the uninstaller with your parameters for example if your uninstaller msi was in the program files folder the run command line could be like this: c:\Program files\Program directory\uninstall.msi /uninstall {1E041DB4-A5B9-45E1-A660-563804D0xxxx} /norestart /qb Quote Share this post Link to post Share on other sites More sharing options...
P.Keen Posted December 13, 2012 Report post Posted December 13, 2012 No idea, SCCM is really a great product, works fine from a mapped drive but doesnt work at all using a mapped drive through SCCM 2012. Great product manual install on 75 PCs this weekend Thanks for your great response Rocketman !!! I appreciate it ! Quote Share this post Link to post Share on other sites More sharing options...
Rocket Man Posted December 14, 2012 Report post Posted December 14, 2012 what you have to do is find the source of the uninstaller and then point your batch with your parameters as above to it OR use a run command line as outlined above. There are probably more methods but 1st you have to find the location of the uninstaller file be it an exe or an msi! Quote Share this post Link to post Share on other sites More sharing options...
P.Keen Posted December 14, 2012 Report post Posted December 14, 2012 I am using a command line I posted it above. It is using msiexec to uninstall the software. Quote Share this post Link to post Share on other sites More sharing options...