Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > How to include License.rtf in the ClickOnce before installation starts
 

How to include License.rtf in the ClickOnce before installation starts

Hi,

How to include a license.rtf in the ClickOnce deployment ??? I did not see any solution regarding this ?
Is this possible through ClickOnce ????

Or please suggest any other method ??????

Thanks in advance,
Luttapi  Wednesday, July 08, 2009 9:26 AM

The ClickOnce will not give you the ability to show the license before the installation starts. The only way to do that is to create a setup & deployment project that DOES do it, and push it as a prerequisite.

RobinDotNet


Click here to visit my ClickOnce blog!
RobinDotNet  Monday, July 13, 2009 5:07 AM
Add the file to your deployment by right-clicking on the project and selecting "Add Existing Item". After it's added, click on it and set Build Action = "Content" and set Copy To Output Directory to "Copy always".

When you deploy it, it will be included, and you can access it like this:

string PathToRtf = Path.Combine(System.Windows.Forms.Application.StartupPath, "myfile.rtf");

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Thursday, July 09, 2009 2:22 AM
Hi,

Thanks for the answer.

But I have some doubts to ask. I am using ClickOnce deployment for my VSTO Outlook AddIn (for Outlook 2007).
I did not includ any SetUp and Deployment project in my solution. I usually making the setup by choosing the Publish option when we right clickon the project.

Using this way, how can i show the license file before theinstallation starts ?????

Thanks in advance,
Luttapi  Thursday, July 09, 2009 4:52 AM
The only way I can think of to show the license.rtf before the application starts is to deploy a prerequisite that shows it. You would have to write a small app that shows the rtf file, and when the user okays it, then fire the ClickOnce deployment off. You could also have your add-in code show it, and if the user turns it down, disable itself. Keep some kind of config setting so you know whether or not they accepted it maybe? RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Thursday, July 09, 2009 9:10 AM

The ClickOnce will not give you the ability to show the license before the installation starts. The only way to do that is to create a setup & deployment project that DOES do it, and push it as a prerequisite.

RobinDotNet


Click here to visit my ClickOnce blog!
RobinDotNet  Monday, July 13, 2009 5:07 AM

You can use google to search for other answers

Custom Search

More Threads

• Beta 2 Click Once Deployment & Helpfiles
• Configuring ODBC connection in a Setup Project
• Is it possible ClickOnce without sandbox?
• How to close the blank browser popped by ClickOnce?
• Clickonce, Data files, and SQLExpress...What's going on here?
• ClickOnce Deployment on Windows XP Home
• Client Installation problems..
• delay in launching application
• ClickOnce deployment and Dotfuscator
• Error installing .Net Framework 2.0 from bootstrap