为什么Innosetup没有安装注册表项?

时间:2015-01-23 17:26:02

标签: windows registry inno-setup

我的脚本中有以下内容:

Root: "HKCU"; Subkey: "Software\Microsoft\Office\Excel\Addins\Company.Tool"; ValueType: string; ValueName: "Manifest"; ValueData: "file:///{code:GetRegistryData}/tool.vsto|vstolocal"; Flags: createvalueifdoesntexist uninsdeletekey; Permissions: admins-full
Root: "HKCU"; Subkey: "Software\Microsoft\Office\Excel\Addins\Company.Tool"; ValueType: string; ValueName: "Description"; ValueData: "description"; Flags: createvalueifdoesntexist uninsdeletekey; Permissions: admins-full
Root: "HKCU"; Subkey: "Software\Microsoft\Office\Excel\Addins\Company.Tool"; ValueType: string; ValueName: "FriendlyName"; ValueData: "friendly name"; Flags: createvalueifdoesntexist uninsdeletekey; Permissions: admins-full
Root: "HKCU"; Subkey: "Software\Microsoft\Office\Excel\Addins\Company.Tool"; ValueType: dword; ValueName: "LoadBehavior"; ValueData: "3"; Flags: createvalueifdoesntexist uninsdeletekey; Permissions: admins-full

[Code]
function GetRegistryData(Value: string): string;
begin
    Result := ExpandConstant('{app}');
    StringChangeEx(Result, '\', '/', True);
end;

我作为管理员运行此操作并且没有任何问题(在我的机器上运行!)。现在我正在尝试以标准用户身份运行它,其他所有内容都已安装,但未安装注册表项。我已启用UAC并使用管理员帐户验证要运行的安装。

我可以查看其他任何安装注册表项的内容吗?

0 个答案:

没有答案