WhoDo found out that SFS files can't be unioned to a Full-HD install of Puppy.
It certaunly seems like it should work, but so far no luck, IF you do it... TELL US!

So I've made this SFS file installer that copies the contense of an SFS file to a FULL-HD install.

To remove the installed files, a file is needed inside the SFS file called:
(SFS file mount point)/.sfs/(name of sfs file).files
It lists all the files contained in the SFS file so they can be removed.

Current SFS files don't have this, so I added a routine to make the uninstall file.
So if there's no uninstall file, one's made so the copied files can be removed.

WARNING... There's no check for FULL-HD install... DON'T USE IT ON ANYTHING ELSE !
I made that simple mistake & it filled up the SAVE file before I could stop it.
When I figure out how to accurately detect a full-install, I'll add it to this app.

WARNING... When you click on the SFS file in the file dialog... IT WILL be INSTALLED !
Maybe I'll add a second chance dialog asking: "Install: Yes or No?".

ATTENTION: I don't have a full-install of Puppy to test this on... EXPERIMENTAL !

If you have a full-HD install, BEWARE of testing this app.!!!
It's best to make a separate Full-HD install as a TEST SETUP.

Your script has worked correctly in my Puppy Linux 2.14, it is a Full-HD install of Puppy.

Your subject requires a small contribution, it is that once installed some of the Expansion Packs is necessary to open a “console” to execute “fixmenus”, with this, We will obtain that appear the programs installed in the “Start” of jwm.

Sunburnt-
What happens to a file that exists on the harddrive BEFORE the SFS is loaded? The way you have described your script it sounds as if the file name exists in the SFS package it will be overwritten and then removed when you uninstall the SFS.

For example say Firefox is installed in my base system and then I load the web.sfs that contains Firefox upon removal of the SFS Firefox will be gone.

Am I missing something? How are you making this magic? Or is this really a install only utility.

To install apps. like browsers, you'd want to backup your Bookmarks file & restore
it to the newly installed browser, upgrading apps. is almost always like this.

ATTENTION: Things I need to know:

In the dir. where you put sfsinstaller (I'll set a fixed dir. in /root/my-applications),
did the file "(Name of SFS file with NO .sfs Extention).files" get made?
Each sfs file installed has a uninstall file made for it, look at it to see if it's got
a long list of paths & files that were copied, if so... please let me know.

I've added a "File Copy" dialog box as dsearles suggested.
I'll also add a "disk free space check" to be sure copying doesn't run out of room.

In the dir. where you put sfsinstaller (I'll set a fixed dir. in /root/my-applications),
did the file "(Name of SFS file with NO .sfs Extention).files" get made?
Each sfs file installed has a uninstall file made for it, look at it to see if it's got
a long list of paths & files that were copied, if so... please let me know.

Nope. Didn't happen for me. I got the file sfs.list only but no sfs.files with a list of the contents. That said, everything else worked like a charm!

FWIW, I have created a .desktop file for /usr/share/applications that will add the SFS manager to the XDG menus under Setup when you do a fixmenus. It assumes the SFS manager scripts are in /usr/sbin which is probably where they need to be anyway, so they'll survive a remaster. OTOH, if you want to put everything in /root/my-applications then editing the .desktop file is very easy to do, as you well know.

WhoDo; I changed the desktop file you made to better suit the utility.
It's really a SFS file installer for ONLY Full-HD installs of Puppy.
I thought the desktop file should include all these aspects of the app.
The new file's name is good & so no need to change it.
Note the "Exec=" line is a full path to the run file: sfsinstaller

I don't think I'll bother to take the time to make an installer for it,
maybe with any luck Barry will include it permanently in future releases.
If you guys & I get it tested out to work well, it'll sure help.
I'll finish somemore testing & with the grace of god it'll be ready.Last edited by sunburnt on Sun 08 Apr 2007, 01:51; edited 1 time in total

I still need to know if it makes an install file for the installed SFS file in:
/root/my-applications/sfsInstaller_full-HD/install-files/
The file's name will be the same as the SFS file, & ".files" replaces the ".sfs" ending.
If the file's there, look at it's text to see if it's: /paths/files of the copied files.

I still need to know if it makes an install file for the installed SFS file in:
/root/my-applications/sfsInstaller_full-HD/install-files/
The file's name will be the same as the SFS file, & ".files" replaces the ".sfs" ending.
If the file's there, look at it's text to see if it's: /paths/files of the copied files.

No, Terry. I've just installed OOo_215.sfs (twice) and although the package is correctly installed and mounted, and the appropriate entries appear in XDG menus, there is no file in the install-files directory that would allow an uninstall to take place.

The program also now creates an empty sfslist file, presumably because there is no OOo_215.files in the install-files folder, so it doesn't even recognise that the package is installed in the first place.

Hope that helps._________________Actions speak louder than words ... and they usually work when words don't!
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com

WhoDo; Yep, I half expected that, the TableBox still reads the file sfslist, but
it's written from a dir. listing of the /install-files dir., so no files... no listing.
When uninstalled, an app's install file is read for the files to delete, & then
the install file itself is removed so it's gone from the TableBox list.

I'll look at why my code is brain dead on this item, should be easy to fix...
At least it looks like everything else is working properly though.
Hey! I just might be getting half way good at this finally! (don't go overboard)

I've got Easter dinner with the folks, I'll take a quick look at it here to see if
there's anything obvious, otherwise I won't be at it until this evening.

To accomodate DennisF's worry about preexisting files being overwritten,
I had it append "_sfsBAK-0, _sfsBAK-1, etc." to preexisting files.
It goes up to _sfsBAK-3, so it'll backup the same file up to 4 times.
UnInstall renames the backup files to restore them in order.

The UnInstall is the least tested, I have no way to test if files are removed.
Everyone's said that the Install works good... So the UnInstall is the test focus.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum