|
|
|
|
@ -41,17 +41,17 @@ Name: desktopicon; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm
|
|
|
|
|
Name: menuicon; Description: "{cm:CreateMenuLink}"; GroupDescription: "{cm:AdditionalIcons}"
|
|
|
|
|
|
|
|
|
|
[Icons]
|
|
|
|
|
Name: "{group}\GnuCash"; Filename: "{app}\bin\gnucash.cmd"; WorkingDir: "{app}\bin"; Comment: "{cm:IconComment_GnuCash}"; IconFilename: "{app}\share\gnucash\pixmaps\gnucash-icon.ico"; Tasks: menuicon; Flags: runminimized
|
|
|
|
|
Name: "{group}\GnuCash"; Filename: "{app}\bin\gnucash-bin.exe"; WorkingDir: "{app}\bin"; Comment: "{cm:IconComment_GnuCash}"; IconFilename: "{app}\share\gnucash\pixmaps\gnucash-icon.ico"; Tasks: menuicon; Flags: runminimized
|
|
|
|
|
Name: "{group}\{cm:IconName_README}"; Filename: "{app}\doc\gnucash\{cm:IconFilename_README}"; Comment: "{cm:IconComment_README}"; Tasks: menuicon
|
|
|
|
|
Name: "{group}\{cm:IconName_FAQ}"; Filename: "http://wiki.gnucash.org/wiki/FAQ"; Tasks: menuicon
|
|
|
|
|
Name: "{group}\{cm:IconName_Bugzilla}"; Filename: "http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash"; Tasks: menuicon
|
|
|
|
|
Name: "{group}\{cm:IconName_InstallFQ}"; Filename: "{app}\bin\install-fq-mods.cmd"; WorkingDir: "{app}\bin"; Comment: "{cm:IconComment_InstallFQ}"; Tasks: menuicon
|
|
|
|
|
Name: "{group}\{cm:IconName_Uninstall}"; Filename: "{uninstallexe}"; Comment: "{cm:IconComment_Uninstall}"; Tasks: menuicon
|
|
|
|
|
|
|
|
|
|
Name: "{commondesktop}\GnuCash"; Filename: "{app}\bin\gnucash.cmd"; WorkingDir: "{app}\bin"; Comment: "{cm:IconComment_GnuCash}"; IconFilename: "{app}\share\gnucash\pixmaps\gnucash-icon.ico"; Tasks: desktopicon; Flags: runminimized
|
|
|
|
|
Name: "{commondesktop}\GnuCash"; Filename: "{app}\bin\gnucash-bin.exe"; WorkingDir: "{app}\bin"; Comment: "{cm:IconComment_GnuCash}"; IconFilename: "{app}\share\gnucash\pixmaps\gnucash-icon.ico"; Tasks: desktopicon; Flags: runminimized
|
|
|
|
|
|
|
|
|
|
[Run]
|
|
|
|
|
Filename: "{app}\bin\gnucash.cmd"; Description: "{cm:RunPrg}"; WorkingDir: "{app}\bin"; OnlyBelowVersion: 0,6; Flags: postinstall skipifsilent runhidden
|
|
|
|
|
Filename: "{app}\bin\gnucash-bin.exe"; Description: "{cm:RunPrg}"; WorkingDir: "{app}\bin"; OnlyBelowVersion: 0,6; Flags: postinstall skipifsilent runhidden
|
|
|
|
|
Filename: "{app}\bin\guile.cmd"; Parameters: "-c ""(use-modules (ice-9 slib)) (require 'printf)"""; Flags: runhidden
|
|
|
|
|
;; The Windows firewall exceptions, see http://www.vincenzo.net/isxkb/index.php?title=Adding_a_rule_to_the_Windows_firewall
|
|
|
|
|
Filename: "{sys}\netsh.exe"; Parameters: "firewall add allowedprogram ""{app}\bin\gnucash-bin.exe"" ""GnuCash Free Finance Manager"" ENABLE ALL"; StatusMsg: "{cm:StatusMsgFirewall}"; Flags: runhidden; MinVersion: 0,5.01.2600sp2;
|
|
|
|
|
@ -72,7 +72,7 @@ Source: "@prefix@\..\dist\bin\*"; DestDir: "{app}\bin"; Flags: recursesubdirs ig
|
|
|
|
|
; Note: The above AfterInstall function will create the
|
|
|
|
|
; gnucash.cmd file on-the-fly by the Pascal script below.
|
|
|
|
|
|
|
|
|
|
Source: "@prefix@\..\dist\etc\*"; DestDir: "{app}\etc"; Flags: recursesubdirs; Components: main
|
|
|
|
|
Source: "@prefix@\..\dist\etc\*"; DestDir: "{app}\etc"; Flags: recursesubdirs; Components: main; AfterInstall: MyAfterInstallEtc()
|
|
|
|
|
Source: "@prefix@\..\dist\lib\*"; DestDir: "{app}\lib"; Flags: recursesubdirs; Components: main
|
|
|
|
|
Source: "@prefix@\..\dist\libexec\*"; DestDir: "{app}\libexec"; Flags: recursesubdirs; Components: main
|
|
|
|
|
Source: "@prefix@\..\dist\share\*"; DestDir: "{app}\share"; Flags: recursesubdirs; Components: main
|
|
|
|
|
@ -114,7 +114,7 @@ Root: HKCR; Subkey: ".gnucash"; ValueType: string; ValueName: ""; ValueData: "Gn
|
|
|
|
|
Root: HKCR; Subkey: ".gnucash"; ValueType: string; ValueName: "Content Type"; ValueData: "application/x-gnucash"; Flags: uninsdeletevalue
|
|
|
|
|
Root: HKCR; Subkey: "GnuCash.Financial.Data"; ValueType: string; ValueName: ""; ValueData: "GnuCash Financial Data"; Flags: uninsdeletevalue
|
|
|
|
|
Root: HKCR; Subkey: "GnuCash.Financial.Data\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\share\gnucash\pixmaps\gnucash-icon.ico,0"
|
|
|
|
|
Root: HKCR; Subkey: "GnuCash.Financial.Data\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\bin\gnucash.cmd"" ""%1"""
|
|
|
|
|
Root: HKCR; Subkey: "GnuCash.Financial.Data\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\bin\gnucash-bin.exe"" ""%1"""
|
|
|
|
|
|
|
|
|
|
Root: HKLM; Subkey: "Software\GnuCash"; ValueType: none; Flags: uninsdeletekeyifempty
|
|
|
|
|
Root: HKLM; Subkey: "Software\GnuCash\Paths"; ValueType: none; Flags: uninsdeletekeyifempty
|
|
|
|
|
@ -154,9 +154,11 @@ Root: HKLM; Subkey: "Software\AqBanking\Paths"; ValueType: string; ValueName: "c
|
|
|
|
|
[UninstallDelete]
|
|
|
|
|
Type: files; Name: "{app}\bin\gnucash.cmd"
|
|
|
|
|
Type: files; Name: "{app}\bin\guile.cmd"
|
|
|
|
|
Type: files; Name: "{app}\etc\gnucash\environment"
|
|
|
|
|
Type: files; Name: "{app}\share\guile\1.6\slibcat"
|
|
|
|
|
Type: filesandordirs; Name: "{app}\share\guile"
|
|
|
|
|
Type: filesandordirs; Name: "{app}\etc\gconf"
|
|
|
|
|
Type: dirifempty; Name: "{app}\etc\gnucash"
|
|
|
|
|
Type: dirifempty; Name: "{app}\etc"
|
|
|
|
|
|
|
|
|
|
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
@ -224,6 +226,62 @@ begin
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function BackslashPath(const S: String): String;
|
|
|
|
|
begin
|
|
|
|
|
{ Convert c:\soft to c:/soft }
|
|
|
|
|
Result := S;
|
|
|
|
|
StringChange(Result, '\', '/');
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure MyAfterInstallEtc();
|
|
|
|
|
var
|
|
|
|
|
FileName, FileString, appdir, libdir, pkglibdir, pkgdatadir: String;
|
|
|
|
|
Res: Boolean;
|
|
|
|
|
begin
|
|
|
|
|
|
|
|
|
|
{ Get the installation-specific paths }
|
|
|
|
|
appdir := BackslashPath( ExpandConstant('{app}') );
|
|
|
|
|
libdir := BackslashPath( appdir + '/lib' );
|
|
|
|
|
pkglibdir := BackslashPath( appdir + '/bin' );
|
|
|
|
|
pkgdatadir := BackslashPath( appdir + '/share/gnucash' );
|
|
|
|
|
|
|
|
|
|
{ Create the etc/gnucash/environment file; #10 is the linefeed character and #13 CR }
|
|
|
|
|
|
|
|
|
|
{ If you make any changes here, you should probably also change the equivalent sections }
|
|
|
|
|
{ in packaging/win32/install.sh, src/bin/environment*.in and src/bin/gnucash-setup-env-osx.in }
|
|
|
|
|
FileName := appdir + '\etc\gnucash\environment' ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FileString := '# environment'#13#10 ;
|
|
|
|
|
FileString := FileString + '#'#13#10 ;
|
|
|
|
|
FileString := FileString + '# This configuration file can be used to change/add'#13#10 ;
|
|
|
|
|
FileString := FileString + '# environment variables during GnuCash startup.'#13#10 ;
|
|
|
|
|
FileString := FileString + '#'#13#10 ;
|
|
|
|
|
|
|
|
|
|
FileString := FileString + '[Variables]'#13#10 ;
|
|
|
|
|
FileString := FileString + 'PATH=' + appdir + '/bin;' + libdir + ';' + pkglibdir + ';{PATH}'#13#10 ;
|
|
|
|
|
FileString := FileString + 'SCHEME_LIBRARY_PATH='#13#10 ;
|
|
|
|
|
FileString := FileString + 'GNC_MODULE_PATH=' + pkglibdir + ''#13#10 ;
|
|
|
|
|
FileString := FileString + 'GUILE_LOAD_PATH=' + pkgdatadir + '/guile-modules;' + pkgdatadir + '/scm;' + appdir + '/share/guile/1.6;{GUILE_LOAD_PATH}'#13#10 ;
|
|
|
|
|
FileString := FileString + 'EXTRA_LIBS={GNC_MODULE_PATH}'#13#10 ;
|
|
|
|
|
FileString := FileString + 'LD_LIBRARY_PATH={EXTRA_LIBS};{LD_LIBRARY_PATH}'#13#10 ;
|
|
|
|
|
FileString := FileString + 'DYLD_LIBRARY_PATH={EXTRA_LIBS};{DYLD_LIBRARY_PATH}'#13#10 ;
|
|
|
|
|
FileString := FileString + 'LTDL_LIBRARY_PATH=' + libdir + ''#13#10 ;
|
|
|
|
|
FileString := FileString + 'QOF_LIB_DIR=' + pkglibdir + ''#13#10 ;
|
|
|
|
|
FileString := FileString + 'GNC_DBD_DIR=' + libdir + '/dbd'#13#10 ;
|
|
|
|
|
FileString := FileString + 'GNC_STANDARD_REPORTS_DIR=' + pkgdatadir + '/guile-modules/gnucash/report/standard-reports'#13#10 ;
|
|
|
|
|
FileString := FileString + 'GUILE_WARN_DEPRECATED=no'#13#10 ;
|
|
|
|
|
|
|
|
|
|
{ Save the final file }
|
|
|
|
|
Res := ForceDirectories(appdir + '\etc\gnucash');
|
|
|
|
|
if Res = False then
|
|
|
|
|
MsgBox('Error on creating '+appdir+'\etc\gnucash for completing the installation', mbInformation, MB_OK);
|
|
|
|
|
|
|
|
|
|
Res := SaveStringToFile(FileName, FileString, False);
|
|
|
|
|
if Res = False then
|
|
|
|
|
MsgBox('Error on saving '+FileName+' for completing the installation', mbInformation, MB_OK);
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
[Languages]
|
|
|
|
|
Name: "en"; MessagesFile: "compiler:Default.isl"
|
|
|
|
|
Name: "de"; MessagesFile: "compiler:Languages\German.isl"; InfoAfterFile: "@prefix@\share\@PACKAGE@\doc\README-de.win32-bin.txt"
|
|
|
|
|
@ -445,27 +503,27 @@ pt_BR.IconComment_Uninstall=Desinstala o Gerenciador Financeiro GnuCash
|
|
|
|
|
;; ;;;;;;;;;;;;;;;;;
|
|
|
|
|
;; Simplified Chinese translation
|
|
|
|
|
|
|
|
|
|
zh_CN.FullInstall=完全安装
|
|
|
|
|
zh_CN.CustomInstall=自定义安装
|
|
|
|
|
zh_CN.CreateDesktopIcon=创建桌面图标
|
|
|
|
|
zh_CN.CreateMenuLink=创建开始菜单链接
|
|
|
|
|
zh_CN.RunPrg=现在开始运行 GnuCash
|
|
|
|
|
zh_CN.AdditionalIcons=创建这些图标
|
|
|
|
|
zh_CN.StatusMsgFirewall=正在安装 Windows 防火墙规则...
|
|
|
|
|
|
|
|
|
|
zh_CN.MainFiles=GnuCash 程序
|
|
|
|
|
zh_CN.TranslFiles=翻译文件
|
|
|
|
|
zh_CN.TemplFiles=会计科目模板文件
|
|
|
|
|
|
|
|
|
|
zh_CN.IconComment_GnuCash=GnuCash 免费财务管理
|
|
|
|
|
zh_CN.IconName_README=显示自述文件
|
|
|
|
|
zh_CN.IconComment_README=显示自述文件
|
|
|
|
|
zh_CN.FullInstall=<EFBFBD><EFBFBD>ȫ<EFBFBD><EFBFBD>װ
|
|
|
|
|
zh_CN.CustomInstall=<EFBFBD>Զ<EFBFBD><EFBFBD>尲װ
|
|
|
|
|
zh_CN.CreateDesktopIcon=<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD><EFBFBD>
|
|
|
|
|
zh_CN.CreateMenuLink=<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
zh_CN.RunPrg=<EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> GnuCash
|
|
|
|
|
zh_CN.AdditionalIcons=<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Щͼ<EFBFBD><EFBFBD>
|
|
|
|
|
zh_CN.StatusMsgFirewall=<EFBFBD><EFBFBD><EFBFBD>ڰ<EFBFBD>װ Windows <20><><EFBFBD><EFBFBD>ǽ<EFBFBD><C7BD><EFBFBD><EFBFBD>...
|
|
|
|
|
|
|
|
|
|
zh_CN.MainFiles=GnuCash <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
zh_CN.TranslFiles=<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
|
|
|
|
zh_CN.TemplFiles=<EFBFBD><EFBFBD>ƿ<EFBFBD>Ŀģ<EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
|
|
|
|
|
|
|
|
|
zh_CN.IconComment_GnuCash=GnuCash <EFBFBD><EFBFBD>Ѳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
zh_CN.IconName_README=<EFBFBD><EFBFBD>ʾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
|
|
|
|
zh_CN.IconComment_README=<EFBFBD><EFBFBD>ʾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
|
|
|
|
zh_CN.IconFilename_README=README-zh_CN.win32-bin.txt
|
|
|
|
|
zh_CN.IconName_FAQ=常见问题 (在线)
|
|
|
|
|
zh_CN.IconName_Bugzilla=报告软件 Bug (在线)
|
|
|
|
|
zh_CN.IconName_InstallFQ=安装在线价格检索功能
|
|
|
|
|
zh_CN.IconComment_InstallFQ=安装在线价格检索所必需的 Perl Finance-Quote模块。需要 ActivePerl 5.8 或 5.10
|
|
|
|
|
zh_CN.IconName_Uninstall=卸载 GnuCash
|
|
|
|
|
zh_CN.IconComment_Uninstall=卸载财务管理软件 GnuCash
|
|
|
|
|
zh_CN.IconName_FAQ=<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD>)
|
|
|
|
|
zh_CN.IconName_Bugzilla=<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Bug (<28><><EFBFBD><EFBFBD>)
|
|
|
|
|
zh_CN.IconName_InstallFQ=<EFBFBD><EFBFBD>װ<EFBFBD><EFBFBD><EFBFBD>۸<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
zh_CN.IconComment_InstallFQ=<EFBFBD><EFBFBD>װ<EFBFBD><EFBFBD><EFBFBD>۸<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Perl Finance-Quoteģ<65>顣<EFBFBD><E9A1A3>Ҫ ActivePerl 5.8 <20><> 5.10
|
|
|
|
|
zh_CN.IconName_Uninstall=ж<EFBFBD><EFBFBD> GnuCash
|
|
|
|
|
zh_CN.IconComment_Uninstall=ж<EFBFBD>ز<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> GnuCash
|
|
|
|
|
|
|
|
|
|
;; ;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|