{"id":6954,"date":"2014-04-21T05:00:00","date_gmt":"2014-04-21T13:00:00","guid":{"rendered":"http:\/\/www.sapien.com\/blog\/?p=6954"},"modified":"2014-04-22T14:47:34","modified_gmt":"2014-04-22T22:47:34","slug":"from-script-to-server-deploying-solutions-with-primalscript-2014-part-4","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2014\/04\/21\/from-script-to-server-deploying-solutions-with-primalscript-2014-part-4\/","title":{"rendered":"From script to server &ndash; Deploying solutions with PrimalScript 2014 (Part 4)"},"content":{"rendered":"<p>Welcome back. As we previously discussed, PrimalScript 2014 has a few new options for the script packager and has added features for creating MSI databases and deploying your script solutions.<\/p>\n<p>If you have missed the previous three installments, use the links below to catch up.<\/p>\n<p><a href=\"http:\/\/wp.me\/p3tXTf-1Nb\" target=\"_blank\">From script to server \u2013 Deploying solutions with PrimalScript 2014 (Part 1)<\/a><br \/>\n<a href=\"http:\/\/wp.me\/p3tXTf-1NR\" target=\"_blank\">From script to server \u2013 Deploying solutions with PrimalScript 2014 (Part 2)<\/a><br \/>\n<a href=\"http:\/\/wp.me\/p3tXTf-1NX\" target=\"_blank\">From script to server \u2013 Deploying solutions with PrimalScript 2014 (Part 3)<\/a><\/p>\n<p>Today we are putting this all together and show you how to use this efficiently in your day-to-day operations.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image56\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/03\/image56.png\" alt=\"image56\" width=\"450\" height=\"142\" border=\"0\" \/><\/p>\n<p><strong>Setup<\/strong><\/p>\n<p>Head over to the Deploy tab and apply all the settings you need. These setting will be stored per script in a .psbuild file.<br \/>\n<img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/03\/image7.png\" alt=\"image\" width=\"226\" height=\"68\" border=\"0\" \/><br \/>\nDon\u2019t delete these files or your settings will be lost. Normally you don\u2019t need to worry about these files, but we will revisit them for an automated build and deploy scenario.<\/p>\n<p><strong><br \/>\nPackage, build installers and deploy<\/strong><\/p>\n<p>While you are editing your scripts you don\u2019t want to deviate too often from the \u201cHome\u201d tab. Maybe you have the ribbon hidden most of the time anyway. That is why we added some of the \u201cDeploy\u201d tab functionality to the \u201cHome\u201d tab.<br \/>\n<img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/03\/image8.png\" alt=\"image\" width=\"255\" height=\"168\" border=\"0\" \/><\/p>\n<p>You can package, build installers and deploy with your current settings right here. Additional commands are available in the dropdown menus for these new buttons.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/03\/image9.png\" alt=\"image\" width=\"257\" height=\"124\" border=\"0\" \/><\/p>\n<p>The old hotkey for just creating an executable package is still here: Ctrl+F7.<\/p>\n<p>We have also added some more hotkeys for you for the main build commands:<br \/>\nShift + F7: Create installer<br \/>\nCtrl+Shift + F7: Deploy<br \/>\nF7: Build all<\/p>\n<p>\u201dBuild all\u201d will execute every single step in sequence. It will create an executable, pack it with your other files into a Windows Installer database (MSI) and copy it to your target destination. Along that process it will also execute any other pre- and post-package commands you have defined and it will also execute any deployment commands.<\/p>\n<p>So if you have a change to your most important script solutions, make the change to your script, hit F7 and watch PrimalScript do all the work for you.<\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/03\/image10.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/03\/image_thumb2.png\" alt=\"image\" width=\"640\" height=\"347\" border=\"0\" \/><\/a><\/p>\n<p>With one keystroke your updated script was packaged, wrapped into an installer and deployed to your network.<\/p>\n<p><strong>The automated build tool<br \/>\n<\/strong><br \/>\nSometimes you don\u2019t want to roll out things one thing at a time. Most likely you have some kind of process to roll out your business processes. Quite frequently you will do that based on a scheduled task, because it is not always only about copying a few files here or there. Our PSBuild tools allow you to incorporate our packaging, installer and deployment steps into your process.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/03\/image11.png\" alt=\"image\" width=\"633\" height=\"164\" border=\"0\" \/><\/p>\n<p>This is where the aforementioned .psbuild files come back into play.Run \u2018PSBuild \/BUILD myscript.ps1.psbuild\u2019 to do all the things you just pushed the \u201cBuild all\u201d for, just from the command line and integrated into your process. You can use the other options (\/PACKAGE, \/MSI, \/DEPLOY) to perform the individual steps if you need to.<\/p>\n<p>&nbsp;<\/p>\n<p>Questions? Comments? Suggestions? Head on over to our <a href=\"http:\/\/www.sapien.com\/forums\/viewforum.php?f=5\" target=\"_blank\">support forum<\/a> and and let\u2019s hear it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome back. As we previously discussed, PrimalScript 2014 has a few new options for the script packager and has added features for creating MSI databases and deploying your script solutions. If you have missed the previous three installments, use the links below to catch up. From script to server \u2013 Deploying solutions with PrimalScript 2014 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[410,21,632],"tags":[885,880,881,548,437,28,800,884],"class_list":["post-6954","post","type-post","status-publish","format-standard","hentry","category-primalscript-software-news","category-software-news","category-whats-new-software-news","tag-automated-build","tag-deploy","tag-executable","tag-msi","tag-packager","tag-powershell","tag-primalscript-2014","tag-psbuild"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/6954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=6954"}],"version-history":[{"count":13,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/6954\/revisions"}],"predecessor-version":[{"id":7281,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/6954\/revisions\/7281"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=6954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=6954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=6954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}