For Windows :
- Plug in your IPhone, and cancel the windows pop-up box
- Click Start -> Control Panel -> Scanners & Cameras
You should see a "Apple IPhone" listed as a digital camera. Right-Click -> Properties -> Events (Tab) -> Select "Take No Action"
From now on you shouldn't get the windows pop-up When pluggin in the Iphone