Old 15th June 2003, 21:38   #1
bigchabo
Junior Member
 
Join Date: Jun 2003
Posts: 4
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
bigchabo is offline   Reply With Quote
Old 16th June 2003, 07:34   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Can you attach a script?
Joost Verburg is offline   Reply With Quote
Old 16th June 2003, 09:40   #3
bigchabo
Junior Member
 
Join Date: Jun 2003
Posts: 4
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 [/edit]
bigchabo is offline   Reply With Quote
Old 16th June 2003, 10:31   #4
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
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.
Joost Verburg is offline   Reply With Quote
Old 16th June 2003, 11:21   #5
bigchabo
Junior Member
 
Join Date: Jun 2003
Posts: 4
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.
bigchabo is offline   Reply With Quote
Old 16th June 2003, 11:56   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
.
Attached Files
File Type: nsi script.nsi (4.6 KB, 125 views)

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 16th June 2003, 12:36   #7
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 16th June 2003, 12:52   #8
bigchabo
Junior Member
 
Join Date: Jun 2003
Posts: 4
Thank you very much!!!!
bigchabo is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump