Showing posts with label ClickOnce. Show all posts
Showing posts with label ClickOnce. Show all posts

Thursday, April 2, 2009

NAnt/MSBuild ClickOnce publishing ‘publish.htm’

The secret to this is specifying in the properties passed to MSBuild either directly or via NAnt. There are two specific properties you need to get the publish.htm published:

CreateWebPageOnPublish true
WebPage publish.htm

You can specify these as command line parameters as follows:

/property:CreateWebPageOnPublish=true

/property:WebPage=publish.htm

Once you are passing these parameters to MSBUILD it will move your publish.htm up to your publish location. Note, that there are many more properties that you can specify in the same way. Take a look inside of your .csproj file Property/PropertyGroup for a list of the values. You can experiment with the GUI inside of Visual Studio and then see how the values change so you can tweak your MSBuild/NAnt script accordingly.

UPDATE: It turns out I'm wrong on this. The above solution does not auto-generate a publish.htm. More to follow.


Technorati Tags: ,,

Adding your own Pre-requisite installer to a ClickOnce app

STEPS

  • Download and install the Bootstrap Manifest Generator
  • Start a New Project and choose Package Manifest
  • Give your project a name and code (these can be the same)
  • Click on Project/Add Install File and choose your installer
  • Give a Display Name in the Install File settings
  • Build your project with Project/Build
  • On Vista this will ignore any properties about where it creates the file. Look for it in \Users\{username}\Documents\{Project Name}
  • Copy this to your packages location. Usually here: C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\

You should now be able to choose this in your Project Properties\Publish\Prerequisites list.

LINKS

Bootstrap Manifest Generator

Customising your ClickOnce deployment

Technorati Tags: ,,