You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by pa...@apache.org on 2008/02/14 13:37:01 UTC
svn commit: r627724 - in /directory/studio/trunk/tools/Windows Installer: ./
README utils/ utils/browserconnections.xml utils/connections.xml
utils/header_studio.bmp utils/studio-installer.ico utils/welcome_studio.bmp
windows_installer.nsi
Author: pamarcelot
Date: Thu Feb 14 04:36:57 2008
New Revision: 627724
URL: http://svn.apache.org/viewvc?rev=627724&view=rev
Log:
Added the Windows installer tools.
Added:
directory/studio/trunk/tools/Windows Installer/
directory/studio/trunk/tools/Windows Installer/README (with props)
directory/studio/trunk/tools/Windows Installer/utils/
directory/studio/trunk/tools/Windows Installer/utils/browserconnections.xml (with props)
directory/studio/trunk/tools/Windows Installer/utils/connections.xml (with props)
directory/studio/trunk/tools/Windows Installer/utils/header_studio.bmp (with props)
directory/studio/trunk/tools/Windows Installer/utils/studio-installer.ico (with props)
directory/studio/trunk/tools/Windows Installer/utils/welcome_studio.bmp (with props)
directory/studio/trunk/tools/Windows Installer/windows_installer.nsi (with props)
Added: directory/studio/trunk/tools/Windows Installer/README
URL: http://svn.apache.org/viewvc/directory/studio/trunk/tools/Windows%20Installer/README?rev=627724&view=auto
==============================================================================
--- directory/studio/trunk/tools/Windows Installer/README (added)
+++ directory/studio/trunk/tools/Windows Installer/README Thu Feb 14 04:36:57 2008
@@ -0,0 +1,11 @@
+The windows_install.nsi script creates the Windows installer for a release of Apache Directory Studio on Windows.
+
+To create a Windows installer, you have to put in a "release" folder the following files:
+ * Apache Directory Studio.exe (the application)
+ * LICENSE.txt
+ * NOTICE.txt
+ * Release Notes.txt
+
+Then, you can compile the script with NSIS.
+
+An "Apache_Directory_Studio_VERSION_Windows.exe" installer will be generated.
\ No newline at end of file
Propchange: directory/studio/trunk/tools/Windows Installer/README
------------------------------------------------------------------------------
svn:executable = *
Added: directory/studio/trunk/tools/Windows Installer/utils/browserconnections.xml
URL: http://svn.apache.org/viewvc/directory/studio/trunk/tools/Windows%20Installer/utils/browserconnections.xml?rev=627724&view=auto
==============================================================================
--- directory/studio/trunk/tools/Windows Installer/utils/browserconnections.xml (added)
+++ directory/studio/trunk/tools/Windows Installer/utils/browserconnections.xml Thu Feb 14 04:36:57 2008
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<java version="1.6.0_02" class="java.beans.XMLDecoder">
+ <array class="[Ljava.lang.Object;" length="1">
+ <void index="0">
+ <array class="java.lang.Object" length="3">
+ <void index="0">
+ <string>-8431166513633174058</string>
+ </void>
+ <void index="1">
+ <array class="org.apache.directory.studio.ldapbrowser.core.model.SearchParameter" length="0"/>
+ </void>
+ <void index="2">
+ <array class="org.apache.directory.studio.ldapbrowser.core.model.BookmarkParameter" length="0"/>
+ </void>
+ </array>
+ </void>
+ </array>
+</java>
+
\ No newline at end of file
Propchange: directory/studio/trunk/tools/Windows Installer/utils/browserconnections.xml
------------------------------------------------------------------------------
svn:executable = *
Added: directory/studio/trunk/tools/Windows Installer/utils/connections.xml
URL: http://svn.apache.org/viewvc/directory/studio/trunk/tools/Windows%20Installer/utils/connections.xml?rev=627724&view=auto
==============================================================================
--- directory/studio/trunk/tools/Windows Installer/utils/connections.xml (added)
+++ directory/studio/trunk/tools/Windows Installer/utils/connections.xml Thu Feb 14 04:36:57 2008
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<connections>
+ <connection id="-8431166513633174058" name="Example" host="localhost" port="10389" encryptionMethod="NONE" authMethod="SIMPLE" bindPrincipal="uid=admin,ou=system" bindPassword="secret">
+ <extendedProperties>
+ <extendedProperty key="ldapbrowser.aliasesDereferencingMethod" value="0"/>
+ <extendedProperty key="ldapbrowser.timeLimit" value="0"/>
+ <extendedProperty key="ldapbrowser.fetchBaseDns" value="true"/>
+ <extendedProperty key="ldapbrowser.referralsHandlingMethod" value="0"/>
+ <extendedProperty key="ldapbrowser.countLimit" value="0"/>
+ <extendedProperty key="ldapbrowser.baseDn" value=""/>
+ </extendedProperties>
+ </connection>
+</connections>
\ No newline at end of file
Propchange: directory/studio/trunk/tools/Windows Installer/utils/connections.xml
------------------------------------------------------------------------------
svn:executable = *
Added: directory/studio/trunk/tools/Windows Installer/utils/header_studio.bmp
URL: http://svn.apache.org/viewvc/directory/studio/trunk/tools/Windows%20Installer/utils/header_studio.bmp?rev=627724&view=auto
==============================================================================
Binary file - no diff available.
Propchange: directory/studio/trunk/tools/Windows Installer/utils/header_studio.bmp
------------------------------------------------------------------------------
svn:executable = *
Propchange: directory/studio/trunk/tools/Windows Installer/utils/header_studio.bmp
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: directory/studio/trunk/tools/Windows Installer/utils/studio-installer.ico
URL: http://svn.apache.org/viewvc/directory/studio/trunk/tools/Windows%20Installer/utils/studio-installer.ico?rev=627724&view=auto
==============================================================================
Binary file - no diff available.
Propchange: directory/studio/trunk/tools/Windows Installer/utils/studio-installer.ico
------------------------------------------------------------------------------
svn:executable = *
Propchange: directory/studio/trunk/tools/Windows Installer/utils/studio-installer.ico
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: directory/studio/trunk/tools/Windows Installer/utils/welcome_studio.bmp
URL: http://svn.apache.org/viewvc/directory/studio/trunk/tools/Windows%20Installer/utils/welcome_studio.bmp?rev=627724&view=auto
==============================================================================
Binary file - no diff available.
Propchange: directory/studio/trunk/tools/Windows Installer/utils/welcome_studio.bmp
------------------------------------------------------------------------------
svn:executable = *
Propchange: directory/studio/trunk/tools/Windows Installer/utils/welcome_studio.bmp
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: directory/studio/trunk/tools/Windows Installer/windows_installer.nsi
URL: http://svn.apache.org/viewvc/directory/studio/trunk/tools/Windows%20Installer/windows_installer.nsi?rev=627724&view=auto
==============================================================================
--- directory/studio/trunk/tools/Windows Installer/windows_installer.nsi (added)
+++ directory/studio/trunk/tools/Windows Installer/windows_installer.nsi Thu Feb 14 04:36:57 2008
@@ -0,0 +1,206 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+!define AppName "Apache Directory Studio"
+!define AppVersion "1.1.0 RC"
+!define OutFile "Apache_Directory_Studio_1.1.0_RC_Windows"
+!define ShortName "Apache Directory Studio"
+!define JRE_VERSION "1.5.0"
+!define Vendor "Apache Software Foundation"
+!define Project "Apache Directory"
+
+!define JAVA_URL "http://java.sun.com/javase/downloads/index_jdk5.jsp"
+
+!macro CreateInternetShortcut FILENAME URL ;ICONFILE ICONINDEX
+WriteINIStr "${FILENAME}.url" "InternetShortcut" "URL" "${URL}"
+!macroend
+
+!include "MUI.nsh"
+!include "Sections.nsh"
+
+;--------------------------------
+;Configuration
+
+ ;General
+ Name "${AppName}"
+ OutFile "${OutFile}.exe"
+
+ ;Folder selection page
+ InstallDir "$PROGRAMFILES\${AppName}"
+
+ ;Get install folder from registry if available
+ InstallDirRegKey HKLM "SOFTWARE\${Vendor}\${ShortName}" ""
+
+; Installation types
+;InstType "Studio Only"
+
+BrandingText "${AppName} - ${AppVersion}"
+XPStyle on
+
+!define MUI_HEADERIMAGE
+!define MUI_HEADERIMAGE_BITMAP "utils\header_studio.bmp"
+!define MUI_COMPONENTSPAGE_SMALLDESC
+!define MUI_WELCOMEFINISHPAGE_BITMAP "utils\welcome_studio.bmp"
+!define iconfile "utils\studio-installer.ico"
+!define MUI_ICON "${iconfile}"
+!define MUI_UNICON "${iconfile}"
+
+;--------------------------------
+;Pages
+
+ ; License page
+ !insertmacro MUI_PAGE_WELCOME
+ !insertmacro MUI_PAGE_LICENSE "release\LICENSE.txt"
+
+ !define MUI_INSTFILESPAGE_FINISHHEADER_TEXT "Installation complete"
+ !define MUI_PAGE_HEADER_TEXT "Installing"
+ !define MUI_PAGE_HEADER_SUBTEXT "Please wait while ${AppName} is being installed."
+
+ !insertmacro MUI_PAGE_COMPONENTS
+
+ # The main installation directory
+
+ Var STUDIO_HOME_DIR
+ !define MUI_DIRECTORYPAGE_VARIABLE $STUDIO_HOME_DIR ;selected by user
+ !define MUI_DIRECTORYPAGE_TEXT_DESTINATION "Apache Directory Studio Install Directory" ;descriptive text
+ !define MUI_DIRECTORYPAGE_TEXT_TOP "This is the location where you would like to install Apache Directory Studio."
+ !insertmacro MUI_PAGE_DIRECTORY ; this pops-up the GUI page
+
+ !insertmacro MUI_PAGE_INSTFILES
+ !insertmacro MUI_PAGE_FINISH
+
+; Uninstall
+ !insertmacro MUI_UNPAGE_CONFIRM
+ !insertmacro MUI_UNPAGE_INSTFILES
+
+
+;--------------------------------
+;Modern UI Configuration
+
+ !define MUI_ABORTWARNING
+
+;--------------------------------
+;Languages
+
+!insertmacro MUI_LANGUAGE "English"
+
+
+;--------------------------------
+;Language Strings
+
+ ;Description
+ LangString DESC_SecServerFiles ${LANG_ENGLISH} "Apache Directory Server Application Files"
+ LangString DESC_SecStudioFiles ${LANG_ENGLISH} "Apache Directory Studio Application Files"
+ LangString DESC_SecStudioConnections ${LANG_ENGLISH} "Example connections to locally installed server"
+ LangString DESC_SecInstanceFiles ${LANG_ENGLISH} "Example server instance"
+
+ ;Header
+ LangString TEXT_JRE_TITLE ${LANG_ENGLISH} "Java Runtime Environment"
+ LangString TEXT_JRE_SUBTITLE ${LANG_ENGLISH} "Installation"
+ LangString TEXT_PRODVER_TITLE ${LANG_ENGLISH} "Installed version of ${AppName}"
+ LangString TEXT_PRODVER_SUBTITLE ${LANG_ENGLISH} "Installation cancelled"
+
+;--------------------------------
+;Installer Sections
+
+
+SectionGroup "Apache Directory Studio"
+Section "Application Files" SecStudioFiles
+ SectionIn 1 3
+ SetOutPath "$STUDIO_HOME_DIR"
+ File /r "release\*"
+
+ ;Store install folder
+ WriteRegStr HKLM "SOFTWARE\${Vendor}\${Project}\Studio" "InstallDir" "$STUDIO_HOME_DIR"
+
+ CreateDirectory "$SMPROGRAMS\Apache Directory Suite\Studio"
+ CreateShortCut "$SMPROGRAMS\Apache Directory Suite\Studio\Studio.lnk" "$STUDIO_HOME_DIR\Apache Directory Studio.exe" "" "$STUDIO_HOME_DIR\Apache Directory Studio.exe" 0
+
+ # Probably need to filter the file here (put in instance home)
+
+ ;Store install folder
+ WriteRegStr HKLM "SOFTWARE\${Vendor}\${Project}\Studio" "InstallDir" $STUDIO_HOME_DIR
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${Project} Studio" "DisplayName" "${AppName} - (remove only)"
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${Project} Studio" "DisplayIcon" "$STUDIO_HOME_DIR\uninstall.exe"
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${Project} Studio" "UninstallString" '"$STUDIO_HOME_DIR\uninstall.exe"'
+ WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${Project} Studio" "NoModify" "1"
+ WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${Project} Studio" "NoRepair" "1"
+
+ ;Create uninstaller
+ WriteUninstaller "$STUDIO_HOME_DIR\Uninstall.exe"
+
+ CreateDirectory "$SMPROGRAMS\Apache Directory Suite\Studio"
+
+ CreateShortCut "$SMPROGRAMS\Apache Directory Suite\Studio\Uninstall.lnk" "$STUDIO_HOME_DIR\uninstall.exe" "" "$STUDIO_HOME_DIR\uninstall.exe" 0
+
+
+SectionEnd
+Section "Example Connections" SecStudioConnections
+ SectionIn 1 3
+
+ IfFileExists "$PROFILE\.ApacheDirectoryStudio\.metadata\.plugins\org.apache.directory.studio.ldapbrowser.core\browserconnections.xml" End 0
+ SetOutPath "$PROFILE\.ApacheDirectoryStudio\.metadata\.plugins\org.apache.directory.studio.ldapbrowser.core"
+ File "utils\browserconnections.xml"
+
+ IfFileExists "$PROFILE\.ApacheDirectoryStudio\.metadata\.plugins\org.apache.directory.studio.connection.core\connections.xml" End 0
+ SetOutPath "$PROFILE\.ApacheDirectoryStudio\.metadata\.plugins\org.apache.directory.studio.connection.core"
+ File "utils\connections.xml"
+End:
+
+SectionEnd
+SectionGroupEnd
+
+;--------------------------------
+;Descriptions
+
+!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecStudioFiles} $(DESC_SecStudioFiles)
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecStudioConnections} $(DESC_SecStudioConnections)
+!insertmacro MUI_FUNCTION_DESCRIPTION_END
+
+;---------------------------------
+; Functions
+
+;--------------------------------
+;Installer Functions
+
+Function .onInit
+ SetCurInstType 0
+ SetAutoClose false
+ StrCpy $STUDIO_HOME_DIR "$PROGRAMFILES\Apache Directory Studio"
+FunctionEnd
+
+;--------------------------------
+;Uninstaller Section
+
+Section "Uninstall"
+ ReadRegStr $STUDIO_HOME_DIR HKLM "SOFTWARE\${Vendor}\${Project}\Studio" "InstallDir"
+
+ ; remove registry keys
+ DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${Project} Studio"
+ DeleteRegKey HKLM "SOFTWARE\${Vendor}\${Project}\Studio"
+
+ ; remove shortcuts, if any.
+ RMDir /r "$SMPROGRAMS\Apache Directory Suite\Studio"
+
+ ; remove files in root, then all dirs created by the installer.... leave user added or instance dirs.
+ RMDir /r "$STUDIO_HOME_DIR" ;Studio install dir
+
+SectionEnd
+
Propchange: directory/studio/trunk/tools/Windows Installer/windows_installer.nsi
------------------------------------------------------------------------------
svn:executable = *