howdee,

im sure that stuff has been ongoing because i
was able to recompile successfully today.  thanx!

here is a kinda-working patch implementing some
ispp-items that might help in the future.  in particular,
there is still an install-issue about finding guile.exe
to run the guile.bat file.  i dont think this affects the
patch, but rather there is still installer-stuff ongoing...

hopefully this will be helpful, h.
Index: gnucash.iss.in
===================================================================
--- gnucash.iss.in      (revision 15270)
+++ gnucash.iss.in      (working copy)
@@ -5,22 +5,44 @@
 ; Inno Setup Compiler: See http://www.jrsoftware.org/isdl.php
 ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
+[ISPP]
+; Using the name here directly because we want it capitalized
+; implementing all config-preprocessor calls
+#define GC "GnuCash"
+#define GCVER "GnuCash @VERSION@"
+#define GCPUB "GnuCash Development Team"
+#define GCURL "http://www.gnucash.org";
+#define GCDIR "[EMAIL PROTECTED]@"
+;;;;;;#define GCDIST @[EMAIL PROTECTED]
+; use installer dir - c:\soft3\gnucash\inst\
+#define GCDIST "@prefix@"
+#define GCDOC "@[EMAIL PROTECTED]@[EMAIL PROTECTED]"
+#define GCOUT "@[EMAIL PROTECTED]@[EMAIL PROTECTED]"
+#define GCUNINST "[EMAIL PROTECTED]@"
+#define GCBIN "{app}\bin"
+#define GCBAT "{app}\bin\gnucash.bat"
+#define GCCOMMENT "GnuCash Free Finance Manager"
+#define GCICON "@[EMAIL PROTECTED]@[EMAIL PROTECTED]"
+#define GCPOSTRUN "{app}\bin\guile.bat"
+#define GCDOCOUT "[EMAIL PROTECTED]@"
+#define GCPATH "Software\GnuCash\Paths"
+; end-Preprocessor defines
+
 [Setup]
-; Using the name here directly because we want it capitalized
-AppName=GnuCash
-AppVerName=GnuCash @VERSION@
-AppPublisher=GnuCash Development Team
-AppPublisherURL=http://www.gnucash.org
-AppSupportURL=http://www.gnucash.org
-AppUpdatesURL=http://www.gnucash.org
[EMAIL PROTECTED]@
-DefaultGroupName=GnuCash
[EMAIL PROTECTED]@[EMAIL PROTECTED]@\doc\COPYING
+AppName={#GC}
+AppVerName={#GCVER}
+AppPublisher={#GCPUB}
+AppPublisherURL={#GCURL}
+AppSupportURL={#GCURL}
+AppUpdatesURL={#GCURL}
+DefaultDirName={#GCDIR}
+DefaultGroupName={#GC}
+LicenseFile={#GCDOC}\COPYING
 Compression=lzma
 OutputDir=.
[EMAIL PROTECTED]@[EMAIL PROTECTED]@-setup
[EMAIL PROTECTED]@
[EMAIL PROTECTED]@[EMAIL PROTECTED]@\doc\README
+OutputBaseFilename={#GCOUT}
+UninstallFilesDir={#GCUNINST}
+InfoAfterFile={#GCDOC}\README
 
 [Types]
 Name: "full"; Description: "{cm:FullInstall}"
@@ -36,13 +58,13 @@
 Name: menuicon; Description: "{cm:CreateMenuLink}"; GroupDescription: 
"{cm:AdditionalIcons}"
 
 [Icons]
-Name: "{group}\GnuCash"; Filename: "{app}\bin\gnucash.bat"; WorkingDir: 
"{app}\bin"; Comment: "GnuCash Free Finance Manager"; IconFilename: 
"{app}\share\gnucash\pixmaps\gnucash-icon.ico"; Tasks: menuicon
-Name: "{group}\Uninstall GnuCash"; Filename: "{uninstallexe}"; Tasks: menuicon
-Name: "{userdesktop}\GnuCash"; Filename: "{app}\bin\gnucash.bat"; WorkingDir: 
"{app}\bin"; Comment: "GnuCash Free Finance Manager"; IconFilename: 
"{app}\share\gnucash\pixmaps\gnucash-icon.ico"; Tasks: desktopicon
+Name: "{group}\{#GC}"; Filename: "{#GCBAT}"; WorkingDir: "{#GCBIN}"; Comment: 
"{#GCCOMMENT}"; IconFilename: "{#GCICON}"; Tasks: menuicon
+Name: "{group}\Uninstall {#GC}"; Filename: "{uninstallexe}"; Tasks: menuicon
+Name: "{userdesktop}\{#GC}"; Filename: "{#GCBAT}"; WorkingDir: "{#GCBIN}"; 
Comment: "{#GCCOMMENT}"; IconFilename: "{#GCICON}"; Tasks: desktopicon
 
 [Run]
-Filename: "{app}\bin\gnucash.bat"; Description: "{cm:RunPrg}"; WorkingDir: 
"{app}\bin"; Flags: postinstall skipifsilent
-Filename: "{app}\bin\guile.bat"; Parameters: "-c ""(use-modules (ice-9 slib)) 
(require 'printf)"""; Flags: runhidden
+Filename: "{#GCBAT}"; Description: "{cm:RunPrg}"; WorkingDir: "{#GCBIN}"; 
Flags: postinstall skipifsilent
+Filename: "{#GCPOSTRUN}"; Parameters: "-c ""(use-modules (ice-9 slib)) 
(require 'printf)"""; Flags: runhidden
 
 ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ; Here we configure the included files and the place of their
@@ -50,44 +72,44 @@
 ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 [Files]
 ; The main executables and DLLs
-Source: "@[EMAIL PROTECTED]"; DestDir: "{app}\bin"; Flags: recursesubdirs; 
Components: main; AfterInstall: MyAfterInstallConfig()
+Source: "{#GCDIST}\bin\*"; DestDir: "{#GCBIN}"; Flags: recursesubdirs; 
Components: main; AfterInstall: MyAfterInstallConfig()
 ; Note: The above AfterInstall function will create the 
 ; gnucash.bat file on-the-fly by the Pascal script below.
 
-Source: "@[EMAIL PROTECTED]"; DestDir: "{app}\etc"; Flags: recursesubdirs; 
Components: main
-Source: "@[EMAIL PROTECTED]"; DestDir: "{app}\lib"; Flags: recursesubdirs; 
Components: main
-Source: "@[EMAIL PROTECTED]"; DestDir: "{app}\libexec"; Flags: recursesubdirs; 
Components: main
-Source: "@[EMAIL PROTECTED]"; DestDir: "{app}\share"; Flags: recursesubdirs; 
Components: main
+Source: "{#GCDIST}\etc\*"; DestDir: "{app}\etc"; Flags: recursesubdirs; 
Components: main
+Source: "{#GCDIST}\lib\*"; DestDir: "{app}\lib"; Flags: recursesubdirs; 
Components: main
+Source: "{#GCDIST}\libexec\*"; DestDir: "{app}\libexec"; Flags: 
recursesubdirs; Components: main
+Source: "{#GCDIST}\share\*"; DestDir: "{app}\share"; Flags: recursesubdirs; 
Components: main
 
 ;; The translations (no idea why mingw installs them in prefix/lib/locale)
-;Source: "@[EMAIL PROTECTED]"; DestDir: "{app}\lib\locale"; Flags: 
recursesubdirs; Components: translations
+;Source: "{#GCDIST}\lib\locale\*"; DestDir: "{app}\lib\locale"; Flags: 
recursesubdirs; Components: translations
 ;
 ;; The account templates
-;Source: "@[EMAIL PROTECTED]"; DestDir: "{app}\share\gnucash\accounts"; Flags: 
recursesubdirs; Components: templates
+;Source: "{#GCDIST}\share\gnucash\accounts\*"; DestDir: 
"{app}\share\gnucash\accounts"; Flags: recursesubdirs; Components: templates
 
 ; And all the documentation
-Source: "@[EMAIL PROTECTED]@[EMAIL PROTECTED]"; DestDir: "[EMAIL PROTECTED]@"; 
Components: main
-Source: "@[EMAIL PROTECTED]@[EMAIL PROTECTED]"; DestDir: "[EMAIL PROTECTED]@"; 
Flags: ignoreversion; Components: main
-Source: "@[EMAIL PROTECTED]@[EMAIL PROTECTED]"; DestDir: "[EMAIL PROTECTED]@"; 
Components: main
-Source: "@[EMAIL PROTECTED]@[EMAIL PROTECTED]"; DestDir: "[EMAIL PROTECTED]@"; 
Components: main
+Source: "{#GCDOC}\README"; DestDir: "{#GCDOCOUT}"; Components: main
+Source: "{#GCDOC}\COPYING"; DestDir: "{#GCDOCOUT}"; Flags: ignoreversion; 
Components: main
+Source: "{#GCDOC}\AUTHORS"; DestDir: "{#GCDOCOUT}"; Components: main
+Source: "{#GCDOC}\ChangeLog"; DestDir: "{#GCDOCOUT}"; Components: main
 
 
 ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ; Define the registry keys Setup should create (HKCU = HKEY_CURRENT_USER)
 ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 [Registry]
-Root: HKCU; Subkey: "Software\GnuCash\Paths"; ValueType: string; ValueName: 
"prefix"; ValueData: "{app}"
-Root: HKCU; Subkey: "Software\GnuCash\Paths"; ValueType: string; ValueName: 
"libdir"; ValueData: "{app}\lib"
-Root: HKCU; Subkey: "Software\GnuCash\Paths"; ValueType: string; ValueName: 
"pkglibdir"; ValueData: "[EMAIL PROTECTED]@"
-Root: HKCU; Subkey: "Software\GnuCash\Paths"; ValueType: string; ValueName: 
"sysconfdir"; ValueData: "{app}\etc"
-Root: HKCU; Subkey: "Software\GnuCash\Paths"; ValueType: string; ValueName: 
"localedir"; ValueData: "{app}\share\locale"
+Root: HKCU; Subkey: "{#GCPATH}"; ValueType: string; ValueName: "prefix"; 
ValueData: "{app}"
+Root: HKCU; Subkey: "{#GCPATH}"; ValueType: string; ValueName: "libdir"; 
ValueData: "{app}\lib"
+Root: HKCU; Subkey: "{#GCPATH}"; ValueType: string; ValueName: "pkglibdir"; 
ValueData: "[EMAIL PROTECTED]@"
+Root: HKCU; Subkey: "{#GCPATH}"; ValueType: string; ValueName: "sysconfdir"; 
ValueData: "{app}\etc"
+Root: HKCU; Subkey: "{#GCPATH}"; ValueType: string; ValueName: "localedir"; 
ValueData: "{app}\share\locale"
 
 ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ; Delete the created config script on uninstall
 ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 [UninstallDelete]
-Type: files; Name: "{app}\bin\gnucash.bat"
-Type: files; Name: "{app}\bin\guile.bat"
+Type: files; Name: "{#GCBAT}"
+Type: files; Name: "{#GCPOSTRUN}"
 Type: files; Name: "{app}\share\guile\1.6\slibcat"
 Type: filesandordirs; Name: "{app}\etc\gconf"
 Type: dirifempty; Name: "{app}\etc"
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to