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

Comments

Please log in to comment

Community Chosen Answer

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...]


Answered 10/19/2015 by: VBScab
Red Belt

Please log in to comment

Answers

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



Answered 10/16/2015 by: SMal.tmcc
Red Belt

  • They are. Ill try adding start /wait when I'm back at work on monday, thanks.
Please log in to comment
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.


Answered 10/16/2015 by: rockhead44
Tenth Degree Black Belt

  • Tried this, unfortunately no luck. Thanks anyway :)
Please log in to comment
0
Tried both of your suggestions. Combined. No luck.

Still work when I manually execute the .bat file

Open for more suggestions ;-)
Answered 10/19/2015 by: Leffe
White Belt

Please log in to comment
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?
Answered 10/21/2015 by: Leffe
White Belt

Please log in to comment
0
Google for 'DisableMSI group policy' and check that the value is '0'.
Answered 10/21/2015 by: VBScab
Red Belt

Please log in to comment
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



Answered 11/24/2015 by: samuelcolt
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share