Archive: Mysterious overwriting error


Mysterious overwriting error
Hi everybody,

My installer has been working yet, but as I compiled it with NSIS 2 Beta 3 the installer shows error messages like: "Cannot overwrite /dir/file.ext".
This occurs only when the installer tries to copy files to a sub directory in the intallation directory.
I wonder if the sub dirs are write protected, because the installer just created them.

The installer worked fine with NSIS 2 beta 1


thanks
bigchabo


Can you attach a script?


The Script
This is my first NSIS-Installer (for my first published Program). I think it's very disordered, but it works fine with beta 1
Thank you for your interest!

Here is the script:

[edited by kichik]please attach large scripts next time. script attached below :down:[/edit]


You don't have to set the file attributes. Do you get a messagebox with an error? Make sure no other application uses the directory, try to reboot your system.


The SetAttribute-statement was just a try.

The error messages are displayed in series of messageboxes.
These messages only occur for files that are to be written in a sub directory.


.


There was a bug in the code that was supposed to fix a bug in your code. Use NSIS Update to get the latest version from CVS and it should work.

The problem in your code is that there is an ending quote on each File command but no opening quote. This is treated as part of the file name but is an invalid file name. Therefor NSIS can't write that file.

BTW, you can replace CheckJava by .onInit to make sure that check is made before everything else.


Thank you very much!!!!