|
|
#1 |
|
Junior Member
Join Date: May 2007
Posts: 3
|
Hi,
I just started doing NSIS installer, and there is one thing that I cannot understand... I have a custom window where I can select if I should do a new installation (SetOverwrite on) or an update (SetOverwrite off) for some files. This is working great. But SetOverwrite on/off doesn't seems to be working always. This doesnt work even if MessageBoxes confirm that the correct SetOverwrite was done: code: It works if I do one of the folowing: code: Or it works (as it should) if I do this: SetOverwrite off File "${SRCDIR}\web.config" -- So, What is the scope of SetOverwrite ??? |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: May 2007
Posts: 3
|
I'm still reading and trying many ways, but nothing I do work correctly... But as I was reading the manual, could all those problems be explained by the fact that SetOverwrite is a compiler flag and not an instruction ?
If so.... it kind of s*cks no ? |
|
|
|
|
|
#3 |
|
Major Dude
|
yea, setoverwrite is interpreted by the compiler and thus the setting is hardwritten into the installer on compile time.
setoverwrite is not used on runtime so you can't use it to change the overwrite mode during installation. hand by comm@nder21 ---------- WiKi pages:CreateInternetShortcut|Enhanced FindWindow|Parse CSV-Data|Open/Close CD-Drive|Installer without Icon|Vista application compatibility |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: May 2007
Posts: 3
|
Thanks for the information. So there is no other way to set this overwrite at runtime ?
Hoping my other code constructs will still work ok ! |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|