devdas_kamath
4th January 2008 04:15 UTC
File Overwrite problem
Dear sir,
1) if a exe file is running and NSIS will try to overwrite the file with message box Abort,Retry or ignore. pls let me know how to skip the message and on restart it should overwrite
2) installlib.noshareddllincrease_${INSTALLLIB_UNIQUE}:"
failed to under stand the syntax can any one explain.
thanks in advance.
regards
Devdas M. Kamath:(
Afrow UK
4th January 2008 10:47 UTC
Something like this for #1:
!macro Overwrite Source Destination
File `/oname=${Destination}.new` `${Source}`
Rename /rebootok `${Destination}.new` `${Destination}`
!macroend
!define Overwrite `!insertmacro Overwrite`
${Overwrite} `$INSTDIR\myfile.exe` `source\myfile.exe`
You can check if a machine needs to reboot with IfRebootFlag.
Not sure where you got #2 from? That's a jump to label name.
Stu
devdas_kamath
5th January 2008 03:47 UTC
Dear sir,
thanks a lot.
regards
devdas m. kamath
:D :D :D