Friday, June 17, 2016

PortableWares' Installer + Launcher + NSIS

Here is PortableWares' build of PortableApps.com Installer and PortableApps.com Launcher Generator. I also included his build of NSIS.

Launcher:
- You have to edit PortableApps.comLauncher.nsi in PortableApps.comLauncher\Other\Source.
- I did it this way to reduce variables, and appinfo.ini error if it's encoded in Unicode.
- There are other fixes... such as if user is not Admin.. PAF fails to read/write to the registry, etc.

Installer:
- You have to edit PortableApps.comInstaller.nsi in PortableApps.comInstaller\App\installer.
- This gives more control..  but you'll have to research NSIS ..

Learn the source (NSIS language).
First: monitor program with installation monitor (such as Total Uninstall, SysTracer).Second: see what the settings are used by program (registry or files and folders).Third: backup the settings by editing the source in Function Init and restore settings from portable folder.Fourth: restore the settings by editing the source in Function Close save settings to portable folder.
So... would be like this:Before app launched:launcher would backup settings, ex: registry: HKEY_CURRENT_USER/Software/MyProg => HKEY_CURRENT_USER/Software/MyProg-BackupByMyProgPortable, ex: folders: %appdata%\MyProg => %appdata%\MyProg-BackupByMyProgPortableand restore settings from (\Data).
Launcher would execute main exe of program and wait until program closed by user.
After program closed:launcher would restore backuped settings HKEY_CURRENT_USER/Software/MyProg-BackupByMyProgPortable => HKEY_CURRENT_USER/Software/MyProg, ex: folders: %appdata%\MyProg-BackupByMyProgPortable => %appdata%\MyProgand save settings to portable folder (\Data) so if you change to another computer, settings are kept.

Online Manual

3 comments:

  1. Launcher & Installer from PortableWares (May 2015)

    https://www.upload.ee/files/5880787/Launcher___Installer__May_2015_.rar.html

    ReplyDelete
  2. I use the Oct 8 version:

    http://www.mediafire.com/download/cqbddazh6b976j2/OCT8.rar

    ReplyDelete