Step 1: Download the flashable .zip file from the forum threads at the end of this post, and place it directly under /sdcard directory on your Desire S or Desire HD.
Step 2: Switch your device off.
Step 3: Press and hold the Volume Up + Power buttons until you get into ClockworkMod Recovery.
Step 4: Opt for a nandroid backup.
Step 5: From main menu, do a (wipe data/) factory reset, wipe cache partition and from advanced menu, wipe Dalvik cache.
Step 6: Once again, go back to main menu. Navigate to install zip from sdcard > choose zip from sdcard and select the .zip file you transferred to your device in Step 1.
Step 7: After flashing is complete, choose reboot system now.
For more information, check out the official threads here and here.