CKV Self-Extractor: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Adding new author and category links.)
m (Updated download links)
Line 3: Line 3:
== Links ==
== Links ==


[[Image:Exe.gif]] [http://koti.mbnet.fi/ckv/downl.php?id=ckvse.exe ckvse.exe] (149 KB)<br>
[[Image:Exe.gif]] [http://koti.mbnet.fi/ckv/file.php?id=ckvse.exe ckvse.exe] (149 KB)<br>
[[Image:Zip.gif]] [http://koti.mbnet.fi/ckv/downl.php?id=ckvse.zip ckvse.zip] (147 KB)
[[Image:Zip.gif]] [http://koti.mbnet.fi/ckv/file.php?id=ckvse.zip ckvse.zip] (147 KB)


== Description ==
== Description ==

Revision as of 13:12, 13 October 2005

Author: Aaron's rod (talk, contrib)


Links

Exe.gif ckvse.exe (149 KB)
Zip.gif ckvse.zip (147 KB)

Description

Version: 0.14c.

ckv Self-Extractor Kit is a collection of scripts and custom user interfaces to create self-extracting files with NSIS. This is way simpler built than NSIS Self-Extractor kit for a lighter interface. This also includes a wizard for the easy creation of self-installers. This also can:

  • Open the extration directory and/or read-me at end.
  • Show the license before the extraction occurs.
  • choose from 1 of 3 UI's available: default, tiny and simple.

This is still under development.

How To Use

Simplest way to use ckv Self-Extractor is to include ckvse.nsh in to beginning of any existing NSIS script file, replace first Section with ${FileExtraction}, and use the commands as said in the documentation (included with zip file).

However this way you only get NSIS installer with Self-Extractor look. Better idea is to use the ckv Self-Extractor wizard (ckvsewizard.exe) that can create Self-Extractor from a directory or zip file.

Example Script

!include "ckvse.nsh"
SetCompressor lzma
 
!insertmacro ProductName "My product"
!insertmacro OutFileName "outfile.exe"
!insertmacro ExtractDir "C:\Sample"
!insertmacro IconFile "C:\my\file\source\icon.ico"
 
!insertmacro OpenDirFunc "off" 1
!insertmacro OwprompFunc "on" 1
!insertmacro OpenReadme "off" 1 "$INSTDIR\readme.txt"
!insertmacro ShowLicense "C:\my\file\source\license.txt" "off"
!insertmacro SetUI "default"
 
${FileExtraction}
  SetOutPath "$INSTDIR"
  !insertmacro EXTRACT_FILE "C:\my\file\source\" "readme.txt"
  !insertmacro EXTRACT_FILE "C:\my\file\source\" "license.txt"
  !insertmacro EXTRACT_FILE "C:\my\file\source\" "product.exe"
 
  SetOutPath "$INSTDIR\subdir"
  !insertmacro EXTRACT_FILE "C:\my\file\source\" "data.dat"
  !insertmacro EXTRACT_FILE "C:\my\file\source\" "more_data.dat"
${FileExtractionEnd}