As we noted at the beginning of this chapter, the process of generating a setup
Just like we stated in Chapter 6, ‚“Workstation and Traditional LAN Applications Step- By-Step, ‚½ the purpose of this section is not to show you how to use InstallShield Express (again, see Appendix A for this); rather it shows you how to implement concepts necessary to deploy the various
| On The Web ‚ |
The InstallShield project file called DEPLOYFOXSAMPLE07.ISM is included in the chapter downloads. This sample file shows how you can install components necessary to deploy client/server solutions. We did not include all the potential components in the install example, but have included references where these components can be found, downloaded, or purchased. |
There are several suggested changes to make in the setup organization step.
The first change is to eliminate the setting for the DATABASEDIR property. For traditional applications, set the property to a folder for the data. Client/server data is going to be installed on a database server, not to a folder. However, this property could be used to store the location of the SQL script files. Using this property allows the database administrator to determine where the scripts install separate from the rest of the application files. In the example setup (DEPLOYFOXSAMPLE7.ISM) available in the chapter downloads, we set the DATABASEDIR to [INSTALLDIR]SQLScripts. This is the administrator ‚ s default directory, which they can override as long as the Database Folder dialog is included in the setup.
We add two more features to our client/server setups. The first is MDAC. We use this feature to include the Microsoft Data Access Component merge modules or the standard setup EXE from Microsoft. The other feature is MSDE, used to include the necessary files to install the Microsoft SQL Server Desktop Engine for those customer sites not running the full version of SQL Server. If your favorite database has setup files you can include as part of the setup, we recommend including them. You can also create a separate install for these files as well.
We use the same model included in chapter six for the Setup Types (Workstation, Server, and Custom). What we have to do is determine where we want to add the two new features. This is actually a tough call. What we settled on based on our experience is including both features only for the Custom setup. The reason for this is the average
The files you deploy from a Visual FoxPro perspective do not change. You still need your executables (EXE/APP/DLL) and your runtime files. If you still need to deploy optional files like DBCX and framework metadata, INI, Config.fpw, ActiveX controls, and a Help file. You need any remote view database containers if your applications use remote views. So what are the new files you need to include?
If you are using SQL Server or MSDE, you
‚“Microsoft Data Access Components (MDAC) is a set of software components used to provide applications a means to access data from various data storage sources, with a focus on access to Microsoft SQL Server. A large number of applications depend on MDAC-contained components for proper operation. MDAC is not a single product; rather, it is a collection of DLLs and associated component resources to support a number of different APIs, including Open Database Connectivity (ODBC), OLE DB, Microsoft ‚ ActiveX ‚ Data Objects (ADO), and Microsoft Remote Data Service (RDS). MDAC installation not only places a large number of common shared files in various places across the Microsoft Windows ‚ system drive, MDAC is also responsible for adding many registry keys to the registry. ‚½
You can take two approaches to this. If you are not using a Windows Installer deployment package, you can download the MDAC components from the Microsoft download center. The
Figure 16.
One way to install the MDAC components is to select the available merge modules, and then select the features you want it installed for.
Figure 17.
Another way to install the MDAC components is to install the raw installation setup executables and have a user or support individual manually run the install.
|
MDAC Version |
Operating System Supported |
|---|---|
|
2.8 |
Windows 98, Windows Me, Windows 2000, Windows 98, Windows ME, Windows NT, Windows XP |
|
2.7 |
Windows 98, Windows ME, Windows NT, Windows 2000, Windows XP |
|
2.6 |
Windows 98, Windows ME, Windows NT, Windows 2000 (Windows 95 with the Y2K Update and Internet Explorer 4.01 SP2) (Windows 98 with the Y2K Update 2 and Internet Explorer 4.01 SP2) (Windows NT 4.0 with Service Pack 5 (or later) and Internet Explorer 4.01 SP2) |
|
2.5 |
Windows 95, Windows 98, Windows Me, Windows NT, Windows 2000 (DCOM95 required for Windows 95) (Windows NT 4.0 Service Pack 3 or later) (Internet Explorer 3.01 or later) |
|
2.1 |
Windows 98, Windows NT |
| Note ‚ |
The InstallShield Support Web site (
http://support.installshield.com
) has
|
| Note ‚ |
One source of MDAC version installation information is ‚“Microsoft Data Access Components (MDAC) Installation ‚½ at http://msdn.microsoft.com/library/default.asp?url=/library/enus/dnmdac/html/data_mdacinstall.asp . |
Another file you might want to include is the MSDE installation. Like the MDAC components, there is a merge module for Windows Installer deployment tools and a standard install executable for developers using other tools or want a more manual installation. We prefer to install MSDE
If your application is automating SQL Server or you are using custom tools to automate SQL Server, then you need to install the SQL-DMO files (see Figure 18 ). These files need to be loaded in the Windows System Folder or in the application folder. More information on SQL-DMO and a reference to a great book can be found in the section ‚“Using SQL-DMO, ‚½ earlier in this chapter.
Figure 18.
You need to install the SQL-DMO files if your application
Your client/server application has similar setup details with respect to shortcuts, registry entries, INI file changes, file extensions, and environment
Configuring the DSN within InstallShield Express or another deployment tool is not difficult. How complicated it is depends on your target computers. If you know the server and the database
Once you select the DSN in the ODBC Resource pane (see
Figure 19
), you have the opportunity to select and change properties for the target computer DSN. The properties can
Figure 19.
Adding a DSN to the deployment is easy if you have a DSN to model the DSN you want created on the target computer. First, select the existing DSN in the ODBC Resource pane, determine which feature you want the DSN installed, and then configure the Database and Server properties in the Properties pane if they differ from your system configuration.
Steps four, five, and six are really not any different between client/server and traditional workstation/LAN application. You still need to determine which dialogs make sense, whether you are going to use and possibly change Billboards, and change text messages if necessary. The requirements selection could be important, but again, no different from the traditional applications.
Building your release could be slightly different in one aspect, namely the
Each deployment is different and each client has a different set of circumstances, therefore you may require different files to be deployed, different combinations, different features, and different tools. Each of these impacts the final deployment package.
[2] ‚“Microsoft Data Access Components (MDAC) Installation ‚½ found at: http://msdn.microsoft.com/library/default.asp?url=/library/enus/dnmdac/html/data_mdacinstall.asp