Home
Username:
Password:
Microsoft Visual Studio .NET Tutorials

Development / Dependencies




Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com’s entire library of video tutorials.


Learn More

Subtitles of the Movie

As we saw, there is a dependency on dotnetfx.exe, the .NET framework file that if it's installed sets up the NET framework resources on the target computer. So if we want to check for that and if we want to install that, then there's a couple of things that we need to do to our application in the setup project, so let's bring it back up. Now one of the things that we can do is to go to, but first we need to select setup1, go to the view menu and go to editors. These editors are available for setup1. We can go to the view menu and now you can see editors, these editors are available for setup1 the file system editor which we're already in, there's a way to go in and edit the registry and set registry keys. You can set file type associations, you can work with the user interface, which means during the installation process, the dialog box is the popup, you can add your own custom dialog boxes and so on right here. You can perform customized actions during installation and you can also check to see whether or not certain launch conditions apply, for instance if you need a particular type of operating system or if you need another application program to be installed or if you need the .NET framework to be installed, you can set launch conditions. Okay let's first go to user interface, as you can see the file system editor is still open and the user interface is also now open and this is really a tree like listing of the dialog boxes that will popup and not just for the ordinary installation you also get one for administrative installation. So let's go up to the dialog box as a popup during the start node or the start process, let's click on that and we can go to the action menu choice or to do the same function, we can do a right click and we can add a dialog box and this dialog box will popup during this segment of the install process. We can have one popup that has 2 radio buttons, 3 radio buttons, 4 radio buttons, a variety of check boxes one that requests customer information and several that request information that you can customize, just plain text boxes, readme's, license agreements and so forth. And these are all the kinds of things that you would ordinarily see during installation. So let's go ahead and select radio buttons. This will be a dialog box that pops up with 2 radio buttons and we'll click OK and now notice that it's been added You'll notice that we're getting a squiggly line under start and this is because this dialog box is set according to this to popup after the confirm installation, which we definitely don't want to do, there would be no case in which we would want to do that. So let's move it up, go up to action and then move up and let's do it one more time and sure enough the squiggly line under start goes away. So indicating that this is a perfectly fine location for this, after the welcome dialog box but before you get into the heart of things. Now this dialog box is going to come up and it's going to show a couple of radio buttons, radio button1, the label on this should be 'Yes' and radio button2, the label on this should be 'No.' The button values, we can leave alone, for the banner text we can put install.net and for the body text we can put .NET framework is not installed, install now as a question and it should be pretty obvious than that. If they click yes, it will install it, if they click no, it won't install it, it will still install the application. But obviously if .NET is not installed, the application won't run. We can put that in the body text too if we wanted to put a more comprehensive explanation but I think this will be fine for our purposes right now. So now we can add a copy of dotnetfx.exe and we can add that over here to our application folder. If we do a right click and then add and then file, I just happen to have a copy of dotnetfx.exe in my Visual Studio projects folder. If you don't have a copy there or you want to put one there, just find it on your CDs or ask your administrator for it and then you can put it inside the application folder. Now if we go back to, if we go back to the user interface and we can go back up to the editor and now we're going to add a custom action. The actions that you have available are install, commit, roll back and uninstall. So during installation, we want to install a file, the dotnetfx.exe, this actually has its own installation process. So now that we've done that we are going to go ahead and click OK. We'll install dotnetfx.exe if the following condition is met. So go to the condition property in the Properties window window and type in radio buttons, 2 buttons and the value of that is going to be 1 and that just means that the user's clicked yes and that should do it. Now what that means is that during the installation process this dialog box will open up and if the user clicks yes, this action will take place and then the rest of the installation will proceed normally.

Tutorial Information

Course: Microsoft Visual Studio .NET
Author: Dave Mercer
SKU: 33420
ISBN: 1932072276
Release Date: 2003-04-01
Duration: 7 hrs / 101 lessons
Work Files: Yes
Captions: For Online University members only
Compatibility: Vista/XP/2000, OS X, Linux
QuickTime 7, Flash 8

VTC Sign up & Benefits

  • Unlimited Access
  • 98,729 Video Tutorials (23,265 free)
  • Video Available as Flash or QuickTime
  • Over 1026 Courses
  • $30 for One Month Access
  • Multi-User Discounts Available