[Powershell Commander] Using PowerShell to publish OutSystems Factory
Question
Forge component by Danny Prager

Greetings all and hope you guys are well,

Here is what I intend to trigger automatically:

Some questions:

I suppose we must install PowerShell in our DEV server? How can I do it?

I suppose our DEV server must have "OSPTool.com" in the "C:\Program Files\Common Files\OutSystems\11\" folder? How can I do it?

Thanks!

Hi YS,

Nice implementation. Depending on the OS you have Outsystems running on powershell should already be installed. if not..

https://docs.microsoft.com/en-us/powershell/scripting/windows-powershell/install/installing-windows-powershell?view=powershell-7.1

The powershell commandline runs under IIS_IURS by default. So if you want to access another location check if the IIS_IUSR had sufficient permissions. If not, create a new user with sufficient rights and run de commander with those credentials.


Outsystems sets the default location of the osp tool.

https://success.outsystems.com/Documentation/11/Setting_Up_OutSystems/Unattended_Installation_and_Upgrade/Solution_Pack_Tool_(OSPTool)_Command_Line_Reference





Thanks Danny!


We indeed have it installed on server. What I did to confirm:

Hi Danny,


Seems like OutSystems doesn't allow it! Haha:

Champion

Hi YS,

Yes, Your app is running at the server-side, So if you want to execute OSPTool, then you should install Power Shell and OSPTool on the server.

I also already read your previous post, I can't understand what do you want to achieve.

Where is your osp/oap file? 

Regards

Hi Tom!

I'm trying to publish my OutSystems Factory using command line. Reference:

https://success.outsystems.com/Documentation/11/Setting_Up_OutSystems/Unattended_Installation_and_Upgrade/Solution_Pack_Tool_(OSPTool)_Command_Line_Reference

Do you know how to write this in PowerShell?:

"C:\Program Files\Common Files\OutSystems\11\OSPTool.com" /PublishFactory <hostname> <username> <password>

Thanks!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.