PageRenderTime 30ms CodeModel.GetById 26ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/installer/camelbox_build_tester.nsi

https://code.google.com/p/camelbox/
text | 121 lines | 108 code | 13 blank | 0 comment | 0 complexity | 96ee40caac98953af7ee54a0fe987ceb MD5 | raw file
  1#==========================================================================
  2#
  3# TYPE:		NSIS Installer Source File
  4#
  5# NAME: 	camelbox.nsi
  6#
  7# AUTHOR: 	$LastChangedBy: elspicyjack $
  8# DATE: 	$LastChangedDate: 2008-07-30 09:39:57 -0700 (Wed, 30 Jul 2008) $
  9#
 10# COMMENT:	$Id: camelbox_builder.nsi 406 2008-07-30 16:39:57Z elspicyjack $
 11#
 12# The NSIS manual is located at http://nsis.sourceforge.net/Docs.  Parameters 
 13# used below should have the appropriate section number from the NSIS manual 
 14# listed somewhere nearby in the comments.
 15#
 16# Simple tutorials: http://nsis.sourceforge.net/Simple_tutorials
 17# 
 18# For support with this file, please visit the Camelbox mailing list at
 19# 	http://groups.google.com/group/camelbox
 20
 21#==========================================================================
 22# Copyright (c)2008 by Brian Manning <elspicyjack at gmail dot com>
 23# 
 24# This program is free software; you can redistribute it and/or modify
 25# it under the terms of the GNU General Public License as published by
 26# the Free Software Foundation; either version 1, or (at your option)
 27# any later version.
 28#
 29# This program is distributed in the hope that it will be useful,
 30# but WITHOUT ANY WARRANTY; without even the implied warranty of
 31# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 32# GNU General Public License for more details.
 33#
 34# You should have received a copy of the GNU General Public License
 35# along with this program; if not, write to the Free Software Foundation,
 36# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
 37#==========================================================================
 38
 39# TODO 
 40# - put the examples back into the -dev packages?  This would prevent the user
 41# from running demos that they don't have libraries for
 42# - the installer adds the Camelbox distro to the user's path; maybe make
 43# it a choice to add it systemwide instead?
 44# - unless you can figure out how to change the Perl paths during the
 45# install, you need to not give the user the option on where to install
 46# Camelbox; if they put it someplace funky, it will not work; it still may not
 47# work if the new path has spaces in it
 48# - once you are able to get the distro to install in the directory chosen by
 49# the user, you'll have to find some way to save the uninstall path, meaning 
 50# the path that needs to be removed
 51# - at the end of the install, offer the user the option of viewing the
 52# UsageInstructions wiki page on the web?
 53# - add a Camelbox folder to the Start menu, with Windows shortcuts to the zsh
 54# shell, all of the demos as run through wperl.exe, and maybe the docs and
 55# whatnot
 56# - maybe add a shortcut to zsh on the desktop/quicklaunch bar, if zsh is
 57# installed
 58# - a copy of perl shell for shits and giggles?
 59# - the byte sizes shown in AddSize are the archive file sizes, not the
 60# unpacked archive sizes; this is really what should be shown
 61
 62#### DEFINES ####
 63# Section 5.4.1 of the NSIS manual describes !define
 64# The strftime strings for this next !define are here:
 65# http://msdn2.microsoft.com/en-us/library/fe06s4ak.aspx
 66!define /utcdate RELEASE_VERSION  "%Y.%j.%H%MZ-odin"
 67
 68# define some macros for use later on
 69!define CAPTION_TEXT "Camelbox ${RELEASE_VERSION}"
 70!define INSTALLER_BASE "C:\temp\camelbox-svn\installer"
 71!define LICENSE_FILE "${INSTALLER_BASE}\License\License.txt"
 72!define MAIN_ICON "${INSTALLER_BASE}\Icons\camelbox-logo.ico"
 73!define BASE_URL "http://camelbox.googlecode.com/files"
 74!define INSTALL_PATH "C:\camelbox"
 75!define SHORTCUT_INI "${INSTALLER_BASE}\shortcuts.ini"
 76OutFile "C:\temp\camelbox_build_tester-${RELEASE_VERSION}.exe"	# 4.8.1.31
 77
 78#### NSIS OPTIONS ####
 79# compiler flags
 80SetCompressor /SOLID lzma 			# 4.8.2.4
 81SetDatablockOptimize ON				# 4.8.2.6
 82
 83# set up the installer attributes
 84AutoCloseWindow FALSE				# 4.8.1.3
 85CRCCheck ON 						# 4.8.1.12
 86InstallColors /WINDOWS				# 4.8.1.20
 87ShowInstDetails SHOW				# 4.8.1.34
 88SilentInstall NORMAL				# 4.8.1.36
 89
 90# now set up the installer dialog box, from top top bottom 4.8.1.18
 91Icon "${MAIN_ICON}"
 92# caption for this dialog, shown in titlebar 4.8.1.7
 93Caption "${CAPTION_TEXT}"
 94# shown at the bottom of this dialog 4.8.1.6
 95BrandingText "Thanks to Milo for the installer!"
 96#BrandingText "http://code.google.com/p/camelbox/"
 97# name of this project 4.8.1.30
 98Name "${CAPTION_TEXT}"
 99
100LicenseBkColor /windows
101LicenseText "${CAPTION_TEXT}" 		# 4.8.1.28
102LicenseData "${LICENSE_FILE}" 		# 4.8.1.26
103
104InstallDir "${INSTALL_PATH}"
105
106#### EXTERNAL FUNCTION SCRIPTS ####
107!include "nsDialogs.nsh"
108!include "camelbox_functions.nsh"	# functions used by all scripts
109!include "camelbox_shortcuts.nsh"	# functions used by all scripts
110
111#### PAGES ####
112#Page Directory
113#Page custom ShortcutsAndReadme
114Page custom ShortcutsDialog
115#UninstPage uninstConfirm
116#UninstPage RemoveShortcutsAndReadme
117
118Section # dummy section to keep NSIS happy
119SectionEnd
120
121# vim: filetype=nsis paste