enano-bundle.nsi
author Dan
Wed, 27 May 2009 01:05:23 -0400
changeset 0 67e1cc6cd929
child 1 ac5bcb4e5284
permissions -rw-r--r--
First commit. It's working!
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
     1
; Script generated by the HM NIS Edit Script Wizard.
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
     2
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
     3
; HM NIS Edit Wizard helper defines
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
     4
!define PRODUCT_NAME "Enano CMS"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
     5
!define PRODUCT_VERSION "1.1.6"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
     6
!define PRODUCT_PUBLISHER "Enano CMS Project"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
     7
!define PRODUCT_WEB_SITE "http://enanocms.org"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
     8
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
     9
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    10
!define PRODUCT_SHORTNAME "enanocms"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    11
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    12
!ifndef ENANO_ROOT
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    13
!define ENANO_ROOT "Q:\enano-1.1\repo"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    14
!endif
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    15
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    16
SetCompressor /FINAL /SOLID lzma
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    17
CRCCheck force
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    18
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    19
Var wampstack_installed
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    20
Var wappstack_installed
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    21
Var stack_type
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    22
Var stack_instdir
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    23
Var stack_portbit
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    24
Var db_dbmsname
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    25
Var db_rootuser
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    26
Var db_rootpass
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    27
Var db_needroot
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    28
Var db_driver
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    29
Var db_port
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    30
Var db_user
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    31
Var db_password
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    32
Var db_name
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    33
Var enano_user
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    34
Var enano_password
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    35
Var admin_email
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    36
Var site_name
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    37
Var site_desc
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    38
Var site_copyright
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    39
Var url_scheme
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    40
Var start_with
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    41
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    42
!include "inst-resources\bitnamiutils.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    43
!include "inst-resources\dbal.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    44
!include "inst-resources\mysql.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    45
!include "inst-resources\postgresql.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    46
!include "inst-resources\str_replace.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    47
!include "inst-resources\kickstart.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    48
!include "inst-resources\apacheconfig.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    49
!include "inst-resources\applist.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    50
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    51
Function .onInit
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    52
  Call BNSetWAMPInstalledFlag
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    53
  Call BNSetWAPPInstalledFlag
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    54
  
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    55
  ; If neither WAMP nor WAPP is installed, die
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    56
  StrCmp $wampstack_installed 0 "" FoundStack
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    57
  StrCmp $wampstack_installed 0 "" FoundStack
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    58
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    59
    MessageBox MB_OK|MB_ICONEXCLAMATION "Setup could not find any BitNami stacks on your server.$\r$\n\
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    60
                                         $\r$\n\
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    61
                                         Please install a BitNami stack and re-run setup. You can download a BitNami stack for free from http://www.bitnami.org."
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    62
    Abort
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    63
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    64
  FoundStack:
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    65
FunctionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    66
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    67
; ExperienceUI GUI parameters
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    68
!define XPUI_BGIMAGE
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    69
!define XPUI_BGIMAGE_BMP "gfx\enano-bg.bmp"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    70
!define XPUI_TEXT_COLOR "F2F2F2"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    71
!define XPUI_TEXT_BGCOLOR "202020" ; irrelevant but still
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    72
!define XPUI_TEXT_LIGHTCOLOR "B4C3EA"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    73
!define XPUI_ABORTWARNING
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    74
!define XPUI_BRANDINGTEXT "NSIS Installer ${NSIS_VERSION}"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    75
!define XPUI_BRANDINGTEXT_COLOR_FG "b6d9ff"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    76
!define XPUI_BRANDINGTEXT_COLOR_BG "4c5b6b"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    77
!define XPUI_FASTERSKINNING
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    78
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    79
; MUI 1.67 compatible / XPUI 1.11 (2.0pre) compatible ------
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    80
!ifndef XPUI_SYSDIR
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    81
  !define XPUI_SYSDIR "C:\ExperienceUI\Contrib\ExperienceUI"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    82
!endif
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    83
!include "${XPUI_SYSDIR}\..\..\Include\XPUI.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    84
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    85
; MUI Settings
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    86
!define MUI_ABORTWARNING
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    87
!define MUI_ICON "inst-resources\generic-install.ico"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    88
!define MUI_UNICON "inst-resources\generic-uninstall.ico"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    89
!include "WinMessages.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    90
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    91
; Welcome page
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    92
!insertmacro XPUI_PAGE_WELCOME2
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    93
; License page
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    94
!insertmacro MUI_PAGE_LICENSE "licenses\GPL.txt"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    95
; Stack selection - automatic unless both stacks are installed
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    96
!include "pages\StackSelect.nsi"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    97
; Database credentials entry
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    98
!include "pages\DatabaseConfig.nsi"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    99
; Site config page
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   100
!include "pages\SiteConfig.nsi"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   101
; User credentials page
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   102
!include "pages\Login.nsi"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   103
; Components page
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   104
!insertmacro MUI_PAGE_COMPONENTS
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   105
; Instfiles page
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   106
!insertmacro MUI_PAGE_INSTFILES
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   107
; Finish page
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   108
!define XPUI_FINISHPAGE_RUN
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   109
!define XPUI_FINISHPAGE_CHECKBOX_RUN "Go to my new $(^Name) website now"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   110
!define XPUI_FINISHPAGE_RUN_FUNCTION OpenBitnamiWebsite
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   111
Function OpenBitnamiWebsite
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   112
  ExecShell open "http://localhost$stack_portbit/${PRODUCT_SHORTNAME}/"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   113
FunctionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   114
!insertmacro MUI_PAGE_FINISH
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   115
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   116
!insertmacro XPUI_PAGE_ABORT
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   117
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   118
; Uninstaller pages
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   119
!insertmacro MUI_UNPAGE_INSTFILES
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   120
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   121
; Language files
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   122
!insertmacro MUI_LANGUAGE "English"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   123
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   124
; Reserve files
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   125
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   126
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   127
; MUI end ------
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   128
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   129
; File lists
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   130
!include "inst-resources\core-files.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   131
; End file lists
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   132
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   133
Name "${PRODUCT_NAME}"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   134
Caption "${PRODUCT_NAME} ${PRODUCT_VERSION} Bitnami installer"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   135
OutFile "enano-1.1.6-bitnami-setup.exe"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   136
InstallDir "$PROGRAMFILES\Enano CMS"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   137
ShowInstDetails show
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   138
ShowUnInstDetails show
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   139
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   140
Section "-pre"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   141
  StrCpy $INSTDIR "$stack_instdir"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   142
  IfFileExists "$INSTDIR\apps\${PRODUCT_SHORTNAME}\htdocs\config.php" 0 +2
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   143
    Delete "$INSTDIR\apps\${PRODUCT_SHORTNAME}\htdocs\config.php"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   144
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   145
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   146
Section "-DatabaseSetup"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   147
  StrCmp $db_needroot 1 +2
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   148
    Return
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   149
    
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   150
  ; Create database
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   151
  ${db_create} $R0 "$db_rootuser" "$db_rootpass" "$db_name" "$db_user" "$db_password"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   152
  IntCmp $R0 0 DatabaseCreateSuccess
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   153
    !insertmacro XPUI_HEADER_TEXT "Installation failed" "Could not create the database."
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   154
    DetailPrint "Database creation failed."
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   155
    MessageBox MB_OK|MB_ICONEXCLAMATION "Setup failed to create the database for $(^Name).$\r$\n\
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   156
                                         $\r$\n\
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   157
                                         It's possible that your authentication details were rejected or that there \
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   158
                                         is a bug in the installer. Try removing any special characters (especially \
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   159
                                         quote symbols and backslashes) from your password. Make sure to use only \
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   160
                                         letters, numbers, and underscores in the database name and username."
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   161
    Abort
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   162
  DatabaseCreateSuccess:
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   163
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   164
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   165
Section "Enano Core" SEC01
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   166
  SectionIn RO
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   167
  !insertmacro Core_Install
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   168
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   169
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   170
Section "Enable GMP in PHP" SecGMP
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   171
  ClearErrors
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   172
  WriteINIStr "$stack_instdir\php\php.ini" "GMP" "extension" "php_gmp.dll"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   173
  IfErrors 0 +2
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   174
    MessageBox MB_OK|MB_ICONEXCLAMATION "GMP was not automatically enabled in PHP. Logins will be several seconds slower."
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   175
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   176
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   177
Section "YubiKey auth plugin" SEC02
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   178
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   179
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   180
Section "AjIM2" SEC03
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   181
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   182
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   183
Section "Admin Alerts" SEC04
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   184
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   185
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   186
Section "RSS Feeds" SEC06
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   187
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   188
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   189
Section "News Portal" SEC08
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   190
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   191
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   192
Section "Code syntax highlighting" SEC11
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   193
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   194
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   195
Section "Wiki functionality extensions" SEC12
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   196
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   197
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   198
Section -ConfigureApache
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   199
  DetailPrint "Configuring Apache web server"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   200
  Call write_apache_config
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   201
  DetailPrint "Restarting Apache"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   202
  nsExec::Exec '"$SYSDIR\net.exe" stop "$stack_typestackApache"'
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   203
  nsExec::Exec '"$SYSDIR\net.exe" start "$stack_typestackApache"'
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   204
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   205
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   206
Section -WriteKickStart
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   207
  Call enano_write_kickstart_script
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   208
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   209
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   210
Section -DoEnanoDBSetup
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   211
  Call enano_run_kickstart_script
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   212
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   213
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   214
Section -InsertApplistEntry
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   215
  Call enano_add_to_applist
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   216
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   217
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   218
Section -AdditionalIcons
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   219
  WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   220
  CreateDirectory "$SMPROGRAMS\Enano CMS"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   221
  CreateShortCut "$SMPROGRAMS\Enano CMS\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   222
  CreateShortCut "$SMPROGRAMS\Enano CMS\Uninstall.lnk" "$INSTDIR\apps\${PRODUCT_SHORTNAME}\uninst.exe"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   223
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   224
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   225
Section -Post
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   226
  WriteUninstaller "$INSTDIR\uninst.exe"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   227
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   228
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   229
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   230
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   231
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   232
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   233
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   234
; Section descriptions
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   235
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   236
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "Core components of Enano CMS, necessary to run Enano"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   237
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "Adds support for Yubikey authentication"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   238
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "An AJAX chatbox sidebar gadget for Enano"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   239
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC04} "Provides a sidebar block that alerts you about unapproved comments, inactive users, and pages with requested deletion."
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   240
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC06} "Provides the ability to generate RSS feeds based on the latest page edits and comments. It also has a plugin API so plugins can add their own feeds."
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   241
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC08} "Provides a portal with news and static content combined onto one page."
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   242
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC11} "Parser extension that adds syntax highlighting support using the GeSHi highlighting engine."
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   243
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC12} "Adds several parser extensions that provide MediaWiki-like behavior, including references (footnotes) and Table of Contents support."
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   244
  !insertmacro MUI_DESCRIPTION_TEXT ${SecGMP} "Enables PHP's GMP extension, which speeds up cryptographic operations."
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   245
!insertmacro MUI_FUNCTION_DESCRIPTION_END
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   246
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   247
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   248
Function un.onUninstSuccess
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   249
  HideWindow
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   250
  MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer."
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   251
FunctionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   252
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   253
Function un.onInit
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   254
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   255
  Abort
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   256
FunctionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   257
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   258
Section Uninstall
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   259
  Delete "$INSTDIR\apps\${PRODUCT_SHORTNAME}\${PRODUCT_NAME}.url"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   260
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   261
  !insertmacro Core_Uninstall
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   262
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   263
  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   264
  SetAutoClose true
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   265
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   266
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   267
; Version Information
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   268
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   269
VIProductVersion "1.1.6.0"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   270
VIAddVersionKey /LANG=1033 "ProductName" "Enano CMS"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   271
VIAddVersionKey /LANG=1033 "Setup Information" "Enano CMS installer module for Windows Apache stacks"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   272
VIAddVersionKey /LANG=1033 "Comments" "This installer contains a beta build of Enano CMS, use with caution!"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   273
VIAddVersionKey /LANG=1033 "Publisher Name" "Neal Gompa (King InuYasha), Enano CMS Project"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   274
VIAddVersionKey /LANG=1033 "LegalCopyright" "©2009 Enano CMS Project"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   275
VIAddVersionKey /LANG=1033 "FileDescription" "Enano - The CMS that focuses on what matters most: content."
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   276
VIAddVersionKey /LANG=1033 "FileVersion" "${PRODUCT_VERSION}"