title: How to fix preinstalled driver on Windows 8.1
body: <p>Same situation as described in 
  <a href="https://stackoverflow.com/questions/19275735/preinstalling-driver-on-windows-8-1-fails">Preinstalling Driver on Windows 8.1 Fails</a>.
  But is there a fix how to reinstall the same driver package (no guid change) without reinstalling 8.1?</p>
  
  <p><em>Situation:</em></p>
  
  <p>On a fresh Windows 8.1 installation (no upgrade from 8.0), our USB devices can't be installed. Behavior can be reproduce with a VM:</p>
  
  <ol>
  <li><p>create registry entries with class guid from inf file to show correct USB icon and create own group in device manager:</p>
  
  <pre><code>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{71f11c3d-6aaf-489e-ae80-f705496f1ec3}]
  "Icon"="-20"
  @="My Devices"
  "IconPath"="C:\\Windows\\system32\\setupapi.dll,-20"
  </code></pre></li>
  <li><p>connect device</p></li>
  <li><p>manually install the driver in Device Manager with 'Browse my computer for driver software'. Click 'Install' when prompted for <em>device software</em>. Installation ends with:</p>
  
  <pre><code>Error: Windows found driver software for your device, but encountered an error while attempting to install it.
  The system cannot find the file specified.
  </code></pre></li>
  </ol>
  
  <p><em>Report.wer</em> says at the end:</p>
  
  <pre><code>FriendlyEventName=Could not install driver software
  ConsentKey=PnPDriverImportError
  AppName=Driver software installation
  AppPath=C:\Windows\System32\mmc.exe
  ReportDescription=Windows could not copy all of the files needed to install this device driver software. This sometimes happens when the driver software was not designed for this version of Windows.
  ApplicationIdentity=00000000000000000000000000000000
  </code></pre>
  
  <p><code>ReportDescription</code> does not make really sense, since the manual installation doesn't make any problems. A WHQL signed driver shows the same error.</p>
  
  <p><strong>If the registry is not modified (step 1), everything works fine.</strong></p>
  
  <p><em>Additional information:</em></p>
  
  <ul>
  <li>The custom registry entries worked perfectly since XP including Windows 8.0.</li>
  <li>Removing the 3 registry entries <strong>AFTER</strong> a device has been connected, but <strong>before</strong> trying to install the driver manually, doesn't work either. Looks like creating this registry entry and the detection of the USB device destroys something.</li>
  <li>The cat file is signed, but the sys is not WHQL licensed</li>
  <li>Windows 8.1 (x64, no upgrade from 8.0), didn't test on 32bit</li>
  </ul>
  
  <p><em>Question</em></p>
  
  <p>Skipping the registry modification in the installer is easy, but what is the fix for customers who unsuccessfully tried to install the drivers already?
  I found no way to enable the device without a fresh Windows installation!</p>