Bioruebe / UniExtract2

Universal Extractor 2 is a tool to extract files from any type of archive or installer.
GNU General Public License v2.0
3.48k stars 332 forks source link

Portable mode packaging #223

Open stdedos opened 4 years ago

stdedos commented 4 years ago

Would it be possible to exclude / rename

passwords.txt UniExtract.ini

files?

If someone naively de-compresses the whole archive over his/hers existing installation, all custom settings and passwords are probably lost.

vatterspun commented 3 years ago

This is one of the problems with portable software -- when all the files are maintained in the local folder, it means that a new install will overwrite them unless you hand-pick the files you want to keep.

I try to manage this by renaming the original folder PROGRAMNAME-old and creating another folder with the original name (so in this case Uniextract2 and Uniextract2-old) in it's place. Then I gradually move over files.

B00ze64 commented 3 years ago

I do the same, but it should be easy to rename those 2 files to passwords-initial.txt and UniExtract-initial.ini and copy them over to the real filenames when the program starts and they are not found. This way no update issues...

Bioruebe commented 3 years ago

Thanks for the suggestion, I wasn't aware that this might be a problem. UniExtract creates both files if they don't exist, so simply removing them from the archive should be safe.

stdedos commented 3 years ago

I'll be waiting for this, and then I'll update UniExtract!

Thank you 😀