«« Site Rescued »»

While the site is still going to move from its current host, a new site will now take its place. More Info.

The new site may have less content, but the core will now remain. And it will now play nicely with phones! Keep an eye on the DelphiDabbler Blog for news.

CodeSnip Code Snippets Repository

Release: 4.15.1
Date: 22 September 2016
O/S: Windows 2000 and later

Installation, Registration and Removal

New CodeSnip Micro-site
CodeSnip now has its own micro-site (currently in beta) that will eventually replace this page.
Please check it out at http://codesnip.delphidabbler.com. Comments and bug reports are welcome.
This new site has a fresh new look and is responsive to different browser sizes.

These notes apply to the current release of CodeSnip 4 only. There are different instructions for the different editions:

Standard Edition


You will need administrator privileges to run the setup program for the standard edition. If you are using a non-admin user account on Windows 2000 or XP you should run setup as administrator. By default Windows Vista and later will require an admin password if running as a standard user and setup will attempt to elevate the process. If UAC prompts are disabled you must run setup as administrator.

CodeSnip v4 will install alongside any v3 or earlier release that may already be installed. If you want to replace the earlier version simply uninstall it in the usual way. Uninstalling v3 or earlier after installing v4 will have no adverse affect on v4.

CodeSnip's installation program is named codesnip-setup-4.x.x.exe, where x.x is the program's minor version number. The install program may be distributed in a zip file.

Close any running instance of CodeSnip, run the install program then follow the on-screen instructions.

The installer makes the following changes to your system:

  • The main program's executable file and documentation are installed into the chosen install folder (%ProgramFiles%\DelphiDabbler\CodeSnip-4 by default).
  • Files required by the uninstaller are stored in the main installation's Uninst sub-folder.
  • The program's uninstall information is registered with the Programs and Features (a.k.a. Add / Remove Programs) control panel applet.
  • A program group may be created in the start menu (optional).
  • A %ProgramData%\DelphiDabbler\CodeSnip.4 folder is created. A configuration file is stored in the folder. If the online database is downloaded, it will be stored in a Database sub-folder, unless you have changed the database location (see below).
  • An %AppData%\DelphiDabbler\CodeSnip.4 folder is also created. This is used to hold a file that stores per-user configuration data and, sometimes, another file that records any favourite snippets. A UserDatabase sub-folder is used to store any user defined snippets. These folders are created when CodeSnip is first run.
    Users can move the user defined snippets data from the UserDatabase sub-folder to another location, in which case UserDatabase will not be present. You might want to do this to place the snippets data in a folder that will be backed up, e.g. a Dropbox or GoogleDrive sub-directory.

If you are updating to CodeSnip 4 from version 3 or earlier, CodeSnip will give you the option of bringing forward your old settings and / or user defined database. This happens the first time v4 is run for each user.


CodeSnip can be uninstalled via Programs and Features (a.k.a. Add/Remove Programs) from the Windows Control Panel or by choosing Uninstall DelphiDabbler CodeSnip from the program's start menu group.

Administrator privileges will be required to uninstall CodeSnip. Windows Vista and later with UAC prompts enabled will prompt for an admin password if necessary.

The uninstall program will delete any local copy of the online Code Snippets Database but will leave any user defined database, configuration data and favourites intact. To remove user defined databases and configuration data, delete the %AppData%\DelphiDabbler\CodeSnip.4 directory and all its contents for each user who ran CodeSnip. If any user has moved the user database directory those directories also need to be deleted manually.

Portable Edition


The portable edition of CodeSnip 4 is distributed in a zip file that contains the program executable, the help file and various documentation files.

Install the program using the following steps:

  1. Mount the storage medium on which you want to install CodeSnip.
  2. Create a folder on the storage medium in which to "install" CodeSnip.
  3. Copy the files CodeSnip-p.exe (the executable program) and CodeSnip.chm (the help file) into the folder you created.
    CodeSnip does not need the other files included in the zip file in order to run, but you may find them useful. Copy them if you wish.

Run the program by double clicking it. When it first runs it will created two sub-directories within the folder where you installed the program. These will be named AppData and UserData. Do not remove these directories or alter any of the contents. CodeSnip uses them to store configuration data along with your code snippets.

No files are written to the host computer and the registry is not modified.


Simply delete the folder where you installed CodeSnip and all its contents.

Be aware that any snippets you have created will be lost. If you want to keep them for use in another CodeSnip installation either export them or back up the user database before deleting the folder. See the help file for details of how to do this.