ODE97: Run-Time Application Cannot Find System.mdw After Setup (162961)
The information in this article applies to:
- Microsoft Access 97
- Microsoft Office 97 Developer Edition
This article was previously published under Q162961 Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you use the Microsoft Office 97 Developer Edition Tools (ODE Tools)
Setup Wizard to create a setup image for a run-time application, you may
receive the following error message when you run your Setup program on
another computer:
Couldn't find file C:\Windows\System\System.mdw
NOTE: The path to System.mdw may be different in your error message; it
will display the path to the Windows System folder on your computer.
CAUSE
When you created the setup image, you clicked to select the Workgroup and
Run-Time check boxes when you let the Wizard create a command-line for your
application's shortcut, but you did not include a workgroup information
file with your application.
RESOLUTION
There are four methods to resolve this problem.
Methods 1 and 2 prevent the error from occurring by modifying the command
line created by the Setup Wizard or by including a workgroup information
file with your application's setup files.
Methods 3 and 4 fix the error after your application is already installed
by modifying your application's shortcut or by moving the workgroup
information file.
Method 1: Modifying the Wizard-Created Command Line- Open your application's setup options in the Setup Wizard.
- Proceed to the "Add the shortcuts" screen in the Setup Wizard, and
select your application's shortcut in the List Of Shortcuts box.
- Click to select the "I would like to specify my own custom command line"
option.
- Edit the text in the Command Line box to change the /wrkgrp command-line option. Change this portion of the command line
/wrkgrp $(WorkgroupFile)
to:
/wrkgrp "$(FilePath)\System.mdw"
Following is an example of how the modified shortcut will look with
/runtime and /wrkgrp command-line options:
"msaccess.exe" /runtime /wrkgrp "$(FilePath)\System.mdw
"$(FilePath)\MyNewApp.mdb"
- Proceed through the remaining screens of the Setup Wizard and create a new setup image for your application.
Method 2: Including a Workgroup Information File with Your Setup- Open your application's setup options in the Setup Wizard.
- In the Add The Files screen in the Setup Wizard, click the Add button, and then add a workgroup information file.
NOTE: If you try to add the workgroup file to which you are currently
joined, you receive the following errors when the Setup Wizard tries to
create your setup image:
Permission denied
The creation of your custom Setup program was not completed successfully.
This error occurs because the workgroup file is in use by you. Use the
Workgroup Administrator to temporarily join another workgroup file
before you run the Setup Wizard, or include a different workgroup file
in your setup image.
- Proceed through the remaining screens of the Setup Wizard and create a
new setup image for your application.
Method 3: Modifying Your Application's Shortcut
After your run-time application is installed, you can modify the shortcut
to your application so that it looks for the workgroup information file in
the correct location.
In Microsoft Windows 95 or Microsoft Windows NT version 4.0- Click the Start button on the taskbar, point to Settings, and then click Taskbar.
- In the Taskbar Properties dialog box, click the Start Menu Programs
tab, and then click the Advanced button.
- Locate your application's folder and the application shortcut in
Windows Explorer.
- Using the right mouse button, click the shortcut, and then click
Properties on the shortcut menu that appears.
- In the Properties dialog box, click the Shortcut tab.
- Modify the command line in the Target box so that the /wrkgrp option
is followed by the correct path to the System.mdw file. For example,
change this portion of the command line
/wrkgrp C:\Windows\System\System.mdw
to:
/wrkgrp "C:\My Application\System.mdw"
Note that you must place quotation marks around the path and file
name if it contains any spaces.
- Click OK in the Properties dialog box, and then close Windows
Explorer and the Taskbar Properties dialog box.
In Microsoft Windows NT version 3.51- Open your application group in Program Manager.
- Select your application's icon by clicking it once.
- On the File menu, click Properties.
- In the Program Item Properties dialog box, modify the command line in
the Command Line box so that the /wrkgrp option is followed by the
correct path to the System.mdw file. For example, change this portion
of the command line
/wrkgrp C:\Windows\System\System.mdw
to:
/wrkgrp "C:\My Application\System.mdw"
- Click OK in the Program Item Properties dialog box.
Method 4: Moving the Workgroup Information File
After your application is installed, the shortcut looks for the System.mdw
file in the Windows System folder by default. Your Setup program installed
the System.mdw in your application's main folder. If you copy or move the
System.mdw file to the Windows System folder, the shortcut will work
correctly as is.
STATUS
Microsoft has confirmed this to be a problem in Microsoft Office 97
Developer Edition Tools.
REFERENCES
For more information about using the Workgroup Administrator, search the
Help Index for "Workgroup Administrator," or ask the Microsoft Access 97
Office Assistant.
For more information about workgroup information files, search the Help
Index for "workgroup information files," or ask the Microsoft Access 97
Office Assistant.
Modification Type: | Major | Last Reviewed: | 11/4/2003 |
---|
Keywords: | kbbug kberrmsg kbsetup KB162961 |
---|
|