[ADD] packaging: windows: bundle wkhtmltopdf and lessc
[odoo/odoo.git] / setup / win32 / setup.nsi
index 6afe1e7..73def65 100755 (executable)
@@ -238,6 +238,10 @@ Section $(TITLE_OpenERP_Server) SectionOpenERP_Server
     File "start.bat"\r
     File "stop.bat"\r
 \r
+    SetOutPath "$INSTDIR\thirdparty"\r
+    File /r "${STATIC_PATH}\wkhtmltopdf\*"\r
+    File /r "${STATIC_PATH}\less\*"\r
+\r
 # If there is a previous install of the OpenERP Server, keep the login/password from the config file\r
     WriteIniStr "$INSTDIR\server\openerp-server.conf" "options" "db_host" $TextPostgreSQLHostname\r
     WriteIniStr "$INSTDIR\server\openerp-server.conf" "options" "db_user" $TextPostgreSQLUsername\r
@@ -324,7 +328,7 @@ Section "Uninstall"
 \r
     Rmdir /r "$INSTDIR\server"\r
     Rmdir /r "$INSTDIR\service"\r
-\r
+    Rmdir /r "$INSTDIR\thirdparty"\r
     DeleteRegKey HKLM "${UNINSTALL_REGISTRY_KEY}"\r
 SectionEnd\r
 \r