/build/static/layout/Breadcrumb_cap_w.png

Having trouble with getting an MSI pushed out. K1000

I have an msi file which is at \\server\share\mymsi.msi

I have a batch file that sits in the same location \\server\share.

I can double click my batch file and it opens up a command prompt and I see "V:\folder\folder msiexec /i mymsi.msi /quiet" in the command prompt window.  

It runs fine and the software is installed.  

When I attempt to use K1000 to do this same thing, it fails.  

I tried a managed install first, and I found that because it uses "system" account it was failing or at least that is what I thought.  (I used psexec to open a prompt as system account and when I try to run the install from there it will not run)

So the answer was supposed to be to switch to using an online Kscript because you could configure some credentials to run under rather than SYSTEM account.  So I configured it to run under DOMAIN ADMIN credentials... 

My script has the box checked to "allow run without a logged-in user"

It looks like this..

verify 1.  launch "\\server\share\mybatchfile.bat" with params ""

That's it... The batch file itself contains "msiexec /i mymsi.msi /quiet"   (the msi file is in the same directory as the batch so it works fine like this.  I've tried both ways with the entire path spelled out and it still doesn't work.  

What am I missing?  





0 Comments   [ + ] Show comments

Answers (2)

Posted by: akmagnum 6 years ago
Red Belt
1

I don't see why you are not uploading the MSI into the software inventory

and then using the managed install with the parameters you need.

But if you want to go the scripting way.....

Why not Zip up the MSI and the batch file together and upload it to the k1 as

a dependency.

then in the Task section "on success section" ------> launch program

leave the parameters empty, as you have them in the bat file.

I think it should work



Comments:
  • I have tried uploading the MSI and while that actually does work and the software gets installed, there is a problem that is left over... Which is that the app then seems to point to a non existent SQL server and it won't actually launch and work.

    There is an INI file in the share along with the MSI and it seems to list the SQL server that is used for the installation. I don't know how it all works together, but basically if you install the msi from that folder it works and is pointed at the proper SQL server.

    I could try uploading the msi and the ini file together but not sure if that will work. - theviking28 6 years ago
    • Yes.. Put all the files that work in your test run into a zipped folder. Don't forget........zip the contents....NOT the folder.
      Try again as I said earlier, uploading as a dependency and running the bat file. - akmagnum 6 years ago
Posted by: rad33k 6 years ago
Fourth Degree Brown Belt
0
Usually system account can't access network shares because of lack of permissions. I would suggest to set Read/Execute for Everyone's group on "\\server\share".
Additionally, it is recommended to use the full paths and create MSI installation log files for further investigation.

<Install.bat>
msiexec /i "%~dp0mymsi.msi" /qn /L*v "C:\Windows\Logs\MyMSI_Install.log   "

Comments:
  • If you read me initial post I changed from Managed install to online kscript. I then used domain admin credentials.

    Everyone group already has full control on the share and all files and folders within.

    I will try the %~dp0 next. - theviking28 6 years ago
 
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