Author: remi
Date: 2009-02-10 11:30:08 +0100 (Tue, 10 Feb 2009)
New Revision: 3595

Modified:
   
software_suite_v2/software/http_server_resources/chatter_tux/trunk/installer.nsi
Log:
* improved Installation process
* added time sleeping between the Windows service commands

Modified: 
software_suite_v2/software/http_server_resources/chatter_tux/trunk/installer.nsi
===================================================================
--- 
software_suite_v2/software/http_server_resources/chatter_tux/trunk/installer.nsi
    2009-02-10 10:29:10 UTC (rev 3594)
+++ 
software_suite_v2/software/http_server_resources/chatter_tux/trunk/installer.nsi
    2009-02-10 10:30:08 UTC (rev 3595)
@@ -34,6 +34,26 @@
     ReadRegStr $TUXDROID_PATH HKLM "SOFTWARE\Tuxdroid\TuxdroidSetup" 
"Install_Dir"
     StrCpy $UNINSTALLERS_SUB_PATH "$TUXDROID_PATH\uninstallers\sub"
     
+    IfFileExists 
"$TUXDROID_PATH\resources\tuxhttpserver\chatterTux\uninstall_service.bat" 
uninstall_first start_installation
+    
+uninstall_first:
+    
+    ; Stop the service
+    ExecDos::exec /NOUNLOAD /ASYNC /TIMEOUT=30000 
"$TUXDROID_PATH\resources\tuxhttpserver\chatterTux\stop_service.bat"
+    Pop $0
+    ExecDos::wait $0
+    
+    Sleep 1500
+    
+    ; Uninstall the service
+    ExecDos::exec /NOUNLOAD /ASYNC /TIMEOUT=30000 
"$TUXDROID_PATH\resources\tuxhttpserver\chatterTux\uninstall_service.bat"
+    Pop $0
+    ExecDos::wait $0
+    
+    Sleep 500
+    
+start_installation:
+    
     ; Copy the attitune and wav files
     CreateDirectory "$TUXDROID_PATH\resources\attitunes\chatterTux"
     SetOutPath "$TUXDROID_PATH\resources\attitunes\chatterTux"
@@ -70,11 +90,15 @@
     Push "$TUXDROID_PATH\resources\tuxhttpserver\chatterTux\stop_service.bat"
     Call WriteToFile
     
+    Sleep 500
+    
     ; Install the service
     ExecDos::exec /NOUNLOAD /ASYNC /TIMEOUT=30000 
"$TUXDROID_PATH\resources\tuxhttpserver\chatterTux\install_service.bat"
     Pop $0
     ExecDos::wait $0
     
+    Sleep 1500
+    
     ; Load the service
     ExecDos::exec /NOUNLOAD /ASYNC /TIMEOUT=30000 
"$TUXDROID_PATH\resources\tuxhttpserver\chatterTux\start_service.bat"
     Pop $0
@@ -97,10 +121,14 @@
     Pop $0
     ExecDos::wait $0
     
+    Sleep 1500
+    
     ; Uninstall the service
     ExecDos::exec /NOUNLOAD /ASYNC /TIMEOUT=30000 
"$TUXDROID_PATH\resources\tuxhttpserver\chatterTux\uninstall_service.bat"
     Pop $0
     ExecDos::wait $0
+    
+    Sleep 500
 
     ; Remove files and uninstaller
     Delete 
"$TUXDROID_PATH\softwares\tuxhttpserver\resources\ResourceChatterTux.py"


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to