enano-bundle.nsi
author Dan
Thu, 17 Dec 2009 05:56:36 -0500
changeset 7 37824b18ff73
parent 6 6016fd9e848f
child 8 af10a4dbafb4
permissions -rwxr-xr-x
Updated version numbering to be more easily controllable from the Makefile
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"
6
6016fd9e848f A couple minor fixes: more flexible version numbering; added a CreateDirectory before uninstaller generation (whoops)
Dan
parents: 5
diff changeset
     5
!ifndef PRODUCT_VERSION
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
     6
!define PRODUCT_VERSION "1.1.6"
6
6016fd9e848f A couple minor fixes: more flexible version numbering; added a CreateDirectory before uninstaller generation (whoops)
Dan
parents: 5
diff changeset
     7
!endif
7
37824b18ff73 Updated version numbering to be more easily controllable from the Makefile
Dan
parents: 6
diff changeset
     8
!ifndef PRODUCT_VERSION_APPEND
37824b18ff73 Updated version numbering to be more easily controllable from the Makefile
Dan
parents: 6
diff changeset
     9
!define PRODUCT_VERSION_APPEND ""
37824b18ff73 Updated version numbering to be more easily controllable from the Makefile
Dan
parents: 6
diff changeset
    10
!endif
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    11
!define PRODUCT_PUBLISHER "Enano CMS Project"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    12
!define PRODUCT_WEB_SITE "http://enanocms.org"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    13
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    14
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    15
!define PRODUCT_SHORTNAME "enanocms"
3
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
    16
; !define UNINSTALL_DEBUG
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    17
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    18
!ifndef ENANO_ROOT
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    19
!define ENANO_ROOT "Q:\enano-1.1\repo"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    20
!endif
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    21
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    22
SetCompressor /FINAL /SOLID lzma
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    23
CRCCheck force
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    24
5
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    25
!include "WinMessages.nsh"
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    26
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    27
; ExperienceUI 1.3.1 compatible
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    28
!ifndef XPUI_SYSDIR
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    29
  !define XPUI_SYSDIR "P:\exui\Contrib\ExperienceUI"
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    30
!endif
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    31
!include "${XPUI_SYSDIR}\XPUI.nsh"
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    32
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    33
; ExperienceUI GUI parameters
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    34
!define XPUI_BGIMAGE
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    35
!define XPUI_BGIMAGE_BMP "gfx\enano-bg.bmp"
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    36
!define XPUI_TEXT_COLOR "F2F2F2"
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    37
!define XPUI_TEXT_BGCOLOR "202020" ; irrelevant but still
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    38
!define XPUI_TEXT_LIGHTCOLOR "B4C3EA"
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    39
!define XPUI_ABORTWARNING
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    40
!define XPUI_BRANDINGTEXT "NSIS Installer ${NSIS_VERSION}"
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    41
!define XPUI_BRANDINGTEXT_COLOR_FG "b6d9ff"
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    42
!define XPUI_BRANDINGTEXT_COLOR_BG "4c5b6b"
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    43
!define XPUI_FASTERSKINNING
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    44
!define XPUI_UNINSTALLER
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    45
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    46
Var wampstack_installed
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    47
Var wappstack_installed
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    48
Var stack_type
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    49
Var stack_instdir
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    50
Var stack_portbit
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    51
Var db_dbmsname
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    52
Var db_rootuser
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    53
Var db_rootpass
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    54
Var db_needroot
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    55
Var db_driver
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    56
Var db_port
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    57
Var db_user
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    58
Var db_password
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    59
Var db_name
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    60
Var enano_user
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    61
Var enano_password
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    62
Var admin_email
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    63
Var site_name
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    64
Var site_desc
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    65
Var site_copyright
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    66
Var url_scheme
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    67
Var start_with
3
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
    68
Var skip_install
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    69
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    70
!include "inst-resources\bitnamiutils.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    71
!include "inst-resources\dbal.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    72
!include "inst-resources\mysql.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    73
!include "inst-resources\postgresql.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    74
!include "inst-resources\str_replace.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    75
!include "inst-resources\kickstart.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    76
!include "inst-resources\apacheconfig.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    77
!include "inst-resources\applist.nsh"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    78
3
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
    79
;
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
    80
; INSTALL PAGES
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
    81
;
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
    82
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    83
; Welcome page
5
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    84
${Page} Welcome2
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    85
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    86
; License page
5
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    87
${LicensePage} "licenses\GPL.txt"
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    88
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    89
; Stack selection - automatic unless both stacks are installed
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    90
!include "pages\StackSelect.nsi"
5
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    91
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    92
; Database credentials entry
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    93
!include "pages\DatabaseConfig.nsi"
5
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    94
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    95
; Site config page
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    96
!include "pages\SiteConfig.nsi"
5
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
    97
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    98
; User credentials page
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
    99
!include "pages\Login.nsi"
5
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   100
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   101
; Components page
5
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   102
${Page} Components
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   103
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   104
; Instfiles page
5
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   105
${Page} InstFiles
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   106
0
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
5
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   114
${Page} Finish
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   115
${Page} Abort
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   116
3
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   117
;
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   118
; UNINSTALL PAGES
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   119
;
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   120
5
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   121
${UnPage} Welcome2
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   122
${UnPage} InstFiles
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   123
${UnPage} Finish
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   124
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   125
; Reserve files
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   126
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   127
5
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   128
; Language files
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   129
${Language} "English"
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   130
5
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   131
; MUI end ------
0
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}"
7
37824b18ff73 Updated version numbering to be more easily controllable from the Makefile
Dan
parents: 6
diff changeset
   134
Caption "${PRODUCT_NAME} ${PRODUCT_VERSION}${PRODUCT_VERSION_APPEND} Bitnami installer"
37824b18ff73 Updated version numbering to be more easily controllable from the Makefile
Dan
parents: 6
diff changeset
   135
OutFile "enano-${PRODUCT_VERSION}${PRODUCT_VERSION_APPEND}-bitnami-setup.exe"
0
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
5
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   140
; File lists
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   141
!include "inst-resources\core-files.nsh"
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   142
; End file lists
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   143
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   144
Section "-pre"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   145
  StrCpy $INSTDIR "$stack_instdir"
3
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   146
  StrCpy $skip_install 0
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   147
  
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   148
  StrCmp $db_needroot 0 0 SkipManualCheck
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   149
    ; If we were given our own DB credentials and there's already a config, the installation needs to be skipped
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   150
    IfFileExists "$INSTDIR\apps\${PRODUCT_SHORTNAME}\htdocs\config.php" 0 SkipManualCheck
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   151
      StrCpy $skip_install 1
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   152
      Return
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   153
      
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   154
  SkipManualCheck:
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   155
  
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   156
  IfFileExists "$INSTDIR\apps\${PRODUCT_SHORTNAME}\htdocs\config.php" 0 +2
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   157
    Delete "$INSTDIR\apps\${PRODUCT_SHORTNAME}\htdocs\config.php"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   158
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   159
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   160
Section "-DatabaseSetup"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   161
  StrCmp $db_needroot 1 +2
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   162
    Return
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   163
    
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   164
  ; Create database
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   165
  ${db_create} $R0 "$db_rootuser" "$db_rootpass" "$db_name" "$db_user" "$db_password"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   166
  IntCmp $R0 0 DatabaseCreateSuccess
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   167
    !insertmacro XPUI_HEADER_TEXT "Installation failed" "Could not create the database."
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   168
    DetailPrint "Database creation failed."
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   169
    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
   170
                                         $\r$\n\
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   171
                                         It's possible that your authentication details were rejected or that there \
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   172
                                         is a bug in the installer. Try removing any special characters (especially \
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   173
                                         quote symbols and backslashes) from your password. Make sure to use only \
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   174
                                         letters, numbers, and underscores in the database name and username."
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   175
    Abort
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   176
  DatabaseCreateSuccess:
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   177
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   178
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   179
Section "Enano Core" SEC01
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   180
  SectionIn RO
6
6016fd9e848f A couple minor fixes: more flexible version numbering; added a CreateDirectory before uninstaller generation (whoops)
Dan
parents: 5
diff changeset
   181
  CreateDirectory "$INSTDIR\apps\${PRODUCT_SHORTNAME}"
3
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   182
  WriteUninstaller "$INSTDIR\apps\${PRODUCT_SHORTNAME}\uninstall.exe"
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   183
  !insertmacro Core_Install
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 "Enable GMP in PHP" SecGMP
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   187
  ClearErrors
3
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   188
  IfFileExists "$stack_instdir\php\ext\php_gmp.dll" +3
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   189
  
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   190
    ; No GMP
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   191
    MessageBox MB_OK|MB_ICONEXCLAMATION "The stack you selected does not contain the GMP extension, so it cannot be enabled. Logins will be several seconds slower. Please consider upgrading your stack."
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   192
    Return
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   193
  
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   194
  WriteINIStr "$stack_instdir\php\php.ini" "GMP" "extension" "php_gmp.dll"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   195
  IfErrors 0 +2
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   196
    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
   197
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   198
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   199
Section "YubiKey auth plugin" SEC02
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   200
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   201
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   202
Section "AjIM2" SEC03
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   203
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   204
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   205
Section "Admin Alerts" SEC04
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   206
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   207
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   208
Section "RSS Feeds" SEC06
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   209
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   210
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   211
Section "News Portal" SEC08
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 "Code syntax highlighting" SEC11
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   215
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   216
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   217
Section "Wiki functionality extensions" SEC12
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   218
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   219
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   220
Section -ConfigureApache
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   221
  DetailPrint "Configuring Apache web server"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   222
  Call write_apache_config
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   223
  DetailPrint "Restarting Apache"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   224
  nsExec::Exec '"$SYSDIR\net.exe" stop "$stack_typestackApache"'
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   225
  nsExec::Exec '"$SYSDIR\net.exe" start "$stack_typestackApache"'
3
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   226
  StrCmp $skip_install 1 0 +2
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   227
    Return
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   228
  
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   229
  Call enano_write_kickstart_script
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   230
  Call enano_run_kickstart_script
3
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   231
  
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   232
  SetOutPath "$INSTDIR\apps\${PRODUCT_SHORTNAME}\scripts"
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   233
  File "inst-resources\selfdestruct.php"
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   234
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   235
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   236
Section -InsertApplistEntry
1
ac5bcb4e5284 PostgreSQL: skip applications.html stage (not supported in upstream wappstack)
Dan
parents: 0
diff changeset
   237
  ; Skip if this is WAPPStack, it doesn't have an applications.html. (!)
ac5bcb4e5284 PostgreSQL: skip applications.html stage (not supported in upstream wappstack)
Dan
parents: 0
diff changeset
   238
  StrCmp $stack_type "WAPP" 0 +2
ac5bcb4e5284 PostgreSQL: skip applications.html stage (not supported in upstream wappstack)
Dan
parents: 0
diff changeset
   239
    Return
ac5bcb4e5284 PostgreSQL: skip applications.html stage (not supported in upstream wappstack)
Dan
parents: 0
diff changeset
   240
  
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   241
  Call enano_add_to_applist
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   242
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   243
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   244
Section -AdditionalIcons
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   245
  WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   246
  CreateDirectory "$SMPROGRAMS\Enano CMS"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   247
  CreateShortCut "$SMPROGRAMS\Enano CMS\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
3
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   248
  CreateShortCut "$SMPROGRAMS\Enano CMS\Uninstall.lnk" "$INSTDIR\apps\${PRODUCT_SHORTNAME}\uninstall.exe"
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   249
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   250
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   251
Section -Post
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   252
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
3
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   253
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\apps\${PRODUCT_SHORTNAME}\uninstall.exe"
7
37824b18ff73 Updated version numbering to be more easily controllable from the Makefile
Dan
parents: 6
diff changeset
   254
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}${PRODUCT_VERSION_APPEND}"
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   255
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   256
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   257
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   258
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   259
; Section descriptions
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   260
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   261
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "Core components of Enano CMS, necessary to run Enano"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   262
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "Adds support for Yubikey authentication"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   263
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "An AJAX chatbox sidebar gadget for Enano"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   264
  !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
   265
  !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
   266
  !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
   267
  !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
   268
  !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
   269
  !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
   270
!insertmacro MUI_FUNCTION_DESCRIPTION_END
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   271
5
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   272
Function .onInit
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   273
  !ifdef UNINSTALL_DEBUG
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   274
    WriteUninstaller "$EXEDIR\uninstall.exe"
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   275
    MessageBox MB_OKCANCEL "Uninstaller written. OK to run installer, Cancel to quit" IDOK +2
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   276
      Abort
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   277
  !endif
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   278
  Call BNSetWAMPInstalledFlag
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   279
  Call BNSetWAPPInstalledFlag
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   280
  
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   281
  ; If neither WAMP nor WAPP is installed, die
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   282
  StrCmp $wampstack_installed 0 "" FoundStack
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   283
  StrCmp $wampstack_installed 0 "" FoundStack
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   284
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   285
    MessageBox MB_OK|MB_ICONEXCLAMATION "Setup could not find any BitNami stacks on your server.$\r$\n\
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   286
                                         $\r$\n\
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   287
                                         Please install a BitNami stack and re-run setup. You can download a BitNami stack for free from http://www.bitnami.org."
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   288
    Abort
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   289
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   290
  FoundStack:
85800cb04cc5 Moved around some ExperienceUI directives; fixed missing $XPUI_ABORTED check in StackSelectLeave
Dan
parents: 3
diff changeset
   291
FunctionEnd
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   292
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   293
Function un.onInit
3
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   294
  
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   295
  StrCpy $stack_instdir "$INSTDIR\..\.."
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   296
  ; this is probably a bad way to determine the stack type
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   297
  ClearErrors
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   298
  StrCpy $stack_type "wamp"
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   299
  ReadINIStr $0 "$stack_instdir\properties.ini" "MySQL" "mysql_port"
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   300
  IfErrors 0 +2
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   301
    StrCpy $stack_type "wapp"
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   302
    
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   303
FunctionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   304
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   305
Section Uninstall
3
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   306
  
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   307
  ; Confirm uninstall
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   308
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you really sure you want to uninstall ${PRODUCT_NAME}?$\r$\n\
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   309
                                                 $\r$\n\
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   310
                                                 Removing ${PRODUCT_NAME} will delete everything that it installed, including your database. If you do not want to \
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   311
                                                 lose data, cancel this uninstaller and back up your database before uninstalling.$\r$\n\
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   312
                                                 $\r$\n\
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   313
                                                 The ${PRODUCT_NAME} uninstaller also deletes any uploaded files, plugins and themes that you may have installed." IDYES +2
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   314
    Abort
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   315
  
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   316
  Delete "$INSTDIR\apps\${PRODUCT_SHORTNAME}\${PRODUCT_NAME}.url"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   317
3
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   318
  ; Remove from Apache config
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   319
  DetailPrint "Removing ${PRODUCT_NAME} from Apache configuration"
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   320
  Call un.disable_in_apache_config
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   321
  
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   322
  ; Remove from applications.html
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   323
  ; SON OF A BITCH. BitNami, please, PLEASE make applications.html a PHP script that includes all files in a directory.
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   324
  DetailPrint "Removing ${PRODUCT_NAME} from applications.html"
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   325
  Call un.disable_in_applications_html
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   326
  
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   327
  ; Restart Apache
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   328
  DetailPrint "Restarting Apache"
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   329
  nsExec::Exec '"$SYSDIR\net.exe" stop "$stack_typestackApache"'
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   330
  nsExec::Exec '"$SYSDIR\net.exe" start "$stack_typestackApache"'
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   331
  
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   332
  DetailPrint "Uninstalling database"
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   333
  nsExec::ExecToLog '"$stack_instdir\php\php.exe" "$INSTDIR\scripts\selfdestruct.php"'
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   334
  
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   335
  DetailPrint "Deleting files..."
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   336
  SetDetailsPrint listonly
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   337
  !insertmacro Core_Uninstall
3
0cce88c7cf7c Added Makefile
Dan
parents: 1
diff changeset
   338
  SetDetailsPrint both
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   339
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   340
  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   341
  SetAutoClose true
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   342
SectionEnd
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   343
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   344
; Version Information
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   345
6
6016fd9e848f A couple minor fixes: more flexible version numbering; added a CreateDirectory before uninstaller generation (whoops)
Dan
parents: 5
diff changeset
   346
VIProductVersion "${PRODUCT_VERSION}.0"
0
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   347
VIAddVersionKey /LANG=1033 "ProductName" "Enano CMS"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   348
VIAddVersionKey /LANG=1033 "Setup Information" "Enano CMS installer module for Windows Apache stacks"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   349
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
   350
VIAddVersionKey /LANG=1033 "Publisher Name" "Neal Gompa (King InuYasha), Enano CMS Project"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   351
VIAddVersionKey /LANG=1033 "LegalCopyright" "©2009 Enano CMS Project"
67e1cc6cd929 First commit. It's working!
Dan
parents:
diff changeset
   352
VIAddVersionKey /LANG=1033 "FileDescription" "Enano - The CMS that focuses on what matters most: content."
7
37824b18ff73 Updated version numbering to be more easily controllable from the Makefile
Dan
parents: 6
diff changeset
   353
VIAddVersionKey /LANG=1033 "FileVersion" "${PRODUCT_VERSION}${PRODUCT_VERSION_APPEND}"