~aw/openobject-client/package

« back to all changes in this revision

Viewing changes to openerp-client-installer.nsi

  • Committer: Stephane Wirtel
  • Date: 2008-11-03 14:01:46 UTC
  • Revision ID: stephane@tinyerp.com-20081103140146-uwagq8p5w80p1t1u
Change the licensepage's text. Add a function .onInit to check a previous installation

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
!define MUI_HEADERIMAGE_BITMAP_NOSTRETCH
48
48
!define MUI_HEADER_TRANSPARENT_TEXT ""
49
49
!define MUI_HEADERIMAGE_BITMAP ".\bin\pixmaps\openerp-slogan.bmp"
50
 
;-- !define MUI_WELCOMEPAGE_TITLE "OpenERP grrrr"
51
 
;-- !define MUI_WELCOMEPAGE_TEXT "Superman"
 
50
!define MUI_LICENSEPAGE_TEXT_BOTTOM "Usually, a proprietary license provides with the software: limited number of users, limited in time usage, etc. This Open Source license is the opposite: it garantees you the right to use, copy, study, distribute and modify Open ERP for free."
52
51
 
53
52
!insertmacro MUI_PAGE_WELCOME
54
53
!insertmacro MUI_PAGE_LICENSE "doc\License.rtf"
55
 
# !insertmacro MUI_PAGE_COMPONENTS
56
54
!insertmacro MUI_PAGE_DIRECTORY
57
55
 
58
56
;Start Menu Folder Page Configuration
89
87
 
90
88
;--------------------------------
91
89
;Installer Sections
 
90
;
 
91
Function .onInit 
 
92
    ClearErrors
 
93
    ReadRegStr $0 HKCU "Software\OpenERP Client" ""
 
94
    IfErrors DoInstall 0
 
95
        MessageBox MB_OK "Can not install the Open ERP Client because a previous installation already exists on this system. Please uninstall your current installation and relaunch this setup wizard."
 
96
        Quit
 
97
    DoInstall:
 
98
FunctionEnd
92
99
 
93
100
Section "OpenERP Client" SecOpenERPClient
94
 
        ClearErrors
95
 
        ReadRegStr $0 HKCU "Software\OpenERP Client" ""
96
 
        IfErrors DoInstall 0
97
 
            MessageBox MB_OK "Can't install this version of OpenERP Client because there is a previous installation on this system !"
98
 
            Quit
99
 
 
100
 
        DoInstall:
101
101
        SetOutPath "$INSTDIR"
102
102
  
103
103
        ;ADD YOUR OWN FILES HERE...