rename tinyerp to openerp

bzr revid: stephane@tinyerp.com-20080910074221-6cu9fn1eog4y5ciu
This commit is contained in:
Stephane Wirtel 2008-09-10 09:42:21 +02:00
parent a05e6fe4b3
commit fe3b8926a5
1 changed files with 29 additions and 29 deletions

View File

@ -11,14 +11,14 @@
;General
;Name and file
Name "TinyERP Server"
OutFile "tinyerp-server-setup.exe"
Name "OpenERP Server"
OutFile "openerp-server-setup.exe"
;Default installation folder
InstallDir "$PROGRAMFILES\TinyERP Server"
InstallDir "$PROGRAMFILES\OpenERP Server"
;Get installation folder from registry if available
InstallDirRegKey HKCU "Software\TinyERP Server" ""
InstallDirRegKey HKCU "Software\OpenERP Server" ""
;Vista redirects $SMPROGRAMS to all users without this
RequestExecutionLevel admin
@ -37,11 +37,11 @@
;--------------------------------
;Pages
!define MUI_ICON ".\pixmaps\tinyerp.ico"
!define MUI_UNICON ".\pixmaps\tinyerp.ico"
!define MUI_WELCOMEFINISHPAGE_BITMAP ".\pixmaps\tinyerp-intro.bmp"
!define MUI_ICON ".\pixmaps\openerp.ico"
!define MUI_UNICON ".\pixmaps\openerp.ico"
!define MUI_WELCOMEFINISHPAGE_BITMAP ".\pixmaps\openerp-intro.bmp"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP ".\pixmaps\tinyerp-header.bmp"
!define MUI_HEADERIMAGE_BITMAP ".\pixmaps\openerp-header.bmp"
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "doc\\License.rtf"
@ -50,8 +50,8 @@
;Start Menu Folder Page Configuration
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\TinyERP Server"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "TinyERP Server"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\OpenERP Server"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "OpenERP Server"
!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
@ -60,7 +60,7 @@
!define MUI_FINISHPAGE_NOAUTOCLOSE
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_CHECKED
!define MUI_FINISHPAGE_RUN_TEXT "Start TinyERP Server"
!define MUI_FINISHPAGE_RUN_TEXT "Start OpenERP Server"
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink"
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
!define MUI_FINISHPAGE_SHOWREADME $INSTDIR\README.txt
@ -79,9 +79,9 @@
;--------------------------------
;Installer Sections
Section "TinyERP Server" SecTinyERPServer
Section "OpenERP Server" SecOpenERPServer
nsExec::Exec "net stop tinyerp-service"
nsExec::Exec "net stop openerp-service"
sleep 2
SetOutPath "$INSTDIR"
@ -95,11 +95,11 @@ Section "TinyERP Server" SecTinyERPServer
File "win32\\stop.bat"
;Store installation folder
WriteRegStr HKCU "Software\TinyERP Server" "" $INSTDIR
WriteRegStr HKCU "Software\OpenERP Server" "" $INSTDIR
;Create uninstaller
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TinyERP Server" "DisplayName" "TinyERP Server (remove only)"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\TinyERP Server" "UninstallString" "$INSTDIR\Uninstall.exe"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenERP Server" "DisplayName" "OpenERP Server (remove only)"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenERP Server" "UninstallString" "$INSTDIR\Uninstall.exe"
WriteUninstaller "$INSTDIR\Uninstall.exe"
@ -107,27 +107,27 @@ Section "TinyERP Server" SecTinyERPServer
;Create shortcuts
CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\TinyERP Server.lnk" "$INSTDIR\tinyerp-server.exe"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\OpenERP Server.lnk" "$INSTDIR\openerp-server.exe"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Start service.lnk" "$INSTDIR\service\start.bat"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Stop service.lnk" "$INSTDIR\service\stop.bat"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Edit config.lnk" "notepad.exe" "$INSTDIR\tinyerp-server.conf"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\View log.lnk" "notepad.exe" "$INSTDIR\tinyerp-server.log"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Edit config.lnk" "notepad.exe" "$INSTDIR\openerp-server.conf"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\View log.lnk" "notepad.exe" "$INSTDIR\openerp-server.log"
!insertmacro MUI_STARTMENU_WRITE_END
nsExec::Exec '"$INSTDIR\\tinyerp-server.exe" --stop-after-init --logfile "$INSTDIR\\tinyerp-server.log" -s'
nsExec::Exec '"$INSTDIR\\service\\TinyERPServerService.exe" -auto -install'
nsExec::Exec '"$INSTDIR\\openerp-server.exe" --stop-after-init --logfile "$INSTDIR\\openerp-server.log" -s'
nsExec::Exec '"$INSTDIR\\service\\OpenERPServerService.exe" -auto -install'
SectionEnd
;Descriptions
;Language strings
LangString DESC_SecTinyERPServer ${LANG_ENGLISH} "TinyERP Server."
LangString DESC_SecOpenERPServer ${LANG_ENGLISH} "OpenERP Server."
;Assign language strings to sections
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SecTinyERPServer} $(DESC_SecTinyERPServer)
!insertmacro MUI_DESCRIPTION_TEXT ${SecOpenERPServer} $(DESC_SecOpenERPServer)
!insertmacro MUI_FUNCTION_DESCRIPTION_END
;--------------------------------
@ -135,9 +135,9 @@ SectionEnd
Section "Uninstall"
nsExec::Exec "net stop tinyerp-service"
nsExec::Exec "net stop openerp-service"
sleep 2
nsExec::Exec '"$INSTDIR\\service\\TinyERPServerService.exe" -remove'
nsExec::Exec '"$INSTDIR\\service\\OpenERPServerService.exe" -remove'
sleep 2
;ADD YOUR OWN FILES HERE...
@ -172,7 +172,7 @@ Section "Uninstall"
!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
Delete "$SMPROGRAMS\$MUI_TEMP\TinyERP Server.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\OpenERP Server.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\Start service.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\Stop service.lnk"
@ -192,13 +192,13 @@ Section "Uninstall"
StrCmp $MUI_TEMP $SMPROGRAMS startMenuDeleteLoopDone startMenuDeleteLoop
startMenuDeleteLoopDone:
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TinyERP Server"
DeleteRegKey /ifempty HKCU "Software\TinyERP Server"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenERP Server"
DeleteRegKey /ifempty HKCU "Software\OpenERP Server"
SectionEnd
Function LaunchLink
nsExec::Exec "net start tinyerp-service"
nsExec::Exec "net start openerp-service"
FunctionEnd
Function un.RmDirsButOne