~openerp/openerp/win-installer-trunk

« back to all changes in this revision

Viewing changes to setup.nsi

  • Committer: Stephane Wirtel
  • Date: 2009-01-08 13:51:51 UTC
  • Revision ID: stephane@tinyerp.com-20090108135151-qg9jk2lvugyi0m34
[IMP] Add the client-web

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
  ;ADD YOUR OWN FILES HERE...
140
140
  File "server\openerp-server-setup-${VERSION}.exe"
141
141
  File "client\openerp-client-setup-${VERSION}.exe"
 
142
  File "client-web\openerp-web-setup-${VERSION}.exe"
142
143
 
143
144
  nsExec::Exec 'net stop openerp-service'
144
145
  sleep 2
146
147
 
147
148
  ExecWait '"$TEMP\openerp-client-setup-${VERSION}.exe" /S /D=$INSTDIR\\Client'
148
149
 
 
150
  ExecWait '"$TEMP\openerp-web-setup-${VERSION}.exe" /S /D=$INSTDIR\\Web'
 
151
 
149
152
  ClearErrors
150
153
  EnumRegKey $0 HKLM "SOFTWARE\PostgreSQL" 0
151
154
  IfErrors DoInstallPostgreSQL 0
203
206
  ReadRegStr $0 HKLM "Software\OpenERP AllInOne" "UninstallClient"
204
207
  ExecWait '"$0" /S'
205
208
 
 
209
  ReadRegStr $0 HKLM "Software\OpenERP AllInOne" "UninstallWeb"
 
210
  ExecWait '"$0" /S'
 
211
 
206
212
  ;ADD YOUR OWN FILES HERE...
207
213
  RMDIR /r "$INSTDIR"
208
214
  
209
215
  DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenERP AllInOne"
210
216
  DeleteRegKey HKLM "Software\OpenERP AllInOne\UninstallServer" 
211
217
  DeleteRegKey HKLM "Software\OpenERP AllInOne\UninstallClient"
 
218
  DeleteRegKey HKLM "Software\OpenERP AllInOne\UninstallWeb"
212
219
  DeleteRegKey HKLM "Software\OpenERP AllInOne\HasInstalledPostgreSQL"
213
220
  DeleteRegKey /ifempty HKLM "Software\OpenERP AllInOne"
214
221