Deploy-Application.exe command line parameters

Topics: Archive - General
Jun 12, 2014 at 5:42 PM
I'm curious about how to pass parameters to the .ps1 script from the executable.
What options are available to the executable?
Jun 12, 2014 at 6:28 PM
Hey there,

Quite simple. Just add -MyParameter "Value" at the end of the command-line, and you can add whatever parameters you wish. You can also specify an alternate .ps1 file using -File MyFile.ps1. Otherwise, Deploy-Application.ps1 is assumed.

So for example, my Office 2013 install, when i want just to install additional components, looks as follows:

Deploy-Application.exe -addComponentsOnly -addSharepointWorkspace

Hope this helps. Dan
Jun 12, 2014 at 7:04 PM
I was getting myself confused because the help for the .ps1 file has the following as an example:

Deploy-Application.ps1 -Uninstall
I assumed the exe would just pass thru parameters, but when I put the -Uninstall on the command line, it did not uninstall.

Rather that actually read thru the .ps1 (my mistake), I assumed that the exe had different options.

So I guess I need to file a bug report that the inline help be modified to remove the hyphen from the example.

Thanks for the great toolkit. Looking forward to using it quite a bit.