/build/static/layout/Breadcrumb_cap_w.png

New-AppvSequencerPackage -Installer variable silent installation

When creating an app-v package using powershell with an MSI as installer, is it possible without any additional scripts (like a bat or cmd file) to run/install the MSI silently?

For example:

New-AppvSequencerPackage –Name “Microsoft Orca” –Path “C:\Packages” –Installer “C:\SourceFiles\Orca45.msi” –PrimaryVirtualApplicationDirectory “C:\Program Files\Microsoft Orca”

^ Is the example from the sequencing guide, which runs the MSI in UI mode.

I know that you can use a bat/cmd file as "installer" which in turn runs the MSI silently, but is it possible to do it from the powershell command line immediately?

Thanks in advance,

 

Celahir


0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: rileyz 11 years ago
Red Belt
1

Wow, never knew you could even do that in powershell.

If you do it from the GUI, you can use

msiexec /i <name of app.msi> /qb
In the command line to install the program, hope you know what I mean.

 

Guess this wont help if your using powershell, could you try and throw a switch into the “C:\SourceFiles\Orca45.msi”?

Like “msiexec.exe /i C:\SourceFiles\Orca45.msi /qb”
The above is dependent powershell knowing where msiexec is of course.

Might need to jiggle the syntax around like
"misexec /i “C:\SourceFiles\Orca45.msi”? /qb"

Err, that looks horrible and likely not to work :/


Comments:
  • As far as I can find its not possible to give any arguments apart from the installer location, I've solves this by creating a CMD file that runs the MSI with silent switches and running the cmd file as installer argument. - Celahir 11 years ago
  • Lame, in referance to PoSH. Ive ran into problems with powershell as ive tried to switch from the old CMD, but it seems to work better handling msiexec calls etc. But powershell is so funky. Glad you have a workaround, all be it not as awesome as you would of hope.

    Could write your own function? (; - rileyz 11 years ago
  • I'm currently writing a powershell script that in combination with a vbscript allows me to batch convert MSIs to AppV using virtualbox and reverting to a clean machine after every AppV - Celahir 11 years ago
    • How did you go with this, making a script to auto convert? I'm thinking about making something similar like that now. - rileyz 8 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
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