Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
6252a573
Commit
6252a573
authored
16 years ago
by
Stéphane Wirtel
Browse files
Options
Downloads
Patches
Plain Diff
Refactor and add BrandingText
bzr revid: stephane@tinyerp.com-20081031115149-z2hml70twzinmvzk
parent
9c29f36a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openerp-server-installer.nsi
+18
-8
18 additions, 8 deletions
openerp-server-installer.nsi
with
18 additions
and
8 deletions
openerp-server-installer.nsi
+
18
−
8
View file @
6252a573
...
...
@@ -21,6 +21,8 @@ InstallDir "$PROGRAMFILES\OpenERP Server"
;Get installation folder from registry if available
InstallDirRegKey HKCU "Software\OpenERP Server" ""
BrandingText "OpenERP Server v5.0-Alpha"
;Vista redirects $SMPROGRAMS to all users without this
RequestExecutionLevel admin
...
...
@@ -47,7 +49,7 @@ Var STARTMENU_FOLDER
!define MUI_HEADERIMAGE_BITMAP ".\pixmaps\openerp-slogan.bmp"
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "doc\
\
License.rtf"
!insertmacro MUI_PAGE_LICENSE "doc\License.rtf"
# !insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
...
...
@@ -79,6 +81,10 @@ Var STARTMENU_FOLDER
!insertmacro MUI_LANGUAGE "English"
!macro CreateInternetShortcut FILENAME URL
WriteINIStr "${FILENAME}.url" "InternetShortcut" "URL" "${URL}"
!macroend
;--------------------------------
;Installer Sections
...
...
@@ -90,12 +96,12 @@ Section "OpenERP Server" SecOpenERPServer
SetOutPath "$INSTDIR"
;ADD YOUR OWN FILES HERE...
File /r "dist\
\
*"
File /r "dist\*"
SetOutPath "$INSTDIR\service"
File /r "win32\
\
dist\
\
*"
File "win32\
\
start.bat"
File "win32\
\
stop.bat"
File /r "win32\dist\*"
File "win32\start.bat"
File "win32\stop.bat"
;Store installation folder
WriteRegStr HKCU "Software\OpenERP Server" "" $INSTDIR
...
...
@@ -114,10 +120,12 @@ Section "OpenERP Server" SecOpenERPServer
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"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\uninstall.exe"
!insertmacro CreateInternetShortcut "$SMPROGRAMS\$STARTMENU_FOLDER\Forum" "http://www.openerp.com/forum"
!insertmacro CreateInternetShortcut "$SMPROGRAMS\$STARTMENU_FOLDER\Translation" "https://translations.launchpad.net/openobject"
!insertmacro MUI_STARTMENU_WRITE_END
nsExec::Exec '"$INSTDIR\
\
openerp-server.exe" --stop-after-init --logfile "$INSTDIR\
\
openerp-server.log" -s'
nsExec::Exec '"$INSTDIR\
\
service\
\
OpenERPServerService.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
...
...
@@ -138,12 +146,14 @@ Section "Uninstall"
nsExec::Exec "net stop openerp-service"
sleep 2
nsExec::Exec '"$INSTDIR\
\
service\
\
OpenERPServerService.exe" -remove'
nsExec::Exec '"$INSTDIR\service\OpenERPServerService.exe" -remove'
sleep 2
RMDIR /r "$INSTDIR"
!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
Delete "$SMPROGRAMS\$MUI_TEMP\Forum.url"
Delete "$SMPROGRAMS\$MUI_TEMP\Translation.url"
Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\OpenERP Server.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment