我想在卸载应用程序时在 .iss 中导入两个 dll。我找不到办法做到这一点。
procedure Installed();
external 'Installed@files:StatisticInstallInfo.dll,adcore.dll cdecl setuponly ';
procedure Uninstalled();
external 'Uninstalled@{app}\StatisticInstallInfo.dll cdecl uninstallonly';
我要进口adcore.dll
程序中Uninstalled
也。它失败了,如下所示;
[Files]
Source: {#MyDefaultPackDir}\adcore.dll; DestDir: "{app}"
Source: {#MyDefaultPackDir}\StatisticInstallInfo.dll; DestDir: "{app}"
[Code]
procedure Uninstalled();
external 'Uninstalled@files:StatisticInstallInfo.dll,adcore.dll cdecl uninstallonly';
这是行不通的。
Installed()
and Uninstalled()
都在StatisticInstallInfo.dll
,这取决于adcore.dll
.
当安装程序运行时,Inno 可以访问安装程序的内容,因此可以使用files:file1.dll,file2.dll
syntax.
在卸载时,Inno 不再访问安装程序的内容,因此它需要依赖于您在安装时使用正常方式提取的任何内容[Files]
入口。因此,它不再关心依赖关系,并将其留给您。
[Files]
Source: "StatisticInstallInfo.dll"; DestDir: "{app}"
Source: "adcore.dll"; DestDir: "{app}"
[Code]
procedure Installed();
external 'Installed@files:StatisticInstallInfo.dll,adcore.dll cdecl setuponly';
procedure Uninstalled();
external 'Uninstalled@{app}\StatisticInstallInfo.dll cdecl uninstallonly';
根据您调用该函数的时间(如果在安装本身之后),您可以废弃files:...
语法并使用{app}\StatisticInstallInfo.dll
在这两种情况下。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)