I am trying to create a simple installer program and wanted to insert a license agreement.
I have added a new license dialog, then added the license file in RTF format to the installer project and specified the LicenseFile property of the License Agreement Dialog box.
I rebuilded the whole project and still did not see the license text shows up in the dialog. No build errors or warning are reported.
What could be wrong?
Thanks in advance
Thread moved to the appropriate forum.
Interesting. I've never had this. you are sure that there is text in the license file? Usually it would complain if there was no file to be found but obviously seems like you attached it appropriately.
What happens if you create a new project and do the same thing, just add the license agreement.
I already have both the license file added to the setup project as well as the program itself.
So the setup project view looks like this:
- Detected Dependencies
- Content Files from MyProgram (Active)
- Primary output from MyProgram (Active)
I can't reproduce this - works fine in VS 2005 setup projects. I added the license agreement dialog and in the LicenseFile property browsed to my RTF file.
Are you sure the RTF file is a valid RTF-formatted file? I'm wondering if that's the issue.
- Proposed as answer by Un-named Saturday, May 21, 2011 7:24 AM
This issue exists in VS 2010 SP1 too. Renaming License.txt to License.rtf won't work. You need to save the file explicitly in RTF format.
Weird why does VS 2010 SP1 even allows user to select a .txt file in the first place. Should be fixed in some service pack.