Tag: inno setup

使用Inno Setup将Excel Addin文件夹添加到受信任的位置

我使用Inno Setup ExcelAddinInstaller ,效果很好。 { Looks up the localized Addins folder in the registry. This function is used in the [Files] section of the script, where function calls always expect a parametrized function. This function does not require a parameter. Therefore, a dummy parameter is defined. } function GetDestDir(dummyparameter: string): string; var Addins: string; s: […]

Inno安装程序 – 以pipe理员身份注册组件

基于卓越的Excel插件安装程序(Daniel's XL Toolbox),我build立了一个安装文件,其中包括需要注册一些ActiveX [Files] ; The include file makes adds all .XLA and .XLAM files contained in the ; SOURCEDIR to the project. Source: "c:\source\path\MSCOMCTL.OCX"; \ DestDir: "\users\public\EzPasteFiles"; Flags: regserver Source: "c:\source\path\DAS_AX_Knob.dll"; \ DestDir: "\users\public\EzPasteFiles"; Flags: regserver Source: "c:\source\path\GIF89.DLL"; \ DestDir: "\users\public\EzPasteFiles"; Flags: regserver 我需要插件安装,然后在开始注册文件之前检查是否有pipe理员权限,如果用户没有,则会显示一条消息,要求inputpipe理员密码以便注册。 我知道它可以在设置开始时完成,但如果它是一个标准的用户帐户,插件将不会被激活。 插件需要注册组件,标准用户无法正确安装。 我正在寻找这样的东西在注册开始之前开枪: MyProgChecked := not(IsAdminLoggedOn or IsPowerUserLoggedOn); if MyProgChecked […]

使用inno安装程序安装程序调用RegQueryDWordValue以获取Office Excel版本

如何从registry中使用inno脚本安装MS Office Excel版本? 我试图波纹pipe的代码,它提供了“钥匙找不到”,但它存在 function InitializeSetup(): Boolean; var CurVer: Cardinal; key: string; if RegQueryDWordValue(HKCR, 'Excel.Application\CurVer\','Default', CurVer) then begin // Successfully read the value MsgBox('Excel Version: ' + IntTOStr(CurVer),mbInformation, MB_OK); end else begin MsgBox('Key not found',mbInformation, MB_OK); end; end;