hello guys,

 

i created this batch file to push a software to users pc. how can make this batch file work in KACE

:**********************************************************************************
: The command below will install EIM
:
: EIM_INPUT_SERVERNAMEORIP the server name or IP of the EIM server
: EIM_INPUT_STANDARDPORT the non-trusted port number for the client to use
: EIM_INPUT_TRUSTEDPORT the trusted port number for the client to use
: EIM_INPUT_USETRUSTEDPORT either true or false
: INSTALLDIR is the directory where EIM will be installed
: ALLUSERS set this to an empty string ("") if users do not have administrator
:  rights to their computer. This will install start menu items and desktop
:  shortcuts for the logged in user only, not the other users on this
:  machine. To use the default behavior, and install for all users, simply
:  remove the ALLUSERS="" section.
: NOTE: to run this installer "quietly" (aka without showing the normal
:  install dialogs) include the /qn option at the end

msiexec /i "\\myserver\mysharfolder\pweimclient_v4000.msi" EIM_INPUT_SERVERNAMEORIP="192.168.5.8" EIM_INPUT_STANDARDPORT=7777 EIM_INPUT_TRUSTEDPORT=7778 EIM_INPUT_USETRUSTEDPORT=true INSTALLDIR="%PROGRAMFILES%\Passageways\Enterprise Instant Messenger" /qn

:**********************************************************************************

 

thanks

 

alex

 

Answer Summary:
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

2

The other option is too simply create a Managed Installion for this software, and instead of uploading the MSI file just upload the batch script and run it.

Answered 08/01/2012 by: Ben M
Eighth Degree Black Belt

  • either will work since the installer is on a share, use what works easist for u

  • Yea I generally use this option, but both are viable. Just depends on what will work best in each situation.

  • agreed, there are always at least 3 ways to do something in windows, and usually more just try to stay consistant so you do not confuse yourself and other co-workers

  • That's one of the things I love about Windows.

Please log in to comment
2

If you are going to use kscrpting make sure you use the verify. If not it will continue to run everytime it is scheduled.

Upload msi as dependency.

Verify: Directory exists  %PROGRAMFILES%\Passageways\Enterprise Instant Messenger

Remediation: Run batch file or msiexec to install software.


Answered 08/02/2012 by: dugullett
Red Belt

Please log in to comment
1

create a 1000 script and put the remarks in the notes and in the "on success" launch a program

On Success

 

  1. Launch c:\windows\system32\msiexec.exe with params /i \\myserver\mysharfolder\pweimclient_v4000.msi EIM_INPUT_SERVERNAMEORIP=192.168.5.8 EIM_INPUT_STANDARDPORT=7777 EIM_INPUT_TRUSTEDPORT=7778 EIM_INPUT_USETRUSTEDPORT=true INSTALLDIR=%PROGRAMFILES%\Passageways\Enterprise Instant Messenger /qn.

 

Answered 08/01/2012 by: SMal.tmcc
Red Belt

  • how about if install the software from a pc then upload to kace and then manually add the command to install msiexec /i  pweimclient_v4000.msi EIM_INPUT_SERVERNAMEORIP="192.168.5.8" EIM_INPUT_STANDARDPORT=7777 EIM_INPUT_TRUSTEDPORT=7778 EIM_INPUT_USETRUSTEDPORT=true INSTALLDIR="%PROGRAMFILES%\Passageways\Enterprise Instant Messenger" /qn

    will this work

    • You would be better off creating a .cmd file with that info and calling the .cmd file in your command line. Zip the cmd file and the msi up together and upload them to the Kbox.

  • i created the file how can i call the cmd file in the command line file name IM.txt

  • name the file im.cmd and this will cause the command inturpreter to run it  by calling it, somewhat like a bat file.

  • Well it should really be IM.cmd. You might want to check on that. You did zip this CMD file with your msi correct?

    Install the software on a test machine. After the install run an inventory on that machine so that the software record will be created. Upload your zip to that software record.

    Create a managed install.
    1. Select "Configure manually"
    2. Command Line = IM.CMD
    3. Delete Downloaded Files.
    4. Apply the labels and messages (if needed).

  • in the command file do i still need to point to the server where i have the software

    msiexec /i "\\myserver\mysharfolder\pweimclient_v4000.msi" EIM_INPUT_SERVERNAMEORIP="192.168.5.8" EIM_INPUT_STANDARDPORT=7777 EIM_INPUT_TRUSTEDPORT=7778 EIM_INPUT_USETRUSTEDPORT=true INSTALLDIR="%PROGRAMFILES%\Passageways\Enterprise Instant Messenger" /qn

    • No. Since your zipped it with your CMD file you can just use the following:

      msiexec /i pweimclient_v4000.msi /qn

  • in the command file should i just remove the \\\myserver\mysharefolder and replace it with pweimclient_v4000.msi

  • i made the change to command file and and zip up the msi and the im.cmd file in my push i am using to im.cmd i setup my test pc nothing is happening what am i doing wrong

    • Make sure you ran an inventory update. Maybe post a screenshot of what you have for the managed install. Along with the cmd file that you used.

  • i did run an inventory update. this is the cm.file i have

    msiexec /i "pweimclient_v4000.msi" EIM_INPUT_SERVERNAMEORIP="192.168.5.8" EIM_INPUT_STANDARDPORT=7777 EIM_INPUT_TRUSTEDPORT=7778 EIM_INPUT_USETRUSTEDPORT=true INSTALLDIR="%PROGRAMFILES%\Passageways\Enterprise Instant Messenger" /qn

Please log in to comment
0

Answered 08/02/2012 by: brighstarcuit
Seventh Degree Black Belt

  • Yeah.... any way you can make that bigger? I'm not that old, but I can't see that.

    What do you have under "Managed Action"? I'm not seeing any machines listed or labels either?

    Take a look at this.
    http://jetscreenshot.com/

  • i took  the machine out of that list

  • wow this is a pretty cool tool thanks for sharing YOU ROCK dugullett
    http://my.jetscreenshot.com/demo/20120802-ua9a-462kb.jpg

    • Everything looks correct here. When you open your zip file you see just your CMD file and the msi. It's not still a txt is it?
      Also at the bottom of this screen if you click "show all" it will give you a status of the machines you deployed to. That way you can make sure it's even attempting.

  • yes i did the cmd file not txt in my status i am only seeing 2 attempts

    • Hmmm.... next I would try just using msiexec /i pweimclient_v4000.msi in your IM.CMD file. See what that will give you. It should bring up a prompt to install your software. The above script works on a machine when ran locally?

  • i know i can use that use that command bu i am trying to install this software with 0 users intervention

    • Right... just doing this to test. If you are getting the install prompt then there's something wrong in your command line. An extra space or something. This will just make sure that the actual push is working.

  • its working now i did have an extra space thanks a million for all your help dugullett are you ok to share your email address with me i would love to pick your brain

Please log in to comment
0

Use %~dp0 for the current path rather than using the servername and place the bat file in the same directory as the installer.

Answered 08/02/2012 by: piyushnasa
Red Belt

Please log in to comment
-1

msiexec /i "\\myserver\mysharfolder\pweimclient_v4000.msi" EIM_INPUT_SERVERNAMEORIP="192.168.5.8" EIM_INPUT_STANDARDPORT=7777 EIM_INPUT_TRUSTEDPORT=7778 EIM_INPUT_USETRUSTEDPORT=true INSTALLDIR="%PROGRAMFILES%\Passageways\Enterprise Instant Messenger" /qn

Answered 08/02/2012 by: jagadeish
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity