Setting default web browser in VS 2005

After installing the latest Firefox 2.0 alpha, I realized my VS 2005 no longer could start debugging. It complained with a “Could not start program …\firefox…” message as it couldn’t find my browser anymore after I upgraded it. After a quick Googling, found a blog with the answer. Right-click your web project, and select Browse With…. Presto! The menu you were looking for…

Dunno if this works in previous versions; I rarely used alternative browsers back then, or had to dink with this setting.

Updating a Windows Service

Ever need to update a Windows Service? I had a problem today at work, my PC was incorrectly setup by the technical services team, one of my services’ “Path to Executable” was pointing at the wrong .exe. I had seen the sc.exe command-line command before for creating services, but I only wanted to modify an existing service.

Luckily I found a page online that mentioned these settings are in the registry. Browse to the following hive and see all the settings for your service that you can modify, and at least the “Path to Executable” seemed to take effect immediately with no reboot (Windows XP Pro SP2).

DISLAIMER: Do this at your own risk! As always touching the registry is risque business )

\\HKEY_LOCAL_MACHINE
\SYSTEM
\CurrentControlSet
\Services
\___YOUR_SERVICE_NAME___