如何将 DLL 从 InstallShield 中的 InstallScript 项目添加到 GAC?

发布于 2024-08-05 11:34:31 字数 117 浏览 3 评论 0原文

如何将 DLL 从 InstallShield 中的 InstallScript 项目添加到 GAC?我尝试添加 [GLOBALASSEMBLYCACHE] 作为组件的目的地,但没有成功。它告诉我这不是目的地的有效数据。

How do you add a DLL to the GAC from an InstallScript Project in InstallShield? I tried added [GLOBALASSEMBLYCACHE] as a destination to the component, with no luck. It tells me that is not valid data for the destination.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

永言不败 2024-08-12 11:34:31

仅安装脚本项目无法将文件放入 GAC 中。您需要一个安装脚本 MSI 项目。我最终创建了一个单独的 Windows 安装程序,并使用安装盾中的 LauchAppAndWait 来运行它。 这几乎是一个 hack,因为我不想切换到 MSI 项目。

An install script only project has no way of putting a file in the GAC. You need an install script MSI project. I ended up creating a separate windows installer and using LauchAppAndWait from install shield to run it. Pretty much a hack because I didn't want to switch to an MSI project.

满意归宿 2024-08-12 11:34:31

您可以创建一个将所需组件安装到 GAC 的合并模块,而不是创建 InstallScript MSI 项目。然后将 MSM 包含在 InstallScript cab 安装中。这样您就可以避免 LaunchAppAndWait 的烦恼。

Rather than create an InstallScript MSI project, you could create a merge module that installs the desired components to the GAC. Then include the MSM in your InstallScript cab installation. That way you avoid the annoyance of LaunchAppAndWait.

如此安好 2024-08-12 11:34:31

Gacutil 可以做到这一点,但 Gacutil 不可重新分发。可以编写自己的代码来调用 fusion API,然后从安装脚本中调用它,但说实话 MSI 更容易。

Gacutil can do it but Gacutil isn't redistributable. It's possible to write your own code to call the fusion API and then call it from installscript but truthfully MSI is way easier.

陌上青苔 2024-08-12 11:34:31

IS 脚本可以访问 Win32 和其他 DLL 入口点,因此您不需要专用的 MSI 安装程序。

我们有一个安装程序需要在安装过程的早期更改文件访问权限。我们在支持文件中添加了一个实用程序广告牌部分,这些最终会出现在安装程序的临时文件夹中。然后我们使用 LaunchAppAndWait 等。

另一个选择可能是在注册时将 .net 程序集修改为 auto-GAC 本身。如果使用 System.Configuration.Install & 会更容易朋友们。

IS scripts can access Win32 and other DLL entry pts so you wont require a dedicated MSI installer.

We have a Setup that needs to change file access permissions early in the install process. We added a utility to our support files & billboards section, and those end up in Setup's Temp folder. Then we use LaunchAppAndWait, etc.

Another option may be to modify your .net assembly to auto-GAC itself when it is registered. That easier if using System.Configuration.Install & friends.

苦妄 2024-08-12 11:34:31

gacutil 可以做到这一点,只需将其放入 supportdir(临时目录)中并从那里使用它即可。然后清除临时目录。

gacutil can do it, just put it in the supportdir (temp dir) and use it from there. then wipe out the temp dir after.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文