Localizing the Setup Wizard into Another Language

Microsoft Corporation

April 1996

Abstract

This article contains information about using the English version of the Microsoft® Access Developer's Toolkit (ADT) for Windows® 95 Setup Wizard with localized versions of Microsoft Access for Windows 95.

When working with the English version of the ADT and a localized version of Microsoft Access, there are various changes you may want to make to the Setup Wizard to make it function correctly and to produce a setup program tailored to your needs. These changes include:

How to Change the Filenames That the Setup Wizard Looks For

For the English version of Setup Wizard to work with a localized version of Microsoft Access, you need to change some of the filenames that the Setup Wizard looks for when it builds your setup program. This section contains instructions on how to accomplish this task.

Note   The instructions in this section explain only how to change the names of the files that the Setup Wizard looks for. These instructions do not explain how to localize the setup program that the Setup Wizard creates for you. To create a fully localized setup program, skip this section and go to the section titled "More Details on How the Setup Wizard Works." Carefully follow the instructions that apply to your needs.

Changing Filenames in the Microsoft Access Run-Time Version Template

  1. Locate the template file 01Microsoft Access Run-Time Version.mdt, which is used by the Setup Wizard. This template file is usually found in the following location: c:\msoffice\access\adt\setup wizard\msaccomp\.

  2. Before making any changes, make a backup copy of this file.

  3. Open this file in Microsoft Access.

  4. Open the table named Access Runtime. Click in the Param1 field.

  5. Find the following three English filenames in the Param1 field. Replace each name with the corresponding localized filename.
    English VAEN232.dll OPENENU.dll MSO5ENU.dll
    Brazilian Portuguese VAPTB232.dll OPENPTB.dll MSO5PTB.dll
    Czech VACS232.DLL OPENCSY.DLL MSO5CSY.DLL
    Danish VADA232.DLL OPENDAN.DLL MSO5DAN.DLL
    Dutch VANL232.DLL OPENNLD.DLL MSO5NLD.DLL
    English VAEN232.DLL OPENENU.DLL MSO5ENU.DLL
    Finnish VAFI232.DLL OPENFIN.DLL MSO5FIN.DLL
    French VAFR232.DLL OPENFRN.DLL MSO5FRN.DLL
    German VADE232.DLL OPENDEU.DLL MSO5DEU.DLL
    Greek VAEL232.DLL OPENELL.DLL MSO5ELL.DLL
    Hungarian VAHU232.DLL OPENHUN.DLL MSO5HUN.DLL
    Iberian Portuguese VAPTG232.DLL OPENPTG.DLL MSO5PTG.DLL
    Italian VAIT232.DLL OPENITA.DLL MSO5ITA.DLL
    Norwegian VANO232.DLL OPENNOR.DLL MSO5NOR.DLL
    Polish VAPL232.DLL OPENPLK.DLL MSO5PLK.DLL
    Russian VARU232.DLL OPENRUS.DLL MSO5RUS.DLL
    Spanish VAES232.DLL OPENESP.DLL MSO5ESP.DLL
    Swedish VASV232.DLL OPENSVE.DLL MSO5SVE.DLL
    Turkish VATR232.DLL OPENTRK.DLL MSO5TRK.DLL
    Taiwan Region VACHT232.DLL OPENCHT.DLL MSO5CHT.DLL
    Korea VAKO232.DLL OPENKOR.DLL MSO5KOR.DLL
    Japanese VAJP232.DLL OPENJPN.DLL MSO5JPN.DLL

Additional steps for Taiwan Region, Korean, and Japanese versions of Microsoft Access

If you are using a version of Microsoft Access that is localized for Taiwan Region, Korea, or Japan, you also need to make the following changes to the template file 01Microsoft Access Run-Time Version.mdt.

  1. Open the table named Access Runtime. Click in the Param1 field.

  2. Find the following English filename in the Param1 field. Replace that filename with the corresponding localized filename.

    English:     MSO95.DLL

    Taiwan Region:     MSO95FE.DLL

    Korea:       MSO95FE.DLL

    Japanese: MSO95FE.DLL

  3. Click in the Param1 field. Find the record whose Param1 field contains "QFEUPD.EXE".

  4. Click in the Language field of this record. Enter the string "UNUSED".

  5. Go to the record with ID = -19982. Copy this record.

  6. Go to a new record at the bottom of the table. Paste this record.

  7. Change the ID field for this record to a unique value (for example, -19981).

  8. Change the LineID field for this record to "add dbcs3032_dll".

  9. Change the Param1 field for this record to "dbcs3032.dll".

  10. Change the Param4 field for this record to "dbcs3032_dll".

  11. Go to the record with ID = 2000.

  12. In the Param2 field for this record, insert "\r{sys dbcs3032_dll:1}" immediately after "\r{sys msjt3032_dll:1}".

  13. Go to the record with ID = 2100. Copy this record.

  14. Go to a new record at the bottom of the table. Paste this record.

  15. Change the ID field for this record to a unique value (for example, 2125).

  16. Change the LineID field for this record to "sys dbcs3032_dll".

  17. Change the Param3 field for this record to "dbcs3032_dll".

Changing Filenames in the Graph Run-Time Version Template

  1. Locate the template file 07Microsoft Graph 5 Run-Time Version.mdt, which is used by the Setup Wizard. This template file is usually found in the following location: c:\msoffice\access\adt\setup wizard\msaccomp\.

  2. Before making any changes, make a backup copy of this file.

  3. Open this file in Microsoft Access.

  4. Open the table named Graph5. Go to the record with ID = 750.

  5. Click in the Language field of this record. Delete the "!usa" string from this field.

  6. Go to the record with ID = -19400.

  7. Click in the Language field of this record. Delete the "ger" string from this field.

  8. Click in the Param1 field of this record. Replace the filename with corresponding localized filename listed in the following table.
    Brazilian Portuguese GRPTB50.olb
    Czech GRCS50.olb
    Danish GRDA50.olb
    Dutch GRNL50.olb
    Finnish GRFI50.olb
    French GRFR50.olb
    German GRDE50.olb
    Greek GREL50.olb
    Hungarian GRHU50.olb
    Iberian Portuguese GRPTG50.olb
    Italian GRIT50.olb
    Norwegian GRNO50.olb
    Polish GRPL50.olb
    Russian GRRU50.olb
    Spanish GRES50.olb
    Swedish GRSV50.olb
    Turkish GRTR50.olb
    Taiwan Region GRCHT50.olb
    Korea GRKO50.olb
    Japan GRJP50.olb

Additional steps for Taiwan Region, Korean, and Japanese versions of Microsoft Access

If you are using a version of Microsoft Access that is localized for Taiwan Region, Korea, or Japan, you need to also make the following changes to the template file 07Microsoft Graph 5 Run-Time Version.mdt.

  1. Open the table named Graph5.

  2. Go to the record with ID = -19700.

  3. Click in the Param1 field. Replace the string "SDM.dll" with "SDMDBCS.dll".

Changing the SQL Server Template for Far East Versions of Microsoft Access

If you are using a version of Microsoft Access that is localized for Taiwan Region, Korea, or Japan, you need to make the following changes to the template file 10ODBC Support With SQL Server.mdt.

  1. Locate the template file 10ODBC Support With SQL Server.mdt, which is used by the Setup Wizard. This template file is usually found in the following location: c:\msoffice\access\adt\setup wizard\msaccomp\.

  2. Before making any changes, make a backup copy of this file.

  3. Open this file in Microsoft Access.

  4. Open the table named ODBC.

  5. Click in the Param1 field. Find the record whose Param1 field contains "MSCPXL32.DLL".

  6. Click in the Language field of this record. Enter the string "UNUSED".

  7. Click in the Param1 field. Find the record whose Param1 field contains "12520437.CPX".

  8. Click in the Language field of this record. Enter the string "UNUSED".

  9. Click in the Param1 field. Find the record whose Param1 field contains "12520850.CPX".

  10. Click in the Language field of this record. Enter the string "UNUSED".

More Details on How the Setup Wizard Works

Setup Wizard File Structure

The Microsoft Access Developer's Toolkit for Windows 95 Setup Wizard consists of three sets of files that are used to create the final setup program:

Setup Wizard Operation

The Setup Wizard creates the setup program using a sequence of steps that begins with the user's information and ends in the actual images. In the interim steps, the Setup Wizard creates a set of tables containing the setup program information in its own file. These tables are generated from template tables. When all of the tables are completed, the Setup Wizard imports tables in similar format from the Microsoft Access components requested by the user. When the Setup Wizard has all the information it needs, it proceeds to lay out the files in the images directory. The Setup Wizard then uses a setup generation engine to traverse the tables and create the files needed by the setup program to run.

The tables in the Setup Wizard fall into four different categories:

Token Tables

You will notice, as you proceed through this article, that many of the tables have been tokenized to afford easy localization. These tables have analogous token tables, identified by appending the string "Tokens" to the table name. The structure of the token table is simple:

In the case of the token tables embedded in the Setup Wizard (as opposed to those in the template tables), the token strings are actually evaluated before being used. That is, each string is passed through an Eval function. This allows the Setup Wizard to create both simple and complex tokens. A simple token has the form of "string". The Eval function extracts the quotation marks and then returns string. A complex token takes the form of "Date: " & Now(). The Eval function evaluates the expression and returns a compound string incorporating the current date and time.

When localizing the token tables, you may choose to edit the values in place, using "usa" as the language. You may also choose to add new rows to the tables with new language descriptors, such as "spa" for Spanish. However, values are required for the language descriptor of the token tables, the language descriptor of the component tables, and the language descriptor in the UI Strings table. When changing the value of a token, it is necessary that the form of the token remain. That is, if a token uses a vertical bar (|) character or other code set, they must remain in place.

Note   You must be very careful when localizing tokens. Changes not described in this article might result in the setup program failing to work.

Localizing WzStp70.mdb

The Setup Wizard file itself contains several tables with localization tokens. Some of these tables do not need to be modified, while others do.

Stp_tblStrings

This table contains error strings that are shown to the user during the generation of the setup. These strings do not need to be localized for the Setup Wizard output because they only affect the interface.

Stp_tblUIStrings

This table corresponds mostly to strings used in the interface. However, some strings were added to this table that are used in the actual generation of the setup program files.

Stp_tplComponent tokens

This token table illustrates one of the basic principles of token tables. If a token string uses three equal signs (===) or three hyphens (---) to designate a value, the string represents a comment. That is, many of the strings are used to comment the generated setup information file. In most cases, you do not need to localize these because most users do not look at the setup information file. If you prefer to, you may localize these tokens.

The only token that you are required to localize is the token "Setup". The value of this token must match the value offered by the appropriate string in the UI Strings table described above.

Stp_tplINF header tokens

Stp_tplLST

In this table, the lines with IDs 150 through 165 all use the string "setup". Because this string is not tokenized in this table, you have to either change every occurrence by hand or tokenize it. If you're modifying this string by hand, be sure to avoid changing the extension. If you are tokenizing this string, replace the portion before the extension (setup) with \l{setup}. Then you may add to the token table a token by the name of setup with a corresponding value. In either case, you must make sure that this string matches the value in the UI Strings table.

Stp_tplLST tokens

Stp_tplMain tokens

This table contains comments that have been removed from this writeup.

Stp_tplSTF header tokens

Localizing Files in the MSAcComp Subfolder

These files contain the information used by the Setup Wizard to insert a component provided by Microsoft Access. In most cases, the changes need only to reflect comment changes in the generated STF. These changes take place in the token tables of each file. There are, however, special cases that are listed in this section. When a line needs to be changed, it is marked with a language specifier in the language column. To make the changes, you may either copy the lines and mark them with a different language specifier or change both the values and the language specifier in place. Note that line order is relevant in the main (not token) tables, so the ID must be used to maintain sequence. If you are adding lines to a main table, be sure to place them immediately after their English analog. Also, you must change the Language field in the token table for each file in the MSAcComp subfolder to match the language string chosen in Stp_tblUIStrings, ID 1009 (see above).

00Setup.mdt

Setup table

Setup token table

01Microsoft Access run-time Version.mdt

Microsoft Access run-time table

The following changes are for Far East versions of Microsoft Access only:

07Microsoft Graph 5 run-time Version.mdt

Graph5 table

The following change is for Far East versions of Microsoft Access only:

Graph5 token table

09Replication.mdt

Replication token table

Localizing Files in the Redist Folder

These files are used by the Setup Wizard in the resulting images.

ACMSetup.exe

This is the setup program itself. Copy this file from the Microsoft Access CD-ROM into this folder.

ACMSetup.hlp

This is the Help file for the setup program. Copy this file from the Microsoft Access CD-ROM into this folder.

CTL3D32.dll

Does not need to be changed.

Expand.exe

Program used to expand compressed files. This program is available only with released versions of Windows NT. If you do not own Windows NT, you have to use the English version. Note that this program is a console application and does not have much of an interface at all.

MSACCCAH.dll

This file does not need to be modified. It contains setup code that is specific to Microsoft Access.

MSADTUSA.dll

This is the DLL with all of your bitmaps. You can use a resource editor to modify this file. You must also rename this file to match the name used in the Setup Wizard files.

MSArnReg.exe

This file does not need to be modified.

MSArnReg.dll

This file is used to register Microsoft Access in case the full copy is not there. The only interface elements of this file show up in the Explorer when the user views the properties of a Microsoft Access database. This file is not available in languages other than those the ADT is available in.

MSSetup.dll

Copy this file from the Microsoft Access media.

QFEUPD.exe

Copy this file from the Microsoft Access media.

Setup.exe

Copy this file from the Microsoft Access media. Be sure to rename this file to match the names specified in the Setup Wizard files (for example, Install.exe or some other appropriate string).

Setup.tdf

Rename this file to match the "setup" string used throughout the Setup Wizard tables.

Setup.ini

Rename this file to match the "setup" string used throughout the Setup Wizard tables.