title: Application failed to start because it could not find or load the QT platform plugin "windows"
body: <p>I have looked through all of the questions that appear to be related on stack overflow, and none of the solutions seem to help me.</p>
  
  <p>I am building a Qt application with this setup:</p>
  
  <ul>
  <li>Windows 7 Professional x64</li>
  <li>Visual Studio 2012</li>
  <li>Qt 5.2.0 built with <code>configure -developer-build -debug-and-release -opensource -nomake examples -nomake tests -platform win32-msvc2012 -no-opengl</code></li>
  <li>Project uses QtSingleApplication (qt-solutions)</li>
  <li>Application is a 32 bit application</li>
  <li>qmake run with the following: -makefile  -spec win32-msvc2012</li>
  <li>.pri uses <code>QMAKE_CXX += /D_USING_V110_SDK71_</code></li>
  </ul>
  
  <p>I can build and run my program fine on my development machine (noted above); I can also install and run the package from Program Files directory on dev machine.</p>
  
  <p>When I install and run on a Windows Vista machine (multiple machines)</p>
  
  <ul>
  <li>VC++ redist 2012 11.0.61030.0 installed</li>
  <li>VC++ redist 2010 10.0.40219 installed</li>
  <li>plus 2005, 2008 versions of redist</li>
  </ul>
  
  <p>(also fails on a clean install of Windows 7)</p>
  
  <p>I get: </p>
  
  <p><code>Application failed to start because it could not find or load the QT platform plugin "windows"</code></p>
  
  <p>So I followed the instructions and added a .platforms/ directory, and added qwindows.dll (also added qminimal.dll and qoffscreen.dll); I also added libEGL.dll, libGLESv2.dll (even though I shouldn't need them I don't think)</p>
  
  <p>Once I added qoffscreen.dll I now get the additional message: <code>Available platform plugins are: offscreen</code></p>
  
  <p>If I run through Dependency Walker I get this error listed:</p>
  
  <pre><code>GetProcAddress(0x76CA0000 [KERNEL32.DLL], "GetCurrentPackageId") called from "MSVCR110.DLL" at address 0x6AC6FDFA and returned NULL. Error: The specified procedure could not be found (127).
  </code></pre>
  
  <p>and then further down get the:</p>
  
  <pre><code>GetProcAddress(0x745A0000 [UXTHEME.DLL], "BufferedPaintUnInit") called from "COMCTL32.DLL" at address 0x745FFBF8 and returned 0x745AE18C.
  This application failed to start because it could not find or load the Qt platform plugin "windows".
  
  Available platform plugins are: offscreen.
  
  Reinstalling the application may fix this problem.
  </code></pre>
  
  <p>Any ideas how to fix this dll issue?</p>