Background You can skip down to "Meat & Potatoes": Hopefully by now you know that the recommended way of running Puppies is a "Frugal" rather than Legacy install. [If no one else explains that and why in the Beginner's Section soon, I will]. If you've used the Universal Installer or similar to do a "frugal" install, you know that at some point you get to choose between creating a SaveFile and a SaveFolder, and that SaveFolder is 'recommended'. For 'newbies' that is usually the better choice. But for me, because of the way I run Puppies, I prefer a SaveFile despite these disadvantages: (1) It has a fixed size (which can be increased --requiring a reboot-- but not decreased); and (2) comes with the strong recommendation 'keep it small."
Keeping it small is hard to do if you intend to use many Window programs under Wine. Hence, my interest in Wine-portable. At one point I measured the hard-drive space being used by installed Windows programs at 32 Gbs. And that wasn't counting the portable-windows programs which weren't 'installed'.
Accompanying my original publication of Wine-portable 2.16 was the recipe for updating shinobar's original. I plan to republish it later. But frankly, I wasn't able to generate a functional application using a Series 4 wine pet by version2013 although someone else posted he had. That failure eventually lead me to wondering whether Wine could be 'externalized' by some other method. I was especially interested in moving drive_c --into which programs install-- out of 'the SaveFile'.
Years ago DaveS and jrb pioneered the technique of 'externalizing'. More recently, fredx181 and --following his published analysis-- Mike Walsh have published Web-browsers and other applications as portables. Essentially, what is done is to move folders and files from the locations chosen by the original publishers out of those locations and then create symbolic links to them in their new locations from their original locations.
Meat & Potatoes:
Using that technique I was
manually able to move drive_c and most of the files a wine pet will install onto Puppy's Home Partition and still have a functioning application. My approach is not much different than a kid playing with blocks. Visualize what you want to build and move the blocks.
But I don't program.
["A man must know his limitations", Dirty Harry Callahan]. So, I remembering the episode in
Tom Sawyer where Tom convinced his friends how much fun it would be to paint a fence, I sort of 'conned' Mike Walsh into doing the hard work.
He created two applications, Externalize_WINE.sh and WineCFG-MenuEntry.pet which you can obtain here,
https://drive.google.com/drive/folders/ ... UJhWTBvOWs linking them with the explanation here:
http://murga-linux.com/puppy/viewtopic. ... 91#1033146
"Essentially, all that would be involved after installing a wine pet (or loading a wine sfs) is to run a script which would, in the following order:
Download & install Wine pet
Install WINE-CFG Menu entry .pet & run it the first time
[Second and subsequent uses, it brings up the WINE Control Panel].
Remove fake.gz from externalization script in this folder. Place in /root. Run the 'externalization' script.
Okay; further modifications, and.....some testing.
The Wine-CFG menuentry .pet will now also install Pupmessage, required for the script to work. This adds all of 2 kb to the overall size, which is small to begin with; it's a useful addition.....many older Pups and applications use it. Newer Pups now use gxmessage, but the two are sym-linked together anyway.
I've tided up some of the file-manipulation operations, using the '*' wildcard in a couple of places to only copy directory contents as opposed to the whole thing. Some Puppies, again newer ones, and, I think, some of the Slackos? use lib32 for other stuff, so it doesn't all want copying over, just the WINE items.
Running the script now pops up an initial message, advising that the operation CAN take a little while, especially on a flash drive - it's copying all those 1000+ .dlls across that takes the time, of course..!
SEE ATTACHED SCREENSHOT FOR GRAPHICS ORIGINALLY HERE.
Tested in a pristine install of Tahr 606, using version2013's Wine 3.3_v2.1. Installed this first, followed by the Wine-CFG Menuentry, and placing the script in /root for the duration (after removing the fake .gz).
All works nicely, and, I think, does just what you wanted.....as explained in your OP. Updated items attached below, and previous items removed from the post above.