Page 1 of 1

Can I use PowerShell Studio build Installer from a command line

Posted: Fri Oct 25, 2019 8:57 am
by MaureenC
Product, version and build: PowerShell Studio 2019 version 5.6.267 (64 bit vsn)
Operating system: Windows 10 64bit

I'm trying to see if I can automate my devOps pipeline with PowerShell Studio. Is there a way to invoke the Settings and Build capabilities for the Deploy Installer and/or Packager features from a script?

Thanks

Re: Can I use PowerShell Studio build Installer from a command line

Posted: Fri Oct 25, 2019 9:58 am
by Alexander Riedel
Yes, in the install folder of PowerShell Studio you find a command line application called 'psbuild.exe'

SAPIEN Package and Deploy Tool 4.1 (c) 2005 - 2019 SAPIEN Technologies, Inc.

Usage:

psbuild /<option> <settings file>
where <option> is one of

PACKAGE
MSI
DEPLOY
BUILD

A settings file is the .psbuild file you find alongside your script.

If this is a forms project though this won't work because the resulting script is generated by Powershell Studio at build time.
I do believe there are command line parameters for Powershell Studio itself, but I will have to check with them, if that is what you need to do.

Re: Can I use PowerShell Studio build Installer from a command line

Posted: Fri Oct 25, 2019 11:13 am
by MaureenC
I will definitely try this over the weekend and let you know.

Thanks so much!
Maureen

Re: Can I use PowerShell Studio build Installer from a command line

Posted: Sat Oct 26, 2019 1:33 pm
by MaureenC
These worked great for my MSI and EXE use cases!

'C:\Program Files\SAPIEN Technologies, Inc\PowerShell Studio 2019\PSBuild.exe' /msi 'D:\demoMSI\DemoHelloWorld.ps1.psbuild'

'C:\Program Files\SAPIEN Technologies, Inc\PowerShell Studio 2019\PSBuild.exe' /package 'D:\demoEXE\DemoHelloWorld.ps1.psbuild'

Thanks again so much