[tuxdroid-svn] r6104 - software_suite_v3/smart-core/smart-api/python/trunk
Status: Beta
Brought to you by:
ks156
From: remi <c2m...@c2...> - 2010-04-12 07:52:28
|
Author: remi Date: 2010-04-12 09:51:57 +0200 (Mon, 12 Apr 2010) New Revision: 6104 Removed: software_suite_v3/smart-core/smart-api/python/trunk/installer.nsi Log: * Removed old linux script Deleted: software_suite_v3/smart-core/smart-api/python/trunk/installer.nsi =================================================================== --- software_suite_v3/smart-core/smart-api/python/trunk/installer.nsi 2010-03-22 10:51:48 UTC (rev 6103) +++ software_suite_v3/smart-core/smart-api/python/trunk/installer.nsi 2010-04-12 07:51:57 UTC (rev 6104) @@ -1,130 +0,0 @@ -; installer.nsi -; This installer which install python tuxisalive package -; ----------------------------------------------------------------------------- - -; HM NIS Edit Wizard helper defines -!define PRODUCT_NAME "Smart API for python" -!define PRODUCT_VERSION "0.5.0-b0" - -; Output names -!define FINAL_INSTALLER_EXE "pySmartAPIInstaller_${PRODUCT_VERSION}.exe" -!define UNINSTALLER_EXE "pySmartAPIUninstaller.exe" - -; The name of the installer -Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" - -; The file to write -OutFile "${FINAL_INSTALLER_EXE}" - -; The default installation directory -InstallDir c:\tuxdroid\bin\python\Lib\site-packages\tuxisalive - -; Request application privileges for Windows Vista -RequestExecutionLevel user - -; Get the Tuxdroid installation paths -var /GLOBAL TUXDROID_PATH -var /GLOBAL TUXDROID_PYTHON_PATH -var /GLOBAL UNINSTALLERS_SUB_PATH - -; ----------------------------------------------------------------------------- -; Section Pre-installation -; ----------------------------------------------------------------------------- -Section -Pre -!ifndef INNER - ; Needed - SectionIn RO - ; Get the Tuxdroid installation path - ReadRegStr $TUXDROID_PATH HKLM "SOFTWARE\Tux Droid\Installation" "Install_Dir" - ; Uninstall old installations of Smart-API - DetailPrint "Uninstalling old versions" - SetDetailsPrint none - ExecWait '"$TUXDROID_PATH\uninstallers\sub\${UNINSTALLER_EXE}" /S _?=$TUXDROID_PATH\uninstallers' - SetDetailsPrint textonly -!endif -SectionEnd - -; ----------------------------------------------------------------------------- -; Section "" -; ----------------------------------------------------------------------------- -Section "" - ; Get the Tuxdroid installation paths - ReadRegStr $TUXDROID_PATH HKLM "SOFTWARE\Tux Droid\Installation" "Install_Dir" - StrCpy $TUXDROID_PYTHON_PATH "$TUXDROID_PATH\softwares\python2.4" - StrCpy $UNINSTALLERS_SUB_PATH "$TUXDROID_PATH\uninstallers\sub" - - ; Write the files - CreateDirectory "$TUXDROID_PYTHON_PATH\Lib\site-packages\tuxisalive" - SetOutPath "$TUXDROID_PYTHON_PATH\Lib\site-packages\tuxisalive" - File /r /x *.pyc /x *.svn tuxisalive\* - - CreateDirectory "$TUXDROID_PATH\resources\images" - SetOutPath "$TUXDROID_PATH\resources\images" - File tuxsh.ico - - ; Write bat file - Delete "$TUXDROID_PATH\bin\tuxsh.bat" - Push '"$TUXDROID_PYTHON_PATH\python.exe" -i "$TUXDROID_PYTHON_PATH\Lib\site-packages\tuxisalive\api\sh.py"' - Push "$TUXDROID_PATH\bin\tuxsh.bat" - Call WriteToFile - - ; Reveal shortcuts to all users - SetShellVarContext all - ; Write shortcut in start menu - CreateShortCut "$SMPROGRAMS\TuxBox 2.0\Tuxware\Tux Droid Shell.lnk" "$TUXDROID_PATH\bin\tuxsh.bat" "" "$TUXDROID_PATH\resources\images\tuxsh.ico" 0 - - ; Write the uninstall file - WriteUninstaller "$UNINSTALLERS_SUB_PATH\${UNINSTALLER_EXE}" - - ; Quit the installer - Quit -SectionEnd - -; ----------------------------------------------------------------------------- -; Section "Uninstall" -; ----------------------------------------------------------------------------- -Section "Uninstall" - ; Get the Tuxdroid installation paths - ReadRegStr $TUXDROID_PATH HKLM "SOFTWARE\Tux Droid\Installation" "Install_Dir" - StrCpy $TUXDROID_PYTHON_PATH "$TUXDROID_PATH\softwares\python2.4" - StrCpy $UNINSTALLERS_SUB_PATH "$TUXDROID_PATH\uninstallers\sub" - - ; Remove files and uninstaller - Delete "$TUXDROID_PATH\bin\tuxsh.bat" - Delete "$TUXDROID_PATH\resources\images\tuxsh.ico" - RMDir /r "$TUXDROID_PYTHON_PATH\Lib\site-packages\tuxisalive" - Delete "$UNINSTALLERS_SUB_PATH\${UNINSTALLER_EXE}" - - ; Reveal shortcuts to all users - SetShellVarContext all - ; Remove shortcuts - Delete "$SMPROGRAMS\TuxBox 2.0\Tuxware\Tux Droid Shell.lnk" - - ; Quit the uninstaller - Quit -SectionEnd - -; ----------------------------------------------------------------------------- -; Function to write a file -; ----------------------------------------------------------------------------- -Function WriteToFile - Exch $0 ;file to write to - Exch - Exch $1 ;text to write - - FileOpen $0 $0 a #open file - FileSeek $0 0 END #go to end - FileWrite $0 $1 #write to file - FileClose $0 - - Pop $1 - Pop $0 -FunctionEnd - -!macro WriteToFile String File - Push "${String}" - Push "${File}" - Call WriteToFile -!macroend - -!define WriteToFile "!insertmacro WriteToFile" \ No newline at end of file |