#1120 closed Feature Request (Rejected)
Overwrite hidden system files with FileInstall()
| Reported by: | Owned by: | Valik | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | Severity: | None | |
| Keywords: | FileInstall | Cc: |
Description
FileInstall should to be able to overwrite files with +HS attributes without having to check for and reassign the attributes, first. Currently, it fails to do this even if you select the overwrite flag.
Attachments (0)
Change History (10)
comment:1 by , on Aug 10, 2009 at 6:00:02 PM
| Version: | 3.3.1.1 |
|---|
comment:2 by , on Aug 11, 2009 at 9:51:29 PM
Fileinstall is design to install user files. For me that means normal file.
If the user when something more complicated it is up to his script to take care.
For me such feature will not be accepted.
comment:4 by , on Aug 12, 2009 at 8:27:35 AM
User files can be system and/or hidden, not just archive and read-only. I was just thinking that since the other File...() commands all work with +HS so why not FileInstall(). No biggy, it's a simple matter to delete the file first before using fileinstall and then changing the attributes to +HS.
As a compromise, can we get a footnote added to the FileInstall section of the help file that the overwrite function doesn't work for +HS attributed files then.
follow-up: 6 comment:5 by , on Aug 13, 2009 at 6:29:02 AM
Filecopy does not work either
I will add the same remarks
comment:6 by , on Aug 14, 2009 at 3:54:48 PM
| Resolution: | Rejected |
|---|---|
| Status: | closed → reopened |
Replying to Jpm:
Filecopy does not work either
I will add the same remarks
In that case, maybe we should reconsider. I can certainly copy SuperHidden files with stuff like Explorer. Given that the overwrite flag is being used, we should probably do the work for the user. It seems pointless to allow an overwrite flag but still make the user write additional code to ensure the overwrite happens.
The same goes for FileCopy() and FileMove() as well. Also DirCopy() and DirMove() need tested to ensure the overwrite flag always overwrites when it should.
comment:7 by , on Aug 15, 2009 at 1:19:23 AM
Sorry, my mistake - I assumed because FileOpen() and FileMove() worked the others did too. First lesson I guess is not to assume anything. Thumbs.db is a good example of what I want overwritten when installing (re-installing) picture directories.
comment:8 by , on Aug 18, 2009 at 10:12:29 AM
FYI, FileWriteLine() works but _FileWriteToLine() doesn't.
comment:9 by , on Oct 13, 2009 at 6:08:21 PM
| Owner: | set to |
|---|---|
| Status: | reopened → assigned |
comment:10 by , on Jul 21, 2013 at 11:32:31 PM
| Resolution: | → Rejected |
|---|---|
| Status: | assigned → closed |

Automatic ticket cleanup.