X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=setup.nsi;h=859ebdb39e2f6688617da08ead764bf32a72f66e;hb=980952c416a43316068a7315fb562518e11da36b;hp=87a6202646ba2cfbbf3084ed7f1c0d7aaf5d9be8;hpb=96dee4a5805e16aadcef760ccee8b2851df2988e;p=odoo%2Fodoo.git diff --git a/setup.nsi b/setup.nsi index 87a6202..859ebdb 100644 --- a/setup.nsi +++ b/setup.nsi @@ -21,7 +21,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##################################################################################### !include 'MUI2.nsh' @@ -160,7 +160,7 @@ LangString DESC_PostgreSQL_Username ${LANG_FRENCH} "Utilisateur" LangString DESC_PostgreSQL_Password ${LANG_FRENCH} "Mot de passe" Section -StopService - nsExec::Exec "net stop openerp-server-6.1" + nsExec::Exec "net stop openerp-server-7.0" sleep 2 SectionEnd @@ -202,7 +202,7 @@ Section OpenERP_Server SectionOpenERP_Server SectionEnd Section -RestartServer - nsExec::Exec "net start openerp-server-6.1" + nsExec::Exec "net start openerp-server-7.0" sleep 2 SectionEnd @@ -226,7 +226,7 @@ SectionEnd Section "Uninstall" ; Stop the NT Service - nsExec::Exec "net stop openerp-server-6.1" + nsExec::Exec "net stop openerp-server-7.0" sleep 2 ; Uninstall the OpenERP Service @@ -291,9 +291,10 @@ Function .onInit !insertmacro MUI_LANGDLL_DISPLAY ClearErrors - EnumRegKey $0 HKLM "SOFTWARE\PostgreSQL" 0 + EnumRegKey $0 HKLM "SOFTWARE\PostgreSQL\Installations" 0 IfErrors DoInstallPostgreSQL 0 - StrCpy $HasPostgreSQL 1 + StrCmp $0 "" DoInstallPostgreSQL + StrCpy $HasPostgreSQL 1 DoInstallPostgreSQL: FunctionEnd