I do not think this question has been clearly asked before here on this site. I have scoured Google in hopes of finding a solution, but the information is scattered around the web and difficult to piece together in a timely fashion (with my limited scripting knowledge anyway). So, any help would be appreciated, and if there are any questions about what I'm trying to accomplish here, feel free to ask. I am reaching out because when it comes to creating scripts that are more complicated than merely launching an executable, my knowledge is very limited.
What I am trying to do:
Ultimately, I will be using ManageEngine Desktop Central to push a configuration out to remote computers on our domain/network. The more simple goal, that I just can't seem to find success with, is getting a batch file that can be as easy as running it and successfully installing Adobe Acrobat DC (Not the free Adobe Reader application). I would like to have a batch file that checks to see if the install folder is there, and if it is, uninstall it to eliminate the message that is prompted stating "Error 1316. The specified account already exists." or any other traces of Acrobat that would cause this install error. Once the safeguards are in place to avoid install errors, such as the error previously mentioned, it gets more simple. After that, I just want Adobe Acrobat to install, then I want to remove the shortcut "Adobe Creative Cloud.lnk" from all the users' desktops so they only see the "Adobe Acrobat DC" shortcut.
UPDATE**
Okay, in the time I posted the original post, I have tried throwing together a batch file, but it still will not work. I am using a 3rd party service to deploy this config, so contacting Adobe would not be helpful. I don't expect most people to be familiar with ManageEngine Desktop Central, but that is why I need a batch file, which Adobe support cannot help me with. what I have right now is:
IF EXIST "C:\Program Files (x86)\Adobe\Acrobat DC" (
rmdir "C:\Program Files (x86)\Adobe\Acrobat DC"
goto :install
) ELSE (
ECHO Acrobat Folder Doesn't Exist goto :install
)
:install
S:\Adobe_CC\AcrobatPro\AcrobatDC\AdobeAcrobatDC\Build\setup.exe --silent
IF /I "%ERRORLEVEL%" NEQ "0" (
ECHO execution failed
)
batch filethere is nothing for us to answer. - Compo"C:\Program Files (x86)\Adobe\Acrobat DC"? Have you ever heard of the Acrobat Customization Wizard DC for Windows? If you take a look you will see that you can create installation packages capable of checking for/removing older versions and the creation or otherwise of shortcuts and more etc. - Compo