- NSIS Discussion
- Overwirte question
Archive: Overwirte question
Freezerman350
10th March 2005 21:19 UTC
Overwirte question
Sorry i have to repost i dont find my last post
Did someone know how to auto ignore file when the file is already in use ?
I dont wnna use SetOverWrite because, if the file is not currently in use i waana be able too overwrite de file thx
kichik
10th March 2005 21:22 UTC
You double posted so I removed it. The first post and the answer can be found at:
http://forums.winamp.com/showthread....hreadid=182018
Freezerman350
10th March 2005 21:29 UTC
In this way, i read your explaination. but in my case
a fave my main programme xyz.mde, and i wanna replace by a new xyz.mde...but when the program is use my a termenal server, many user use the xyz.mde so i cant overwrite it.. :-(
So i wanna create a setup who will simpely replace the file only when it possible. In the case that the file is not overwrited, i will pop-up a warning just like " please disconnect your remote pc, because a cant bla bla bla... "
so waht can i do ?
kichik
10th March 2005 21:31 UTC
You can use `SetOverwrite on` and set the error text to "please disconnect..." using FileErrorText.
Freezerman350
10th March 2005 21:33 UTC
how work Setoverwrite ?
It dont overwrite the file if the file existe ?
or overwrite the file only if it can ?
kichik
10th March 2005 21:38 UTC
If you use SetOverwrite on and the file can't be overriden, a message box with the text specified using FileErrorText will pop up, asking the user to abort, ignore or retry. If it can be overriden, it will be, no questions asked.
Freezerman350
10th March 2005 21:42 UTC
this is already this way....
But the program is for a Terminal server... I need ne question.. no pause.. no interruption
You can, replace it.. else, forget it...butdont stop running... this is what i want...
So, this is ahy i need an auto-skip file if the file is already in use...
kichik
10th March 2005 21:44 UTC
That's exactly what SetOverwrite try does. What's wrong with it?
Freezerman350
11th March 2005 14:33 UTC
Question about, the same subject
so... SetOverwrite dont ork.. when it On a get the same error
"error cannot open for writing"....
when i set it to off.. the program skip all existing file, with reason,....
so... hy everybody say " Use set overwrite " ??
kichik
11th March 2005 14:39 UTC
If you use SetOverwrite try you won't get any error message. The file will simply be skipped. That's exactly what you've asked for:
You can, replace it.. else, forget it...
Freezerman350
11th March 2005 14:43 UTC
Ok... found it
it not Set Overwrite On.. or Off it TRY
Thx