|
|
|
|
#1 | |
|
Junior Member
Join Date: Nov 2009
Posts: 8
|
Why my install is blocked by svchost.exe
Hello. Why my setup exe is blocked by svchost.exe (I know it from LockHunter
which cannot unlock) after finished instaling. When I change OutFile line in script below and add some text before filename because old name is locked and cannot be overwritten I can delete setup file. Old setup can be deleted only after reboot. I turned off KAV 2010 anti virus but it do not help. I'm using NSIS 2.46 under Windows 7 (64 bit) with SP 1 and I have UAC turned off. Please help me. The sctipy is below. And sorry for my bad English. Quote:
|
|
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Never had this problem before but I've never used that anti-virus either. What if you output as notepad.exe instead? Also you should !include MUI2.nsh instead of MUI.nsh (MUI2 uses nsDialogs which you are already using).
Stu |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Nov 2009
Posts: 8
|
Hmmm when I named notepad.exe I can easly change after install so file is not locked. But when I named before sss.exe pft.exe or similar I have problem with lock. Maybe is other reason why in 99% of cases first file will be blocked but after changing filename and copy by Sgift+F5 under Total Commander the new file after install is not blocked.
EDIT: hmmm I do not know why but now under name winuae_tiny_launcher_setup.exe everything is fine. So thank you for hint with filename and wit MUI2. |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jan 2010
Posts: 39
|
Same problem here
Hi guys,
I also have this problem, the svchost.exe is locking my installer file after I install the application. I can't unlocking it and can't recompile the script as the output cannot be written. I have KAV but it's disabled. I'm running Windows 7 Enterprise 32bit and I use Eclipse as IDE for writing NSIS script. Thanks in advance for any suggestions, Daniel
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jul 2010
Posts: 5
|
I have this problem also.
I'm using Windows 7 Ultimate 64-bit, no anti-virus or suchlike installed. The first install triggers an svchost process that sits at 25% CPU usage. If I kill that process then I can recompile, otherwise the output file cannot be overwritten. Been using NSIS for other projects on the same machine with no problems. Current installer isn't hugely different to what I have done before. |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Attach your script or a minimum script which reproduces the problem.
Stu |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jul 2010
Posts: 5
|
I've found the source of the problem but not a solution. My installer includes an MSI file that installs some of our software components. It looks like that .msi (driven by InstallShield) isn't completing cleanly and it's leaving a rogue msiexec process behind.
I'm using ExecWait to run the .msi - is there a better way? Thanks, Mark |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Jul 2010
Posts: 5
|
Actually, my previous post was incorrect.
I changed the name of the Outfile as suggested in an earlier post and that seems to have fixed it. Previously the filename was similar to: "blahblahblah Setup v1.2.exe" Changing it to: "blahblahblah Setup.exe" fixed it. Weird! |
|
|
|
|
|
#9 |
|
Senior Member
Join Date: May 2007
Location: Maple Grove, Minnesota
Posts: 134
|
This is a bit late, but we have run into an issue where the "Windows Defender" service is responsible for locking files. Stopping the Windows defender service releases the lock and you do not have to reboot. The Windows Defender service is running as an svchost.exe in task manager.
|
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Nov 2009
Posts: 8
|
Ok, but I do not use Windows Defender. Only KAV 2010 is working as antivirus software in background.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|