Skip to content
⌘ NSIS Forum Archive

File Overwrite problem

3 posts

devdas_kamath#edited

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#
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