Installing the Sample Offline State Add-in

Installing the Sample Offline State Add-in

This topic takes you through the steps to download and install the Sample Offline State Add-in. The Sample Offline State Add-in is a COM add-in that adds an Offline State menu to Outlook and utilizes the Offline State API. Through the Offline State menu you can enable or disable state monitoring, check the current state, and change the current state. For more information about how the Offline State Add-in is implemented, see Setting Up an Offline State Add-in.

Install the Sample Offline State Add-in

  1. Download the Sample Offline State Add-in here: Outlook 2007 Auxiliary Reference Code Samples and Redistributable Installer.
  2. Run Visual Studio 2005 as an administrator.
    Cc160677.vs_note(en-us,office.12).gif  Note
    If your computer is running Windows XP, you must be logged in as an Administrator. If your computer is running Windows Vista, you must be logged in as an Administrator. Right-click the Visual Studio 2005 icon and click Run as administrator.
  3. In Visual Studio 2005, click File, select Open, and then click Project/Solution.
  4. Browse to the location where you saved the sample, click ConnectionStateAddin, and then click Open.
  5. On the Build menu, click Build Solution.
  6. In the Save File As dialog box, click Save.
  7. Click the Start menu, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
    Cc160677.vs_note(en-us,office.12).gif  Note
    If you are running Windows XP, you must be logged in as an Administrator.
  8. In the User Account Control dialog box, click Continue.
  9. In the Command Prompt window, change directories to the Debug folder where you saved the sample. For example, if you saved the sample on your C:\ drive, you would type cd "C:\ConnectionStateAddin\Debug" and then press ENTER.
  10. Type regsvr32 OfflineStateAddin.dll and press ENTER.
    Cc160677.vs_note(en-us,office.12).gif  Note
    To uninstall the Sample Offline State Add-in, type regsvr32 -u OfflineStateAddin.dll
  11. In the RegSrv32 dialog box, click OK.
  12. Restart Outlook to see the Offline State menu.

See Also

About the Offline State API

About the Sample Offline State Add-in

Setting Up an Offline State Add-in

Monitoring Connection State Changes Using an Offline State Add-in

Disconnecting an Offline State Add-in