Application bootstrapping and deployment using PB.Net
This is an attempt at showing how to publish a PB.net app to a web server with click once deployment that will check for and install prerequisites. I found that the bootstrapper that comes with PB works fine for installing the PB runtime but fails for the .Net framework. Rather than deploying a “Hello World” app to illustrate this I’ve created an app with a simple WPF window with a media element that can play videos by dragging and dropping them onto the window. It has three buttons to play, pause and stop the video as well as volume and seek sliders. I found a C# example on the internet that does this and wanted to see if I could do it with PB. The two prerequisites required for this app are the .Net 4.0 framework and the PB.net runtime. I will show you how to configure the bootstrapper to install these.
Here are the prerequisites you’ll need…
1. PB.Net 12.5.1
2. The source code for this project (https://skydrive.live.com/#cid=D13D80A62EA55460&id=D13D80A62EA55460%21108 videodemo.pbl.zip)
3. An MSI of the PB.net runtime components (Can be made with PB Runtime packager that comes with PB). You should call it PBRuntime.msi for this example.
4. DotNetInstaller open source program. Can be found at http://dblock.github.io/dotnetinstaller/
5. A copy of the web installer exe from Microsoft. Can be found here: http://www.microsoft.com/en-us/download/confirmation.aspx?id=17851 . You should download and rename it to dotnetfx.exe.
Here’s a quick rundown of the steps I’m going to describe…
1. Configure the PB WPF project for deployment
2. Publish it to a server running Windows Server 2008 and IIS
3. Create the bootstrapper program that will install the prerequisites
4. Test the install
1. Configure the project for deployment
a. General Tab
ii. I hope this was helpful.