You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2005/03/20 23:01:33 UTC

svn commit: r158360 - lenya/branches/BRANCH_1_2_X/lenya.nsi

Author: gregor
Date: Sun Mar 20 14:01:33 2005
New Revision: 158360

URL: http://svn.apache.org/viewcvs?view=rev&rev=158360
Log:
Improved windows installer to make Lenya version more explicit and launch Lenya start page at the end of the install.

Modified:
    lenya/branches/BRANCH_1_2_X/lenya.nsi

Modified: lenya/branches/BRANCH_1_2_X/lenya.nsi
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/lenya.nsi?view=diff&r1=158359&r2=158360
==============================================================================
--- lenya/branches/BRANCH_1_2_X/lenya.nsi (original)
+++ lenya/branches/BRANCH_1_2_X/lenya.nsi Sun Mar 20 14:01:33 2005
@@ -26,15 +26,15 @@
 
   ;General
   Var product_name
-  Name "Apache Lenya 1.2.2"
-  OutFile "apache-lenya-1.2.2-bin.exe"
+  Name "Apache Lenya 1.2.3-dev"
+  OutFile "apache-lenya-1.2.3-dev-bin.exe"
   
   CRCCheck on
   SetCompress force
   SetDatablockOptimize on
 
   ;Folder selection page
-  InstallDir "C:\apache-lenya-1.2.2"
+  InstallDir "C:\apache-lenya-1.2.3-dev"
   
 ;--------------------------------
 ;Interface Settings
@@ -60,19 +60,15 @@
 ;--------------------------------
 ;Installer Sections
 
-Section "Apache Lenya 1.2.2" SecDummy
+Section "Apache Lenya 1.2.3-dev" SecDummy
 
   Call findJavaPath
-  StrCpy $product_name "Apache Lenya 1.2.2"
+  StrCpy $product_name "Apache Lenya 1.2.3-dev"
   SetOutPath $INSTDIR
   
   SetOutPath $INSTDIR\build\lenya\webapp
   File build\lenya\webapp\global-sitemap.xmap
-  File build\lenya\webapp\not-found.xml
   File build\lenya\webapp\sitemap.xmap
-  File build\lenya\webapp\welcome.xml
-  File build\lenya\webapp\welcome.xslt
-  File /r legal
   File /r build\lenya\webapp\lenya
   File /r build\lenya\webapp\resources
   File /r build\lenya\webapp\stylesheets
@@ -89,48 +85,46 @@
   File /r legal
 
   CreateDirectory "$SMPROGRAMS\$product_name"
-  CreateShortCut "$SMPROGRAMS\$product_name\Lenya Home Page.lnk" \
+  CreateShortCut "$SMPROGRAMS\$product_name\Apache Lenya Home Page.lnk" \
                  "http://lenya.apache.org/"
 
-  CreateShortCut "$SMPROGRAMS\$product_name\Welcome.lnk" \
+  CreateShortCut "$SMPROGRAMS\$product_name\Welcome to $product_name.lnk" \
                  "http://127.0.0.1:8888"
 
-  CreateShortCut "$SMPROGRAMS\$product_name\Apache Lenya Documentation.lnk" \
-                 "http://127.0.0.1:8888/docs-new/docs/index.html"
-
-  CreateShortCut "$SMPROGRAMS\$product_name\Uninstall Apache Lenya.lnk" \
+  CreateShortCut "$SMPROGRAMS\$product_name\Uninstall $product_name.lnk" \
                  "$INSTDIR\Uninstall.exe"
 
-  CreateShortCut "$SMPROGRAMS\$product_name\Start Apache Lenya.lnk" \
+  CreateShortCut "$SMPROGRAMS\$product_name\Start $product_name.lnk" \
                  "$INSTDIR\lenya.bat" \
                  'servlet' \
                  "$INSTDIR\lenya.bat" 1 SW_SHOWNORMAL
 
   ClearErrors
 
-  ExecWait '"$INSTDIR\lenya.bat"'
-  
+  ;Start Apache Lenya, wait 12 seconds to give it time to start, then launch start page
+  ExecShell "open" '"$INSTDIR\lenya.bat"' 0 SW_SHOWMINIMIZED
   ;Create uninstaller
   WriteUninstaller "$INSTDIR\Uninstall.exe"
-
+  Sleep 12000
+  ExecShell "open" '"http://127.0.0.1:8888"' 0 SW_SHOWNORMAL
+  Quit
 SectionEnd
 
 ;--------------------------------
 ;Descriptions
 
-  LangString DESC_SecDummy ${LANG_ENGLISH} "Installs the Apache Lenya Content Management System."
+  LangString DESC_SecDummy ${LANG_ENGLISH} "Installs the Apache Lenya 1.2.3-dev Content Management System."
 
   !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
-    !insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
+  !insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
   !insertmacro MUI_FUNCTION_DESCRIPTION_END
  
 ;--------------------------------
 ;Uninstaller Section
 
 Section "Uninstall"
-  RMDir /r "$SMPROGRAMS\Apache Lenya 1.2.2"
+  RMDir /r "$SMPROGRAMS\Apache Lenya 1.2.3-dev"
   RMDir /r "$INSTDIR"
-
 SectionEnd
 
 ; =====================



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org