|
|
#1 |
|
Junior Member
Join Date: Jan 2009
Location: Seattle
Posts: 3
|
How do we overwrite a running file
Hi All,
My install script (NSI)already set SetOverwrite on but when the file (dll or exe) is running, NSI setup just ignore it, and it will not be upgraded even restart the computer. Section "-Compsect" SEC0000 SetOutPath $INSTDIR SetOverwrite on File ..\ty.ocx File ..\logo.gif File ..\tty.dll File ..\vcredist_x86.exe Is there any solution for this? BTW, I want to conditional install vcredist_x86.exe if it is not installed, I can check registry, how do i implement it in NSI script Best Regards Seckg |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
See /rebootok for the File instruction.
Stu |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Nov 2003
Location: Vancouver, BC
Posts: 48
|
DLL/exe setup (including rebooting if needed): http://nsis.sourceforge.net/Docs/AppendixB.html
Check if exe is running: http://nsis.sourceforge.net/FindProcDLL_plug-in Kill exe: http://nsis.sourceforge.net/KillProcDLL_plug-in Conditional installation of VC++ 2005 redist SP1: code: Non-SP1 is here HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A49F249F-0C91-497F-86DF-B2585E8E76B7} |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jan 2009
Location: Seattle
Posts: 3
|
It seems that /REBOOTOK only works with
Delete command, doesn't work with File command. -Seckg |
|
|
|
|
|
#5 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
That could be done by examining the target system for certain running processes before the actual installer/uninstaller loads as already suggested above by Ivan.
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
|
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jan 2009
Location: Seattle
Posts: 3
|
Thank you very much, it helps.
-Seckg |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|