/build/static/layout/Breadcrumb_cap_w.png

Problems installing a .msi with a .bat file KACE

Hi

I'm having issues installing a .msi via KACE

The .bat-file does uninstall older versions but does not run the .msi

So the problem is probably this line:
msiexec /i "AsperaConnect-ML-3.6.1.111228.msi" /qn ALLUSERS=1


Note: It does work when running the bat-file from the computer but not when KACE does it

The script
@echo OFF
cls
 
 
:KillIE&Aspera
echo. ***********************************************************************
echo.    IMPORTANT NOTICE
echo.
echo.    This will uninstall old Aspera Connect version and install the latest one
echo.
echo.    SAVE your work you have in your browsers. 
echo.    Internet Explorer, Chrome and Firefox are SHUTTING DOWN 
echo.    when you press a key
echo.    
echo. ************************************************************************

pause

Rem ***
taskkill /F /IM iexplorer.exe
taskkill /F /IM iexplore.exe
taskkill /F /IM firefox.exe
taskkill /F /IM chrome.exe
taskkill /F /IM asperaconnect.exe

 
:UninstallingOldAsperoversions
echo.************************************************************************
echo.************************************************************************
echo. DO NOT CLOSE THIS WINDOW
echo. All the Aspera Connect versions from your computer are being removed 
echo. and the latest version installed.
echo.************************************************************************
echo.************************************************************************
wmic product where "name like 'Aspera Connect 3%%'" call uninstall

echo "%cd%" > C:\Temp\kacelog.txt

msiexec /i "AsperaConnect-ML-3.6.1.111228.msi" /qn ALLUSERS=1


0 Comments   [ + ] Show comments

Answers (7)

Posted by: anonymous_9363 8 years ago
Red Belt
1
Don't bother adding paths - DOS does that for you. Use '%~dp0' instead. No trailing backslash is required. Thus:

MSIExec /I "%~dp0BLAH.MSI" [rest of command line...]


Posted by: SMal.tmcc 8 years ago
Red Belt
0
Is the msi and the bat file zipped in the same directory?  Also try adding start /wait because the msi could be starting while the wmic is still running. 

start /wait wmic product where "name like 'Aspera Connect 3%%'" call uninstall

echo "%cd%" > C:\Temp\kacelog.txt

start /wait c:\windows\system32\msiexec /i "AsperaConnect-ML-3.6.1.111228.msi" /qn ALLUSERS=1




Comments:
  • They are. Ill try adding start /wait when I'm back at work on monday, thanks. - Leffe 8 years ago
Posted by: rockhead44 8 years ago
Red Belt
0
I had a similar issue with a Java installer where the uninstall ran but the .msi would not execute. I changed my line that calls the .msi to point directly to the path where the MI was copied locally. In my case, 

msiexec /i "C:\ProgramData\Dell\KACE\downloads\24021\jre1.8.0_45.msi" INSTALL_SILENT=1 STATIC=0 AUTO_UPDATE=0 WEB_JAVA=1 WEB_ANALYTICS=0 EULA=0 REBOOT=0 NOSTARTMENU=1 SPONSORS=0 /qn

would execute.



Comments:
  • Tried this, unfortunately no luck. Thanks anyway :) - Leffe 8 years ago
Posted by: Leffe 8 years ago
White Belt
0
Tried both of your suggestions. Combined. No luck.

Still work when I manually execute the .bat file

Open for more suggestions ;-)
Posted by: Leffe 8 years ago
White Belt
0
Ok. Noticed in the install log that I get "error 1625: this installation is forbidden by system policy" when running the .MSI

Any ideas?
Posted by: anonymous_9363 8 years ago
Red Belt
0
Google for 'DisableMSI group policy' and check that the value is '0'.
Posted by: samuelcolt 8 years ago
Orange Senior Belt
0

I have deployed so many versions of Aspera Connect by using msiexec /i"AsperaConnect-ML-X.X.X.msi" /qn ALLUSERS=1 in Kace Managed Installations. However, I had trouble deploying version 3.6.1.111228.msi. At the end this is what I did to successfully deploy it.

Ran the following Online KScript to clean up failed installations.

Run As: Local System

Attach dependency AsperaCleanup.bat

@ECHO OFF

cls

TITLE Aspera Connect Cleanup

wmic product where "name like 'Aspera%%'" calluninstall /nointeractive

exit

 

Task 1

Verify:
Verify that the directory “$(KACE_DEPENDENCY_DIR)”exists.

 

On Success

Launch “$(KACE_DEPENDENCY_DIR)\AsperaCleanup.bat

 

 

Created a Custom Inventory rule in Software.

Software Name: Aspera Connect 3.6.1.111228 (Custom)

FileExists(C:\Program Files (x86)\Aspera\AsperaConnect\lib\3.6.1\npasperaweb_3.6.1.111228.dll)

Attached File: AsperaConnect-ML-3.6.1.111228.msi

 

Managed Install (With user logged in)

Override Default Install>

Select Don't Prepend msiexec.exe

Full Command Line:
msiexec.exe /i AsperaConnect-ML-3.6.1.111228.msi WIX_APP_FOLDER=WixPerMachineFolder ALLUSERS=1 REBOOT=REALLYSUPPRESS /qn



 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ