Hi Folks,I've been very fond of portable software. Some of the portable programs are quite large, so to make the using fancier, I started to compress the portable applications into a WinRar SFX Archive which extracts the software to the tempdir, starts the software and afterward deletes the whole temp Dir.But it got cumbersome to manually extract the icon from the exe, make all necessary settings in the WinRar GUI - so I wrote this script. Nothing spectacular, but (in my eyes) very useful. After that, I added some other options to make it a little more versatile.Features:.if we have a 32Bit and a 64Bit version, it can launch the correct Version (32Bit or 64Bit) fitting to the system the SFX is started on (contains a small exe file 'universallauncher.exe' which expects two parameters for the 32Bit.exe and 64Bit.exe, checks the current system for 64Bit and then runs the correct file). Powerbasic Sourcecode of the exe file is included, of course.automatically extracts the icon from the chosen exe and uses it as icon for the SFX.if the chosen exe file has a version number in it, the version is put in the resulting SFX's filename.can just extract the files to a user-chosen directory OR.can just extract the files to the program files directory (and, optionally, create a desktop shortcut) OR.extract the files to a temp directory and run an exeHave fun with itbest regards,MarcEdited September 27, 2018 by MarcUpdated to 1.3. Okay, new version released.Changes:.now deletes the source folder if it is empty (credits to bcording for the Code).Icon can be chosen manually by clicking on the icon-placeholder.the file to be launched does not need to be an exe - than the default application associated with the file type is launched via shellexecuteTook me some time to update the 'universal launcher' because the rotten virus scanner (McAfee) insists on deleting the powerbasic compiler.best regards,MarcEdited September 27, 2018 by Marcclarified selection of icon. Profiler - yet another backup script for Firefox and Thunderbird profilesIt automatically detects the last recently used profile directories of Firefox and Thunderbird (installed versions, no portables).Clicking the Backup-Button creates a complete Backup of the found profiles with a timestamp.Restore deletes the according profile dir and extracts the content of the selected archive into the profile directory.Uses Winrar as compression tool, but feel free to change it to your needsBest regardsMarcProfiler.au3.
Hey there, im looking for a way to build something similar to winrar sfx archives.My idea is to somehow pack files into the exe (maybe fileinstall)and be able to extract each one to a specific folder if needed.Now here's the tricky part, i can't think of a way to update only part of the files like i do in winrar.And it would require some work with command line to be able to somehow get a list of the files packed in, and extract one for example.Does anyone know of any way to accomplish this? Also, fileinstall that can use variables would be nice.Best regards.
Create a shortcut to unpacked file.DestType is one character wide field, which can have the following values:DCreate a shortcut on DesktopSCreate a shortcut in Start MenuPCreate a shortcut in Start Menu/ProgramsTCreate a shortcut in Startup folderSrcName is a name of archived file.DestFolder is a folder to create a shortcut in. If it does not exist, it will be created by SFX archive.Description is a text string describing a shortcut.ShortcutName is a name of.lnk (shortcut) file created by SFX.ShortcutIcon is a name of icon file associated with shortcut. If you omit this parameter, the default icon will be used. If icon file name does not contain the full path, SFX archive will search the icon file in folder containing unpacked files.All parameters are separated by commas. If you need to put a comma character inside of parameter, enclose the whole parameter to quotes. Repeat quotes twice if you need to insert a quote mark into string. Only DestType and SrcName are required, other parameters are optional.ExampleCreate a shortcut in folder WinRAR on Desktop to archived file winrar.exe with the description 'WinRAR executable file', name 'WinRAR archiver' and icon winrar.ico:Shortcut=D, winrar.exe, WinRAR, 'WinRAR executable file', 'WinRAR archiver', winrar.icoEdited May 9, 2011 by hessam.
Creating a SelF eXtracting (SFX) Archive File Using WinRAR. This will show how the self-extracting file malware-quiz.exe was most likely created by Pedro when using the program WinRAR. Let’s begin the archiving process for this file. Or as I like to phrase it, “Let’s roll this ‘evil’ file up into a self-extracting, innocent looking file with a pretty little MSN butterfly icon on top.”. I have a bortable program. Maded by winrar ( SFX ) it is (. Exe) so when i double Clic it start putting the folder inside its path but SFX can not create a shortcut to this program on Desktop or Start Menu. I will do it manually each time. The SFX option ( inside Winrar) have in GeneralSetupRun after Extraction.