Uninstall FogBugz for Windows
To uninstall FogBugz safely, you need to follow different instructions depending on what you wish to keep on your server after the uninstall.
Scenario One: After uninstalling, I will not be running FogBugz at all on this server.
- Run the Services Control panel and look for the Fog Creek Dispatcho service.
- If you find it, stop it. If you do not find it, proceed to Step 2.
- Then run a command prompt (Start | Run | CMD), go into your FogBugz\Accessories folder, and type dispatcho uninstall
- Back in the Services Control panel, look for the FogBugz Maintenance service.
- If you find it, stop it.
- Then run a command prompt (Start | Run | CMD), go into your FogBugz\Accessories folder, and type fogbugzmaint uninstall
- In the Internet Services Manager, restart IIS, and
then delete the virtual directory pointing to your FogBugz install.
- Optionally, to remove a few registry entries, you can unregister each of the DLLs in the Accessories folder:
- From the command prompt type dir /w *.dll
- For each file you see, type regsvr32 /u filename.dll
- FogBugz 3.0 has a directory called FogBugz\FileUploads. This contains file attachments from your FogBugz database. If this directory is present and you wish to preserve your FogBugz data, save it somewhere.
- Delete your FogBugz file directory.
- Delete the FogBugz Windows account.
- If you were using SQL server: using Enterprise Manager, look for the nightly job 'fogbugz_FTE'. (Go to Management > SQL Server Agent > Jobs.) If you find it, delete it. If you do not find it, skip this step.
- You can also delete the FogBugz database and user login if they are no longer needed.
Scenario Two: After uninstalling one instance of FogBugz, I will still be running FogBugz on this computer. All FogBugz installations that will remain are version 3.0 or earlier.
- Run the Services Control panel and look for the Fog Creek Dispatcho service.
- If you find it, stop it. If you do not find it, proceed to Step 2.
- Then run a command prompt (Start | Run | CMD), go into your FogBugz\Accessories folder, and type dispatcho uninstall
- Back in the Services Control panel, look for the FogBugz Maintenance service.
- If you find it, stop it.
- Then run a command prompt (Start | Run | CMD), go into your FogBugz\Accessories folder, and type fogbugzmaint uninstall
- Important step: Exit the Services Control Panel.
- In the Internet Services Manager, restart IIS, and
then delete the virtual directory pointing to your FogBugz install.
- Optionally, to remove a few registry entries, you can unregister each of the DLLs in the Accessories folder:
- From the command prompt type dir /w *.dll
- For each file you see, type regsvr32 /u filename.dll
- FogBugz 3.0 has a directory called FogBugz\FileUploads. This contains file attachments from your FogBugz database. If this directory is present and you wish to preserve your FogBugz data, save it somewhere.
- Delete your FogBugz file directory.
- From the command prompt, go into another FogBugz directory -- the one that will remain on your computer. Chdir into the FogBugz\accessories folder.
- Type register.bat
- Type dispatcho install
- Go back into the services control panel. You should see dispatcho installed. Set the appropriate login identity for it, set it to start automatically, and start it.
Scenario Three: After uninstalling one instance of FogBugz, I will still be running FogBugz on this computer. At least one installation that will remain is version 4.0 or later.
- Run the Services Control panel and look for the Fog Creek Dispatcho service.
- If you find it, stop it. If you do not find it, proceed to Step 2.
- Then run a command prompt (Start | Run | CMD), go into your FogBugz\Accessories folder, and type dispatcho uninstall
- Back in the Services Control panel, look for the FogBugz Maintenance service.
- If you find it, stop it.
- Then run a command prompt (Start | Run | CMD), go into your FogBugz\Accessories folder, and type fogbugzmaint uninstall
- Important step: Exit the Services Control Panel.
- In the Internet Services Manager, restart IIS, and then delete the virtual directory pointing to your FogBugz install.
- Optionally, to remove a few registry entries, you can unregister each of the DLLs in the Accessories folder:
- From the command prompt type dir /w *.dll
- For each file you see, type regsvr32 /u filename.dll
- FogBugz 3.0 has a directory called FogBugz\FileUploads. This contains file attachments from your FogBugz database. If this directory is present and you wish to preserve your FogBugz data, save it somewhere.
- Delete your FogBugz file directory.
- From the command prompt, go into another FogBugz directory -- the one that will remain on your computer. Chdir into the FogBugz\accessories folder.
- Type register.bat
- Type dispatcho install (ignore any failures for this command)
- Type fogbugzmaint install
- Go back into the services control panel. You should see Fog Creek Dispatcho on the list. Set the appropriate login identity for it, set it to start automatically, and start it.
- Go back into the services control panel. You should see FogBugz Maintenance Service on the list. Set the appropriate login identity for it, set it to start automatically, and start it.
NOTE: If you installed the FogBugz Screenshot application on the web server, you can uninstall that by exiting the screenshot application and then deleting the folder that you have it installed in. Then delete the shortcut in the Startup Items in the Windows Start menu.
