How to add Licence agreement in the setup project - vb.net

I wish to add a licence agreement to my setup files (using setup project)
If the user does not accept it, the setup should be cancelled.
How to do it?

You can easily add a "License Agreement" dialog to a setup project created in Visual Studio.
To do this, follow these steps:
With your setup project open in Visual Studio, right-click on the project in the Solution Explorer, point to "View", and click "User Interface".
Right-click on the "Start" group, and select "Add Dialog" from the pop-up menu.
In the "Add Dialog" dialog, click the "License Agreement" icon and click "OK". A license agreement form will be added to your installer under the "Start" group.
Drag and drop the "License Agreement" dialog in the list to rearrange where it appears in the setup sequence.
With the "License Agreement" dialog selected, use the "Properties Window" to customize its options as needed for your application. The most important thing to set here is the "LicenseFile" property, which specifies the text file that contains the license agreement you want to be displayed.If you cannot find the text file that contains your license agreement, you need to add it to your setup project. To do this, select the "Browse" option from the "LicenseFile" drop-down box. Then, in the dialog that appears, double-click on the location where you want your license agreement to be copied to the target machine (presumably the "Application Folder"), and then click the "Add File" button. Your license agreement should be named "license.rtf", and must be encoded as an RTF file.

Related

How to publish/deploy visual studio project as an installer

I just finished developing a system for a company. It will be used on 50+ PCs.
The only problem left is the installation process. I don't think it's efficient to manually copy the whole folder of the project e.g. on Documents folder and create a Desktop shortcut of the .exe file on every PC.
If possible, I'd like to compress (not sure if this is the right term for it) the whole project folder into a single setup/installer which will place it in the Documents folder and create a Desktop shortcut of the .exe file. Is there a way to do that? Thanks.
First of all install this.left
https://visualstudiogallery.msdn.microsoft.com/f1cc3f3e-c300-40a7-8797-c509fb8933b9
Once you have this installed,
go to Solution Explorer and right click "Solution "YOUR PROGRAMS NAME" go down to "Add" and select "New Project" on the right hand side scroll down to "Other Project Type" and expend it and click on "Visual Studio Installer" and select "Setup Project" and Name your setup exe.
A new window will pop up. On the left hand side you will see "Application Folder" Right click on it and select "Add" > "Project output" and click on "Primary Output" and press "ok"
Once you have done that, on the right hand side you should see two or more files, right click on the one that should say "Primary output From "YOUR PROGRAMS NAME" and select "create Shortcut - "YOUR PROGRAMS NAME"
Once that is done, rename your shortcut to your programs name. eg "my first program" after that click and drag it to "Users Desktop Folder on the left hand side.
Then right click "User's Program Menu" and add a Folder and name it to your programs company name "eg Microsoft" this will make a folder in the start menu.
After that select the folder you have just renamed and right click on the right hand side and select "Create new Shortcut" a window will pop up for you, select the "Application Folder" and then "Primary output from YOUR PROGRAMS NAME" and press "ok"
Once all of this is done close out of it and go to "Solution Explorer" and press F4, here you will have the options to add details about your program eg who it is and even an icon.
I may have missed somethings, but after reading this you will have a basic idea of what is required and you will be able to add your own things.
Also i cant remember but you might have to also add your programs Icon to the "Application Folder"
once you have done everything, open "solution explorer" and right click on the new project you have created and press "build" you will be able to find the files where you main project is located.
Good Luck!
You could create a Setup Project
MSDN Setup Project
I've used the Wix Toolset to create an installer in the past. It's a bit of a learning curve, but once you get the hang of it, I think its pretty good. It will let you manage install location, desktop and start menu shortcuts etc, and install any software dependencies such as a particular .NET framework version or Adobe Reader for instance. There is also an extension for visual studio and its free which always helps.

VB.NET Installer Package using Visual Studio 2015

I have created a VB.NET project using Visual Studio 2015 Community Edition. I can't figure out how to obtain the Installer (Setup) Package. I want to create this setup (Commune.exe) so that users can install on their computers. After installation, the program should appear in Start Menu and in Control Panel too. I would be happy to give the program a custom name (MDC Solutions) such that it will appear in the control panel as developed by MDC Solutions. Please help.
First of all install this.left
https://visualstudiogallery.msdn.microsoft.com/f1cc3f3e-c300-40a7-8797-c509fb8933b9
Once you have this installed,
go to Solution Explorer and right click "Solution "YOUR PROGRAMS NAME"
go down to "Add" and select "New Project"
on the right hand side scroll down to "Other Project Type" and expend it and click on "Visual Studio Installer" and select "Setup Project" and Name your setup exe.
A new window will pop up.
On the left hand side you will see "Application Folder"
Right click on it and select "Add" > "Project output"
and click on "Primary Output" and press "ok"
Once you have done that, on the right hand side you should see two or more files, right click on the one that should say "Primary output From "YOUR PROGRAMS NAME"
and select "create Shortcut - "YOUR PROGRAMS NAME"
Once that is done, rename your shortcut to your programs name. eg "my first program" after that click and drag it to "Users Desktop Folder on the left hand side.
Then right click "User's Program Menu" and add a Folder and name it to your programs company name "eg Microsoft" this will make a folder in the start menu.
After that select the folder you have just renamed and right click on the right hand side and select "Create new Shortcut" a window will pop up for you,
select the "Application Folder" and then "Primary output from YOUR PROGRAMS NAME" and press "ok"
Once all of this is done close out of it and go to "Solution Explorer" and press F4, here you will have the options to add details about your program eg who it is and even an icon.
I may have missed somethings, but after reading this you will have a basic idea of what is required and you will be able to add your own things.
Also i cant remember but you might have to also add your programs Icon to the "Application Folder"
once you have done everything, open "solution explorer" and right click on the new project you have created and press "build" you will be able to find the files where you main project is located.
Good Luck!

Associate .txt files with VB.NET Program

I created a super basic text editor which can read .txt files. I would like to know how I can set my basic text editor to the default .txt file extension so whenever the user clicks on a .txt file, at first it will show the "default program" window. If the user clicks on my program then the text files will be always opened using my program. How can this be done?
It depends on your version of windows, but in Windows 7/Vista you can click Start->Default programs
http://windows.microsoft.com/en-us/windows/change-default-programs#1TC=windows-7
In Windows XP it's a little more difficult:
Go to the Start menu and select All Programs.
Select Set Program Access and Defaults.
To select an option, click on the radio button beside it.
If you need to expand the option, click on the double arrows for that option on the right side of the window.
http://support.microsoft.com/kb/332003
If you want to do this programatically, you have to edit some registry settings. See here: http://msdn.microsoft.com/en-us/library/windows/desktop/cc144154%28v=vs.85%29.aspx

How do I get copyright information to show up in my Eclipse RCP application's "About" dialog

I'm using Eclipse's IWorkbenchAction that shows the Eclipse About dialog.
When I use the action in my RCP application the About dialog shows up successfully.
But, when I think proceed to click the "Installation Details" button, I get a dialog with tabs. I navigate to the "Installed Software" tab, and see my RCP product's name along with its version, and its ID. I select this item in the table, then proceed to click the "Properties" button.
Once I'm here, I see a dialog that looks similar to Eclipse's Preference dialog. It has three items to select on the left... Copyright, General Information, and License Agreement.
I've successfully added my License information to my .product file in order to have it show up when I click the "License Agreement", but...
I can't find where I should put the copyright information in order to get it to show up when I click the "Copyright" item in the list on the left of this dialog.
Where do I add this information so that it will show up here?
This information comes from p2 IInstallableUnit. Are you building your plugins with p2?
if you implement p2 update you should be able to see this information. p2 build will copy this information from feature.xml.
I am addressing this question:
"I can't find where I should put the copyright information in order to get it to show up when I click the "Copyright" item in the list on the left of this dialog"
This copy right information you should get it from feature group when you build with tycho.
For product, there is no copy right information only license info. you put copy right information in feature.xml

Dreamweaver shortcut to swap between source and dependent files

Dreamweaver (CS 5.5) displays source code and dependent files as sub-tabs (?).
You can swap between tabs control+shift+tab, but how to swap between source and dependent files?
This issue has bothered me for a long time now, and I am pleased to say I have found a partial solution to it. There is no keyboard shortcut for switching between related (dependent) files, however there is a shortcut called "Go to Source Code", which by default is Ctrl+Alt+`.
Optional: This shortcut (and any other shortcut) can also be edited via the "Keyboard Shortcuts" menu which can be found under the "Edit" tab. To do so, from within said menu, choose the "Dreamweaver Standard" as the "Current set", and click the most left button amongst the 4 buttons at the top, called "Duplicate set". This will allow you to create a duplicate set of Shortcuts, with a name of your choice. Once that's done, you will be able to find the "Go to Source Code" shortcut by selecting "Document editing" from the "Commands" select box. This shortcut should be the second last. To change the keyboard sequence for it, click on it, insert a new "Press key", click the "Change" button and then the "OK" button to accept the changes.
As for switching to related files, this can be done via View->Related Files. This is clearly not nearly as instant as using a designated keyboard shortcut, but remember, the issue was having to use the mouse in order to switch to related files, and this method allows you to do so by using the keyboard alone (Alt+arrows).