Page 1 of 1

install custom msi package with command line parameters

PostPosted: 25.02.2016, 11:47
by vladano
Hi,
I'm interesting is it possible to use /instmsi parameter to install custom .msi or .exe package with custom command line switches?

For example:
myApp.msi /qn /l*v myApp.log R="test1,test2" ROLES="role1,role2"
or
myAppTest.exe /A /B /L=myAppTest.log

Is it possible, can you give me some examples how to use it ?

Best Regards,
Vladan

Re: install custom msi package with command line parameters

PostPosted: 25.02.2016, 20:50
by aker
You may use the script .\client\software\custom\InstallCustomSoftware.cmdt. Rename it from ".cmdt" to ".cmd" and enter your setup commands.

Remember to add the command
Code: Select all
msiexec /i
before the path of your .msi-files.

Example
Code: Select all
msiexec /i C:\OEM\myTestMSI.msi
C:\OEM\driver1\setup.exe /q /norestart

Re: install custom msi package with command line parameters

PostPosted: 29.02.2016, 21:45
by Cababs
can this be used with .exes?
I assume it would install all programs within this single file.

why would you need a custom .Msi installer when WOU support .MSI installers?

Re: install custom msi package with command line parameters

PostPosted: 29.02.2016, 22:47
by aker
@Cababs
I'm not sure, but I think, wsusou just passes standard parameters to msiexec.
For custom ones, you have to use the script.

Re: install custom msi package with command line parameters

PostPosted: 01.03.2016, 01:29
by Cababs
I was thinking that InstallCustomSoftware.cmd would install whatever is placed in it provided that the silent/passive switches are present.

I regularly install the Adobe CS suite and normally have about 1.5GB of updates to download. I was thinking that I use wget to download the updates and then use InstallCustomSoftware.cmd to install them.

for what I have experienced is that I have to keep then out of WOU and then run them separately. maybe something I could integrate into a MDT environment.

Re: install custom msi package with command line parameters

PostPosted: 13.10.2016, 01:06
by Cababs
I find that this is relevant again.

when ever I use WOU to put updates on a PC I find myself always installing software. that is Adobe Reader, Flash and Java. now since WLE is not used by default within WOU 10.8, I have placed it in the custom installer and set it to install OneDrinve, PhotoGallery, MovieMaker and family safety. One thing that I didn't like about WLE is that messenger was still being offered while Skype took its place. I have added Skype to my custom installs.

I have a small suite of common programs which other people like to use. they are:
7zip
Adobe Reader
Adobe Flash
Java
Skype
VLC
WLE
Google Chrome

This may be relevant to only me but I feel I wanted to share this with you.

Downloadlist.txt
Code: Select all
http://javadl.oracle.com/webapps/download/AutoDL?BundleId=216432
http://javadl.oracle.com/webapps/download/AutoDL?BundleId=216434

REM ftp://ftp.adobe.com/pub/adobe/reader/win/11.x/11.0.10/en_US/AdbeRdr11010_en_US.exe
REM ftp://ftp.adobe.com/pub/adobe/reader/win/11.x/11.0.18/misc/AdbeRdrUpd11018.msp
REM http://download.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_23_active_x.msi
REM http://download.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_23_plugin.msi

REM http://airdownload.adobe.com/air/win/download/23.0/AdobeAIRInstaller.exe

REM http://ftp.free.org/mirrors/videolan/vlc/2.2.4/win32/vlc-2.2.4-win32.exe
REM http://ftp.free.org/mirrors/videolan/vlc/2.2.4/win64/vlc-2.2.4-win64.exe

REM http://www.7-zip.org/a/7z1604.exe
REM http://www.7-zip.org/a/7z1604-x64.exe
REM http://www.7-zip.org/a/7z1604.msi
REM http://www.7-zip.org/a/7z1604-x64.msi

REM http://dl.google.com/edgedl/chrome/install/GoogleChromeStandaloneEnterprise.msi
REM http://dl.google.com/edgedl/chrome/install/GoogleChromeStandaloneEnterprise64.msi

REM http://wl.dlservice.microsoft.com/download/C/1/B/C1BA42D6-6A50-4A4A-90E5-FA9347E9360C/en/wlsetup-all.exe
REM http://get.skype.com/go/getskype-windows

REM http://notepad-plus-plus.org/repository/7.x/7.0/npp.7.Installer.exe
REM http://notepad-plus-plus.org/repository/7.x/7.0/npp.7.Installer.x64.exe

REM http://download.piriform.com/rcsetup153.exe
REM http://download.piriform.com/dfsetup221.exe
REM http://download.piriform.com/ccsetup522.exe
REM http://download.piriform.com/spsetup129.exe



InstallCustomSoftware.cmd
Code: Select all
@ECHO OFF

REM Check Windows Version
ver | findstr /i "5\.0\." > nul
IF %ERRORLEVEL% EQU 0 goto ver_2000

ver | findstr /i "5\.1\." > nul
IF %ERRORLEVEL% EQU 0 goto ver_XP

ver | findstr /i "5\.2\." > nul
IF %ERRORLEVEL% EQU 0 goto ver_2003

ver | findstr /i "6\.0\." > nul
IF %ERRORLEVEL% EQU 0 goto ver_Vista

ver | findstr /i "6\.1\." > nul
IF %ERRORLEVEL% EQU 0 goto ver_Win7

ver | findstr /i "6\.2\." > nul
IF %ERRORLEVEL% EQU 0 goto ver_Win8

ver | findstr /i "6\.3\." > nul
IF %ERRORLEVEL% EQU 0 goto ver_Win81

ver | findstr /i "10\.0\." > nul
IF %ERRORLEVEL% EQU 0 goto ver_Win10
goto warn_and_exit


:ver_Win10
ver
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
   :64BIT
   echo 64-bit...
   echo %TIME% - ADOBE AIR 23
   AdobeAIRInstaller.exe -silent

   echo %TIME% - ADOBE READER 11.10
   AdbeRdr11010_en_US.exe /sPB

   echo %TIME% - ADOBE READER 11.18 UPDATE
   AdbeRdrUpd11018.msp /passive
   GOTO END

   :32BIT
   echo 32-bit...
   echo %TIME% - ADOBE AIR 23
   AdobeAIRInstaller.exe -silent

   echo %TIME% - ADOBE READER 11.10
   AdbeRdr11010_en_US.exe /sPB

   echo %TIME% - ADOBE READER 11.18 UPDATE
   AdbeRdrUpd11018.msp /passive
   GOTO END


:ver_Win81
ver
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
   :64BIT
   echo 64-bit...
   GOTO END

   :32BIT
   echo 32-bit...
   GOTO END

:ver_Win8
ver
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
   :64BIT
   echo 64-bit...
   GOTO END

   :32BIT
   echo 32-bit...
   GOTO END


:ver_Win7
ver
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
   :64BIT
   echo 64-bit...
   echo %TIME% - ADOBE AIR 23
   AdobeAIRInstaller.exe -silent

   echo %TIME% - ADOBE READER 11.10
   AdbeRdr11010_en_US.exe /sPB

   echo %TIME% - ADOBE READER 11.18 UPDATE
   AdbeRdrUpd11018.msp /passive
   
   echo %TIME% - ADOBE Shockwave 12
   sw_lic_full_installer.exe /S

   echo %TIME% - JAVA 8.111 x86
   jre-8u111-windows-i586.exe /s
   
   echo %TIME% - JAVA 8.111 x64
   jre-8u111-windows-i586.exe /s

   echo %TIME% - vlc-2.2.4-win64
   vlc-2.2.4-win32.exe /L=1033 /S

   echo %TIME% - Installing Skype
   SkypeSetupFull.exe /VERYSILENT /SP- /NOCANCEL /NORESTART /SUPPRESSMSGBOXES /NOLAUNCH

   echo %TIME% - Installing Windows Essentials 2012
   wlsetup-all.exe /AppSelect:Familysafety,Mail,MovieMaker,wlsync /noToolbarCEIP /noSearch /noHomepage /noMU /noLaunch /q
   GOTO END

   :32BIT
   echo 32-bit...
   echo %TIME% - ADOBE AIR 23
   AdobeAIRInstaller.exe -silent

   echo %TIME% - ADOBE READER 11.10
   AdbeRdr11010_en_US.exe /sPB

   echo %TIME% - ADOBE READER 11.18 UPDATE
   AdbeRdrUpd11018.msp /passive

   echo %TIME% - ADOBE Shockwave 12
   sw_lic_full_installer.exe /S

   echo %TIME% - JAVA 8.111 x86
   jre-8u111-windows-i586.exe /s

   echo %TIME% - vlc-2.2.4-win32
   vlc-2.2.4-win32.exe /L=1033 /S

   echo %TIME% - Installing Skype
   SkypeSetupFull.exe /VERYSILENT /SP- /NOCANCEL /NORESTART /SUPPRESSMSGBOXES /NOLAUNCH

   echo %TIME% - Installing Windows Essentials 2012
   wlsetup-all.exe /AppSelect:Familysafety,Mail,MovieMaker,wlsync /noToolbarCEIP /noSearch /noHomepage /noMU /noLaunch /q
   GOTO END


:ver_Vista
ver
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
   :64BIT
   echo 64-bit...
   GOTO END

   :32BIT
   echo 32-bit...
   echo %TIME% - ADOBE AIR 23
   AdobeAIRInstaller.exe -silent

   echo %TIME% - ADOBE READER 11.10
   AdbeRdr11010_en_US.exe /sPB

   echo %TIME% - ADOBE READER 11.18 UPDATE
   AdbeRdrUpd11018.msp /passive

   echo %TIME% - ADOBE Shockwave 12
   sw_lic_full_installer.exe /S

   echo %TIME% - JAVA 8.111 x86
   jre-8u111-windows-i586.exe /s

   echo %TIME% - vlc-2.2.4-win32
   vlc-2.2.4-win32.exe /L=1033 /S

   echo %TIME% - Installing Skype
   SkypeSetupFull.exe /VERYSILENT /SP- /NOCANCEL /NORESTART /SUPPRESSMSGBOXES /NOLAUNCH
   GOTO END

:ver_2003
ver
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
   :64BIT
   echo 64-bit...
   GOTO END

   :32BIT
   echo 32-bit...
   GOTO END


:ver_XP
ver
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
   :64BIT
   echo 64-bit...
   GOTO END

   :32BIT
   echo 32-bit...
   echo %TIME% - ADOBE AIR 23
   AdobeAIRInstaller.exe -silent

   echo %TIME% - ADOBE READER 11.10
   AdbeRdr11010_en_US.exe /sPB

   echo %TIME% - ADOBE READER 11.18 UPDATE
   AdbeRdrUpd11018.msp /passive

   echo %TIME% - ADOBE Shockwave 12
   sw_lic_full_installer.exe /S

   echo %TIME% - JAVA 8.111 x86
   jre-8u111-windows-i586.exe /s

   echo %TIME% - vlc-2.2.4-win32
   vlc-2.2.4-win32.exe /L=1033 /S

   echo %TIME% - Installing Skype
   SkypeSetupFull.exe /VERYSILENT /SP- /NOCANCEL /NORESTART /SUPPRESSMSGBOXES /NOLAUNCH
   GOTO END


:ver_2000
ver
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
   :64BIT
   echo 64-bit...
   GOTO END

   :32BIT
   echo 32-bit...
   GOTO END


:warn_and_exit
echo Machine OS cannot be determined.

:END



not bad for 12:30 in the morning whilst being extremely tired.

Re: install custom msi package with command line parameters

PostPosted: 13.10.2016, 03:27
by boco
that is Adobe Reader, Flash and Java.
Wow, the three biggest security threats to a Windows PC - in one sentence! :?

Re: install custom msi package with command line parameters

PostPosted: 13.10.2016, 13:18
by Cababs
I know what you mean.
However this is what people ask for.

Anyway if its good enough for business its good enough for me

Re: install custom msi package with command line parameters

PostPosted: 04.09.2017, 18:48
by Cababs
my software install works great.

however i have added avg free (OFFLINE installer) and it does not copy over when i create the iso. are there limits on what you can add to \software?

Re: install custom msi package with command line parameters

PostPosted: 15.09.2017, 00:13
by Cababs
I have noticed that the custom software installs on every restart when WOU is set to automatically restart.
i am not sure if it re-installs each program or it skips it because it is already installed.
some software requires other windows components such as DotNet and CPP to install. so it would fail without these.

if its not possible then thats fine. it installs the programs i want anyway

can this be changed so it installs custom software only once, preferably at the end of the install run on the last restart?