Can I automate package studio?

Solved
DK
Dean K
Lucas Tree Experts

Is it possible to script package studio to automatically build a package.  I can automate uploading and editing profiles via the API, but I can't find a way to use package studio with a command line to build a new package.  Am I missing something?

6 years ago
Android
ANSWERS
MD
Matt Dermody Diamond Contributor
6 years ago

There is an executable you can get from SOTI support that will allow you to build Packages from the command line. From the readme file:

Command-line MobiControl Package Utility


To build a package project, Run : PkgUtil -b <mcp_file>

Solution
DK
Dean K
6 years ago

Excellent, thanks for that.

SB
Simon Breuer
6 years ago

And now there's still missing a possibility to automatically upload the packages to MobiControl. Any ideas on that?

MD
Matt Dermody Diamond Contributor
6 years ago

I think for that you'd need to leverage the available APIs

S
Scott
6 years ago

OK, how did you know that or find that out?

MD
Matt Dermody Diamond Contributor
6 years ago

Spending way too much time on this forum...

S
Scott
6 years ago

Yeah...  Opened a case to request the package and I get the response:

The utility that you are referring to is an internal only and is not provided to customers. Please let me know your use case in detail to see if we can achieve it in some other way.

How did you get it?

DK
Dean K
6 years ago

Also just received the same reply which is very sad.  Everything else can be automated with the exception of that one step, unless you convince someone to get you an internal tool.

WW
Will Worland
6 years ago

I recommend escalating the request up to your TAM/Account Manager if you aren't able to get the utility via support. 

We have fully automated package build/upload, and profile assignment as well as full continuous dev/deploy for our lock screen code using; Git, Powershell, Jenkins, Artifactory, and Soti API's.  It's an engineering game changer and well worth the effort.

DK
Dean K
6 years ago

Yep, that was the right answer. 

Your solution is where we are headed with this so nightly dev can automatically deploy to the test group and at some point automate staged production pushes as well.

S
Scott
6 years ago

Hey Will,

What version of MC are you using?  I had done all of the automation but ran into a couple of issues when trying to create the profile.

  • No mechanism to modify permissions on the created profile (I need a user group added)
  • Fails if a profile by the same name existed previously, even though it has been deleted (a bug, I believe, and I have an open case with SOTI on this.)

Perhaps the permissions feature has been added but it's currently a show stopper for me.

DV
Dennis Vdh
6 years ago

I succeeded in obtaining "CMD Package Utility" and it actually works. 


Would posting it here, be in violation of any terms ?
Anyway, send me a PM if you want them.

MD
Matt Dermody Diamond Contributor
6 years ago

I got the utility from the forums originally but then I could never find the original post again so it may have been deleted. I would just DM it for the time being. 

DV
Dennis Vdh
6 years ago

Found the original post... 

https://discussions.soti.net/thread/automation-of-building-pcg-file/


with a download link...

https://drive.google.com/open?id=1rBnSia1bLCrBTaSKqRaS6m2OVzAsrnE1