Installing MSI from command line.

Installing MSI from command line.

Postby vtec0 » 03.12.2014, 17:24

Hi,

So If I understand it correctly I just need to populate the "wsusoffline/client/software/msi" folder.

How do I trigger the installer to look here and install what I have in the folder.
I'd like to use it to trigger installation of a MSI with IE11 branding.

I'm not sure I have it working properly as I can see no mention of it being installed in the log.

I have read that for the GUI version you need to update the "UpdateInstaller.ini" and add the entry of your MSI.
How does this transpose to the command line version.

Thanks.
vtec0
 

Re: Installing MSI from command line.

Postby WSUSUpdateAdmin » 09.12.2014, 11:23

Hi vtec0,

sorry for delay.

If you pass "/instmsi" to DoUpdate.cmd, it'll install all MSI packages existing under ...\client\software\msi (and subfolders).
If you run the GUI (UpdateInstaller.exe), you'll find your MSI packages selectable on a separate tab item.
UpdateInstaller.exe then writes a file %SystemRoot%\Temp\wouselmsi.txt, which contains the file names of the selected packages, and which is evaluated by DoUpdate.cmd (line 1270ff.):
Code: Select all
rem *** Install MSI packages and custom software ***
if exist %SystemRoot%\Temp\wouselmsi.txt (
  echo Installing selected MSI packages...
  call TouchMSITree.cmd /instselected
  echo %DATE% %TIME% - Info: Installed selected MSI packages>>%UPDATE_LOGFILE%
  del %SystemRoot%\Temp\wouselmsi.txt
  set REBOOT_REQUIRED=1
) else (
  if "%INSTALL_MSI%"=="/instmsi" (
    echo Installing all MSI packages...
    call TouchMSITree.cmd /install
    echo %DATE% %TIME% - Info: Installed all MSI packages>>%UPDATE_LOGFILE%
    set REBOOT_REQUIRED=1
  )
)

Hope this helps.

Regards
T. Wittrock
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38

Re: Installing MSI from command line.

Postby vtec0 » 10.12.2014, 11:19

Thanks. Not sure if this is actually being passed with the switch /instmsi.

Code: Select all
10/12/2014 10:25:48.37 - Info: Starting WSUS Offline Update (v. 9.4.2)
10/12/2014 10:25:48.37 - Info: Used path "T:\client\cmd\" on <machinename> (user: <user>)
10/12/2014 10:25:48.37 - Info: Option /instielatest detected
10/12/2014 10:25:48.45 - Info: Option /updatecpp detected
10/12/2014 10:25:48.50 - Info: Option /instmssl detected
10/12/2014 10:25:48.51 - Info: Option /updatetsc detected
10/12/2014 10:25:48.53 - Info: Option /instdotnet4 detected
10/12/2014 10:25:48.58 - Info: Option /instwmf detected
10/12/2014 10:25:48.65 - Info: Option /autoreboot detected
vtec0
 


Return to Installation / Updating

Who is online

Users browsing this forum: No registered users and 6 guests