Results 1 to 3 of 3

Thread: Portable application with NSIS

  1. #1
    Join Date
    Dec 2008
    Posts
    67

    Portable application with NSIS

    This is a tutorial you can follow step by step to create a launcher with NSIS and template-free Karl Loncarek. Here is the example of portability of heidiSQL by adapting it to allow the comparison of two techniques. Note that the template used is far more comprehensive than what I have presented to Auto It and I do not describe here that its main functions, ie the creation of a simple launcher for an application requiring only little efforts to be portable. But it can do much more.

    Note: If the program has a driver, it can not be portable in this way.
    If the program has some files in the Windows directory or other system directories: it can not be portable.
    If there is a need to register a dll / ocx: it can not be portable either.

    As with AutoIt, we must know the registry keys used by the soft portabiliser to, and any configuration directories (other than under the application directory) as directories of the application in the current profile. For HeidiSQL no single directory and registry key is: HKEY_CURRENT_USER \ Software \

    HeidiSQL
    Download and open the template Karl Loncarek with a text editor just evolved type PSPad or Notepad + + Let the front lines by a "(semicolon) is the copyright of the template.

  2. #2
    Join Date
    Dec 2008
    Posts
    67

    Re: Portable application with NSIS

    Change template

    You may change the first line to the name, version, and your website.
    Turn to section Define constants of the template.
    The outline of this section begins by all! Define and modify the values to range between two "."
    • define AUTHOR "" => Put your name or nickname between the two ""
    • define APP "" => Set between "" the name of the application and its directory
    • define VER "0.0.0.0" Change 4 zeros to indicate the version number of the launcher.
    • define EXE "" Put the two "" The name of the executable
    • define PNAME "$ (App) Portable" name format, launcher
    • define ICON "$ (PNAME). ico" if you want to put a custom icon (other than default NSIS) put it in the same directory as the template with the same name format as this line, comment (via a semicolon) the line if you want to keep the icon NSIS.
    • splashimage define "$ (PNAME). jpg" If you want to add a splashscreen to the launcher, comment (with a semicolon) the line if you do not want to picture presentation.
    • define regKey "" That is our registry key is added. if you have multiple keys to be inserted by a separate double symbol | | ((AltGr + 6) 2 times) comment (with a semicolon) the line if there is no registry key.
    • define SETTINGSFILES "" This line is for any configuration files (. ini) with their relative path. If there are several separate them by a double symbol | | ((AltGr + 6) 2 times) comment (with a semicolon) the line if there is no. Ini.
    • define SETTINGSDIRS "" Insert the path to any directory Ã*ajouter. when launching the application. If there are several separate them by a double symbol | | ((AltGr + 6) 2 times) comment (with a semicolon) the line if there is no directory to add
    • define INI "$ (PNAME). ini"; comment (with a semicolon) the line.

  3. #3
    Join Date
    Dec 2008
    Posts
    67

    Re: Portable application with NSIS

    Compilation
    Save your launcher is ready to be compiled. Think before you do it to add any icon and any boot image. to enable NSIS to compile this script make sure you have the plugin Registry.nsh essential to this template.

    Compiler then click Start MakeNSISW.

    A simple drag and drop the template file into the window of compiler and compilation done by showing step by step the parameters added to future EXE.
    Check at the end of compilation that is normally increased if the compilation fails, it is here that you will understand why.
    It only remains for you to create the structure of your application portable.
    At the root of the directory you put the launcher you made. You must create two sub directories and App Data. App put you in the directory containing the application files to portable.
    What does this magic template more than the little bit of AutoIt script? Well to start the launcher, it backs up any registry keys, ini files and directories that you have indicated to preserve any existing installation of the software you want to boot. Then it will launch your program. to stop the application, it will save any changes you have generated using the soft phone. He then erase the computer and restore the previous settings and files.

Similar Threads

  1. Downloading ANYDVDHD gives NSIS error
    By Honeykay in forum Windows Software
    Replies: 5
    Last Post: 14-03-2012, 08:16 AM
  2. How To Make A Application Portable
    By catkiller in forum Tips & Tweaks
    Replies: 1
    Last Post: 23-04-2011, 06:14 PM
  3. Portable application for windows
    By Florence_USA in forum Windows Software
    Replies: 4
    Last Post: 04-02-2010, 03:56 AM
  4. Most useful portable application for designers.
    By Farrah in forum Technology & Internet
    Replies: 5
    Last Post: 31-01-2010, 06:18 AM
  5. Kaspersky will not install - NSIS error?
    By tarang in forum Networking & Security
    Replies: 5
    Last Post: 14-03-2009, 11:46 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,711,216.82853 seconds with 17 queries