Click here to Skip to main content
Click here to Skip to main content

Add your own (custom) prerequisite to "ClickOnce" application

By , 7 Oct 2006
 

Introduction

Hi All,

 

Here is some cool stuff to add your own (Custom) prerequisite to "ClickOnce" application.

Remember we can only add those prerequisite through “ClickOnce” which are by default in prerequisite list while publishing. To add our own prerequisite you need to have boot strapper package. Once created boot strapper package then it will automatically included into prerequisite list. To generate boot strapper can use “Bootstrapper Manifest Generator” tool. Follow the steps given below to add own boot strapper using “Bootstrapper Manifest Generator” tool.

1.      Download “Bootstrapper Manifest Generator” http://www.gotdotnet.com/workspaces/workspace.aspx?id=ddb4f08c-7d7c-4f44-a009-ea19fc812545

2.      Install “Bootstrapper Manifest Generator”.

3.      Open BMG (Bootstrapper Manifest Generator) you will see following screen.

Sample screenshot

4.      Select FileàNew will see following screen.

Sample screenshot

5.      Select “Package Manifest” and click on OK, you will see following screen.

Sample screenshot

6.   Type project name and click on “Add Installer File” icon top left you will see following     screen.

Sample screenshot

7.   Browse for file, you wish to add into prerequisite, as I added exe as prerequisite you can  choose as per your requirement.

8.      Click on Ok you will see following screen.

Sample screenshot

9.   Type display name and click on “Build” icon top left.

10.       Your prerequisite is been created, can see in prerequisite list as shown in following figure.

Sample screenshot 

11. All set select “Test” as prerequisite from above list and publish application.

NOTE – While creating custom prerequisite using “Bootstrapper Manifest Generator” you   can use lot many settings. I just showed possibility how to use custom prerequisite while using at production environment you must be careful.   

 

 

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Malpani Amol
Web Developer
India India
Member
I am a .NET developer cum designer. I work for Zensar Technologies Ltd. Pune (INDIA), I consult, I develop, I debug and besides that I speak at conferences and user groups and I also write. I have written some articles on WCF, WF, SSIS, Compression decompression, CLR Store Procedure, SQL Server Reporting Services 2005, Extended grid and lot more to count.
Reach to me on:-a.malpani@zensar.com

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
QuestionBootstrapper Manifest Generator Download URL ChangedmemberVerious15 Aug '12 - 6:18 
The URL of the Bootstrapper Manifest Generator has changed. The new URL is as follows:
http://archive.msdn.microsoft.com/bmg/
QuestionBMG For VS 2010membermicky1618631 Jul '12 - 0:10 
this sofware version is for VS 2008 but i want it's version for VS 2010
i want the bootstrapper for SqlExpress2008R2 with tools
can any one help me with that?
QuestionRemove Existing Sqlce version from pc when Click One Installation is startedmemberuditraj6318 Jul '12 - 4:15 
Hi , I want to uninstall existing sqlce from a pc where , i am running click one setup by C# programming please provide me solution ASAP thanks in advance.

QuestionBMG for VS 2010memberLavanyaz12 Dec '10 - 8:10 
Hi Amol,
 
Is there any bootstrapper Manifest Gen available for Vs 2010 and the Download link provided is not working any help is Appretiated.
 
Thanls
AnswerRe: BMG for VS 2010memberLuis Alonso Ramos9 Jun '11 - 6:48 
I downloaded the 2008 version from here. It will work for VS 2010, but you need to manually move the generated files to the new bootstrapper location (in my case, 64-bit Windows 7, C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages).
 
If you have VS open, you will have to restart it in order for your prerequisite to show up in the list.
Luis Alonso Ramos
Intelectix
Chihuahua, Mexico
 
Follow me on Twitter (@luisalonsoramos) or on my blog (www.luisalonsoramos.com)!

GeneralRe: BMG for VS 2010memberMember 151135514 Dec '11 - 3:27 
for some reason this feature has stopped working for me, it doesn't matter what I do to the folder content the same list of packages is displayed.
any idea how to fix it?
QuestionCheck .NET 3.5 SP1 is not Installedmembermohitisavailable2 Sep '10 - 2:49 
Good Article.
 
I implement this for .net framework 3.5 Sp1.
 
Please tell me how can i check this Sp1 is allready Install on Machine.
so setup should not Install this.
GeneralAdding PrerequisitememberMember 13026393 Jun '10 - 19:55 
I had some doubt regarding Bootstrap manifest. I need to add my own Prerequisite when it is not installed on my machine. Is there any way to skip the prerequisite when it is installed on the machine runtime? Thanks in advance.
sravan

GeneralBMG for VS2010membersudipta.india13 Apr '10 - 23:55 
Where can I download Bootstrapper Manifest Generator for Visual Studio 2010?
AnswerRe: BMG for VS2010memberJerome Vibert8 May '10 - 10:19 
You can usually find here the latest version of BMG : http://code.msdn.microsoft.com/bmg/Release/ProjectReleases.aspx?ReleaseId=1567[^]
Sorry, nothing for VS 2010 for the moment.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 8 Oct 2006
Article Copyright 2006 by Malpani Amol
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid