diff --git a/matlab/dynare_version.m b/matlab/dynare_version.m
index a34a42fed562a25f58b53dcb0d37b2c29631866c..205093b9ccd547405d75ccce826533a61bee15b6 100644
--- a/matlab/dynare_version.m
+++ b/matlab/dynare_version.m
@@ -28,4 +28,4 @@ function v = dynare_version
 % You should have received a copy of the GNU General Public License
 % along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
-    v = '4.0.3';
+    v = '4.0.4';
diff --git a/windows/dynare.nsi b/windows/dynare.nsi
index a44868fd678b864cbc7ed1547892c28977360d3a..4b189920b21df216a1448bff7bf0ed6342a462df 100644
--- a/windows/dynare.nsi
+++ b/windows/dynare.nsi
@@ -10,7 +10,7 @@
 # - run "makensis dynare.nsi" to create the installer
 # - if there is no failure, this will create a file "dynare-VERSION-win32.exe" in the current directory
 
-!define VERSION "4.0.3"
+!define VERSION "4.0.4"
 
 Name "Dynare ${VERSION}"