# YouTubeByClick Portable Help

## Backup your videos from any platform!

Launcher is a small executable placed in the directory called `AppNamePortable` next to `App`, `Data` and `Other` directory which is used to launch an app executable in the `App\AppName` directory. Typically the launcher is named as `AppNamePortable.exe`. The launcher will backup local registry entries or files if any locally-installed application on the host machine on start. On exit the launcher will restore all backed up registry entries or files that previously was backed up. The settings and preferences are preserved in `Data` directory on exit and moved back to its original location to make it able to be read by app on start.

The following is a diagram of how it works:

    - Pre-run ----------------------------------------------------
      + Backup any local registry or files
      + Set any default settings
      + Handle app language
      + Get any passed parameters and pass to the app executable
      + Set environment variables
    - Run --------------------------------------------------------
      + Run app executable and wait till it is done
      + Wait for other executable if needed
      + Close any other executable if needed
    - Post-run ---------------------------------------------------
      + Preserve settings and preferences into Data directory
      + Set original local registry or files back
      + Clean up registry or files that still remains

This is the most common things that the launcher will do. Some additions may need to be added, depending on the app itself.

## Using YouTubeByClick Portable

To save files to another folder than the `Data`, you need to disable the `DefaultDownloadFolder` in `YouTubeByClickPortable.ini` by changing `=true` to `=false`.

Make sure YouTubeByClickPortableRuntimeData.ini (in \Data) has been removed by launcher when leaving.

## Acknowledgements

The Launcher is based on PortableApps.com Launcher and works of John T. Haller of PortableApps.com. The packager is based on PortableApps.com Installer developed by John T. Haller of PortableApps.com. Also thanks to Bernat and Fuken Gruven, that I learned much from their codings.