Cant Install the latest sdk, qmake.exe being used by another process



  • Hi all,
    just downloaded the latest nokia qt sdk (for windows 7). I'm getting the following error during installation:


    Installer Error

    Error during installation process:
    Qt patch error: Can not open C:/NokiaQtSDK/Symbian/SDK/bin/qmake.exe(The process cannot access the file because it is being used by another process.).

    Retry Ignore Cancel

    Its not the first time I'm installing nokia qt sdk. I was running the 1.0 sdk and it worked fine. I started its update application, and maybe due to battery or some other reason the laptop restarted while the update process was on going, since then the update never completes and so I decided I should uninstall it and install it again, but my old installer of 1.0 sdk version didnt install properly when I tried and gave the same error as above.

    So I decided to download the latest sdk thinking maybe it'll install fine but to no avail.

    Plz help. Thanks.



  • Hi, its been days since i posted this question and there is no reply, I hope it is not wrong place to ask this question.



  • [quote author="qtftw" date="1289669458"]Hi, its been days since i posted this question and there is no reply, I hope it is not wrong place to ask this question.[/quote]

    Be patient :-P
    I think less people is in the DevNet these days due to events (Qt Dev Days San Francisco last week, MeeGo Conf next week) and/or vacations.

    Well, I have no idea of what's happening, since I don't use Windows for a long time. The default recommendation would be 'restart your machine, then try again', but I suppose you already did that. If you think it is a bug in the SDK itself, i.e. not a Windows bug, fill a "bug report":http://bugreports.qt.nokia.com/ about it.

    Let's see if anyone else can help here too.



  • oh its ok then :)
    Yea I have like tried everything. The only thing left is reinstall windows just to install qt sdk, and if that has to be done then its definitely a bug in qt sdk.
    I hope when ppl come back they do have a look at this post and help me debug. I have dual boot fedora in this laptop but due to some other software I get to use windows more and it wud be really gud if this installation starts working.



  • Have you tried to just delete the NokiaQtSDK folder and reinstall? I ran into an issue once while uninstalling and this worked for me



  • Yes I have tried that also. Tried installing in another folder also. Tried installing in another partition too. Also cleared the temp folder in case something is wrong there with some previous installation files.



  • Hi, I am facing the same problem while installing it on my machine. But when I installed it on a colleague's machine it worked like a charm. Now the difference is I already have older versions of SDK on my machine and colleague's machine didn't have any. Could that be the reason?

    BR
    Rupesh



  • Try disabling your virus protection software during install.



  • Hi,

    Thanks for suggestion, I just tried what you said. but that doesn't work either. :(

    BR
    Rupesh





  • Have you tried to figure out "which process":http://technet.microsoft.com/de-de/sysinternals/bb896655 is accessing qmake?
    @
    handle qmake.exe
    @



  • The output is
    @
    E:\Downloads\Handle>handle qmake.exe

    Handle v3.46
    Copyright (C) 1997-2011 Mark Russinovich
    Sysinternals - www.sysinternals.com

    No matching handles found.
    @
    Then I clicked on Retry! And ran handle again. Output:
    @
    E:\Downloads\Handle>handle qmake.exe

    Handle v3.46
    Copyright (C) 1997-2011 Mark Russinovich
    Sysinternals - www.sysinternals.com

    System pid: 4 type: File CC0: E:\QtSDK\Desktop\Qt\4.7
    .3\mingw\bin\qmake.exe
    @

    After some moments it showed same error again. Running handle again produces same output
    @E:\Downloads\Handle>handle qmake.exe

    Handle v3.46
    Copyright (C) 1997-2011 Mark Russinovich
    Sysinternals - www.sysinternals.com

    System pid: 4 type: File CC0: E:\QtSDK\Desktop\Qt\4.7
    .3\mingw\bin\qmake.exe
    @



  • This means that some piece of kernel mode code (driver, filter, service, ...) is accessing the file.

    Be sure that your virus protection software is really disabled - most products keep running even though disabled and need a restart or a complete removal for having them turned off.

    If you can exclude your virus protection software my next bet would be the bloody Application Experience (or Application Compatibility Assistant) which can be disabled by group policy Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows Components -> Application Compatibility and the Application Experience service.



  • Hi, I am not sure how to change the policies. But I uninstalled the AV and restarted the machine and re-ran the installer. I got the same error. What should I try next?

    BR
    Rupesh



  • You can edit group policy objects using the Group Policy Editor (Windows + R, gpedit.msc).



  • I get "Windows can't find gpedit.msc. Make sure you typed the name correctly, and then try again.
    I have Windows 7 Home Basic Edition. Does that have anything to do missing gpedit.msc?
    I searched whole PC for gpedit.msc but found none! :(



  • [quote author="rupeshbhurke" date="1311430568"]I get "Windows can't find gpedit.msc. Make sure you typed the name correctly, and then try again.
    I have Windows 7 Home Basic Edition. Does that have anything to do missing gpedit.msc?
    I searched whole PC for gpedit.msc but found none! :([/quote]

    The Group Policy Editor is not included in Home editions. However, it is just a MMC snap-in which operates on registry entries.

    See "this list":http://www.microsoft.com/downloads/info.aspx?na=41&srcfamilyid=18c90c80-8b0a-4906-a4f5-ff24cc2030fb&srcdisplaylang=en&u=http://download.microsoft.com/download/8/F/B/8FBD2E85-8852-45EC-8465-92756EBD9365/WindowsServer2008R2andWindows7GroupPolicySettings.xlsx, Administrative Templates, line 16+.



  • I had the same problem.
    I tried to solve it so:

    • use unlocker, handle (from sysinternals.com) to find and remove locked deskriptor
    • disable antivirus (NOD 32)
    • uninstall antivirus

    But when run qt installer with windows xp sp3 compatibility it works fine.
    PS: OS - Windows7 Ultimate 32Bit



  • [quote author="Lukas Geyer" date="1311332544"]This means that some piece of kernel mode code (driver, filter, service, ...) is accessing the file.

    Be sure that your virus protection software is really disabled - most products keep running even though disabled and need a restart or a complete removal for having them turned off.

    If you can exclude your virus protection software my next bet would be the bloody Application Experience (or Application Compatibility Assistant) which can be disabled by group policy Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows Components -> Application Compatibility and the Application Experience service.[/quote]

    Actually the error has nothing to do with "Antivirus Software" (I don't run any) and doesn't even make sense to begin with unless the installer was trying to write to qmake.exe. The reason that the main system process shows up the second time you run handle is that handle uses that process to check for other open handles, if you exit the command prompt then run it again you'll get no matching handles again. Basically this issue just comes down to sloppy programming and shoddy QA.

    I encountered the same problem along with about a half a dozen unrelated errors during the install process
    until I eventually gave up and cancelled the installation. Never having heard of Qt I was pleased to learn of its existence and was looking forward to trying it out. However, even being a developer myself and fairly accustomed to bugs/glitches etc... I still feel that this type of thing goes way beyond what I consider to be an acceptable QA oversight. To be frank the fact that this IDE is being represented as a production/release quality product is simply ridiculous, personally I would be embarrassed to be associated with such a pathetic piece of crap.



  • You can also set property "windows xp sp3 compatibility" for qmake.exe when warning message is appear. Then press "Retry" and install QtSDK fine again!



  • Right, looks like a compatibility issue w/Win 7. I've had the same problem installing ... same qmake error.

    GOOD NEWS!!! 100% success running the offline installer under Windows XP SP3 compatibility mode ("run as admin" checked, but not sure if necessary).

    Right-click the .exe, select Properties, and then the Compatibility tab.

    Give it a try. I haven't tested the app yet, but looks solid at a glance.



  • @kerlaeda said in Cant Install the latest sdk, qmake.exe being used by another process:

    I had the same problem.
    I tried to solve it so:

    • use unlocker, handle (from sysinternals.com) to find and remove locked deskriptor
    • disable antivirus (NOD 32)
    • uninstall antivirus

    But when run qt installer with windows xp sp3 compatibility it works fine.
    PS: OS - Windows7 Ultimate 32Bit

    Thank you so much! You saved my day ;)
    Had the same error, but running the QT- installer with windows xp sp3 compatibility ("run as admin" checked) worked smoothly :)
    I also disabled my antivirus- software for the time of installation.
    My system: Windows 7 Home Premium 64Bit

    Best regards from Berlin


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.