install custom msi package with command line parameters

install custom msi package with command line parameters

Postby vladano » 25.02.2016, 10:47

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
vladano
 
Posts: 7
Joined: 25.02.2016, 10:34

Re: install custom msi package with command line parameters

Postby aker » 25.02.2016, 19:50

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
Wer Rechtschreibfehler findet, darf sie behalten oder an den Meistbietenden versteigern. / Everybody finding a misspelling is allowed to sell it.
aker
aker
 
Posts: 2765
Joined: 02.03.2011, 15:32

Re: install custom msi package with command line parameters

Postby Cababs » 29.02.2016, 20:45

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?
Notable Achievements
CompTIA A+
HNC Computing
Cababs
 
Posts: 145
Joined: 22.12.2013, 01:17

Re: install custom msi package with command line parameters

Postby aker » 29.02.2016, 21:47

@Cababs
I'm not sure, but I think, wsusou just passes standard parameters to msiexec.
For custom ones, you have to use the script.
Wer Rechtschreibfehler findet, darf sie behalten oder an den Meistbietenden versteigern. / Everybody finding a misspelling is allowed to sell it.
aker
aker
 
Posts: 2765
Joined: 02.03.2011, 15:32

Re: install custom msi package with command line parameters

Postby Cababs » 01.03.2016, 00:29

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.
Notable Achievements
CompTIA A+
HNC Computing
Cababs
 
Posts: 145
Joined: 22.12.2013, 01:17

Re: install custom msi package with command line parameters

Postby Cababs » 13.10.2016, 00:06

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.
Last edited by Cababs on 08.01.2017, 18:28, edited 2 times in total.
Notable Achievements
CompTIA A+
HNC Computing
Cababs
 
Posts: 145
Joined: 22.12.2013, 01:17

Re: install custom msi package with command line parameters

Postby boco » 13.10.2016, 02:27

that is Adobe Reader, Flash and Java.
Wow, the three biggest security threats to a Windows PC - in one sentence! :?
Microsoft update catalog: http://catalog.update.microsoft.com/v7/site/
Windows Install media creator: https://support.microsoft.com/en-us/help/15088/windows-create-installation-media
boco
 
Posts: 1805
Joined: 24.11.2009, 17:00
Location: Germany

Re: install custom msi package with command line parameters

Postby Cababs » 13.10.2016, 12:18

I know what you mean.
However this is what people ask for.

Anyway if its good enough for business its good enough for me
Notable Achievements
CompTIA A+
HNC Computing
Cababs
 
Posts: 145
Joined: 22.12.2013, 01:17

Re: install custom msi package with command line parameters

Postby Cababs » 04.09.2017, 17:48

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?
Notable Achievements
CompTIA A+
HNC Computing
Cababs
 
Posts: 145
Joined: 22.12.2013, 01:17

Re: install custom msi package with command line parameters

Postby Cababs » 14.09.2017, 23:13

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?
Notable Achievements
CompTIA A+
HNC Computing
Cababs
 
Posts: 145
Joined: 22.12.2013, 01:17


Return to Installation / Updating

Who is online

Users browsing this forum: No registered users and 5 guests