MOD2000: Package and Deployment Wizard Doesn't Have Option to Include the Workgroup Information File

ID: Q241479


The information in this article applies to:
  • Microsoft Office 2000 Developer

Moderate: Requires basic macro, coding, and interoperability skills.


SYMPTOMS

When you use the Package and Deployment Wizard in Microsoft Office 2000 Developer, you see no specific option to include a Workgroup Information file.


CAUSE

In Microsoft Office 2000 Developer, you can still specify a custom Workgroup Information file in the Package and Deployment wizard, but not in the same way that you did in the Setup Wizard in Microsoft Office 97 Developer Edition. This is because the Package and Deployment Wizard is now designed for use with all Office products and is not Access-specific.


RESOLUTION

In the Package and Deployment Wizard, you can specify the custom Workgroup Information file through the Start Menu Items page. You can modify the target file command-line string and use macros that are resolved by the Package and Deployment Wizard Setup file, Setup1.exe. For example:

You specify the following as the shortcut:
/wrkgrp "$(AppPath)\System.mdw" "$(AppPath)\Northwind.mdb"
When this is installed, a shortcut is created that has the following command line:
C:\Program Files\Office\MSACCESS.EXE /wrkgrp "C:\Program Files\Northwind\System.mdw" "C:\Program Files\Northwind\Northwind.mdb"
NOTE: Make sure to also include the custom Workgroup Information file on the Package and Deployment Wizard - Included Files page.


MORE INFORMATION

CAUTION: Following the steps in this example will modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and perform these steps on a copy of the database.

The following is a step-by-step example of how to specify a custom Workgroup Information file:

  1. In Windows Explorer, find your System.mdw file. The default location is \Program Files\Microsoft Office\Office.


  2. Highlight System.mdw to select it, and then on the Edit menu, click Copy.


  3. On the Edit menu, click Paste.


  4. Right-click the Copy of System.mdw file, and then rename it to Test1.mdw.


  5. Open the sample database Northwind.mdb.


  6. Press ALT+F11 to open the Visual Basic Editor.


  7. On the Add-ins menu, if the Package and Deployment Wizard is listed, skip to step 11.


  8. On the Add-ins menu, click Add-in Manager.


  9. In the Available Add-ins list, click VBA Package and Deployment Wizard.


  10. Under Load Behavior, click to select the Loaded/Unloaded check box, and then click OK.


  11. On the Add-ins menu, click Package and Deployment Wizard.


  12. On the first page of the Package and Deployment Wizard, click Package.


  13. Click Next and accept the defaults until you see the Package and Deployment Wizard - Included Files page.


  14. Make sure the Include Access Runtime check box is selected to ensure that the Access Run Time component will be installed if users do not have a copy of Access on their computer.


  15. Click Add, and then add the Test1.mdw file that you created earlier.


  16. Continue to click Next until you see the Package and Deployment Wizard - Start Menu Items page. In the tree structure under Start menu items, note the Northwind group, and under that, the shortcut for Northwind.


  17. Click the Northwind shortcut, and then click Properties.


  18. In the Start Menu Item Properties dialog box, under Target, type the following:


  19. /runtime /wrkgrp "$(AppPath)\Test1.mdw" "$(AppPath)\Northwind.mdb"
  20. Click OK, and then click Next to move to the Package and Deployment Wizard - Install Locations page.


  21. Make sure that the Installation Location cell for the Test1.mdw file is set to $(AppPath). To do so, click in the cell, click the arrow that appears, and then click $(AppPath) in the list.


  22. Continue to click Next until you reach the end of the wizard, and then click Finish.


Now when you install the resulting application, Northwind.mdb will run with a specific workgroup information file, Test1.mdw, which is in the folder specified for the application.

Additional query words: pra prb runtime wrkgadm add

Keywords : kbdta modPDWizard
Version : :
Platform :
Issue type : kbprb


Last Reviewed: December 13, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.