gnucash-on-windows master: Bug 797036 - Runtime Error During 3.4 Upgrade

Geert Janssens gjanssens at code.gnucash.org
Sat Jan 12 10:04:30 EST 2019


Updated	 via  https://github.com/Gnucash/gnucash-on-windows/commit/598e01e9 (commit)
	from  https://github.com/Gnucash/gnucash-on-windows/commit/7ac93fe1 (commit)



commit 598e01e926712b1bd5aa37bfe6f5c57f25d763a2
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Sat Jan 12 16:04:21 2019 +0100

    Bug 797036 - Runtime Error During 3.4 Upgrade
    
    allusersprofile is not (or not any more) an internal constant of the Inno Setup compiler
    So expand it as an environment variable instead.

diff --git a/inno_setup/gnucash-mingw64.iss b/inno_setup/gnucash-mingw64.iss
index 6add9cb..a18afaa 100644
--- a/inno_setup/gnucash-mingw64.iss
+++ b/inno_setup/gnucash-mingw64.iss
@@ -511,14 +511,14 @@ begin
   try
     // first try to expand the {userdocs} folder; if this raises that
     // internal exception, you'll fall down to the except block where
-    // you expand the {allusersprofile}
+    // you expand the {%allusersprofile}
     Folder := ExpandConstant('{userdocs}');
     // the {userdocs} folder expanding succeded, so let's test if the
-    // folder exists and if not, expand {allusersprofile}
+    // folder exists and if not, expand {%allusersprofile}
     if not DirExists(Folder) then
-      Folder := ExpandConstant('{allusersprofile}');
+      Folder := ExpandConstant('{%allusersprofile}');
   except
-    Folder := ExpandConstant('{allusersprofile}');
+    Folder := ExpandConstant('{%allusersprofile}');
   end;
   // return the result
   Result := Folder;



Summary of changes:
 inno_setup/gnucash-mingw64.iss | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)



More information about the gnucash-changes mailing list