Modify

Opened 17 years ago

Closed 13 years ago

#1120 closed Feature Request (Rejected)

Overwrite hidden system files with FileInstall()

Reported by: partypooper@… 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 TicketCleanup, 17 years ago

Version: 3.3.1.1

Automatic ticket cleanup.

comment:2 by J-Paul Mesnage, 17 years ago

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:3 by Valik, 17 years ago

Resolution: Rejected
Status: newclosed

I agree.

comment:4 by partypooper@…, 17 years ago

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.

comment:5 by J-Paul Mesnage, 17 years ago

Filecopy does not work either
I will add the same remarks

in reply to:  5 comment:6 by Valik, 17 years ago

Resolution: Rejected
Status: closedreopened

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 anonymous, 17 years ago

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 partypooper@…, 17 years ago

FYI, FileWriteLine() works but _FileWriteToLine() doesn't.

comment:9 by J-Paul Mesnage, 16 years ago

Owner: set to Valik
Status: reopenedassigned

comment:10 by Jon, 13 years ago

Resolution: Rejected
Status: assignedclosed

Modify Ticket

Action
as closed The owner will remain Valik.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.