Installing the Sample Offline State Add-in
Applies to: Office 2010 | Outlook 2010 | Visual Studio
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
Download the Sample Offline State Add-in here: Outlook 2007 Auxiliary Reference Code Samples and Redistributable Installer.
Run Visual Studio 2005 as an administrator.
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.
In Visual Studio 2005, click File, select Open, and then click Project/Solution.
Browse to the location where you saved the sample, click ConnectionStateAddin, and then click Open.
On the Build menu, click Build Solution.
In the Save File As dialog box, click Save.
Click the Start menu, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
Note
If you are running Windows XP, you must be logged in as an Administrator.
In the User Account Control dialog box, click Continue.
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.
Type regsvr32 OfflineStateAddin.dll and press ENTER.
Note
To uninstall the Sample Offline State Add-in, type regsvr32 -u OfflineStateAddin.dll
In the RegSrv32 dialog box, click OK.
Restart Outlook to see the Offline State menu.
See Also
Concepts
Installing the Sample Offline State Add-in
About the Sample Offline State Add-in
Setting Up an Offline State Add-in
Monitoring Connection State Changes Using an Offline State Add-in