使用 Installshield 将网站安装到现有网站的物理位置?
客户拥有一个部署到客户服务器的 Intranet LOB Web 应用程序。随着他们的应用程序的最新更新,他们希望使用 InstallShield 2012 来简化升级过程。安装应使用安装程序中的新文件替换现有版本。他们的客户经常将网站的物理位置更改为 inetpub 以外的位置,因此他们希望从 IIS 读取该物理路径并在其指示的任何位置进行安装。
我们如何从 IIS 中提取 Web 应用程序(具有已知名称)的物理路径位置并将其用于安装?
A client has an intranet LOB web app that they deploy to their clients' servers. With the latest update to their application, they want to use wants to use InstallShield 2012 to streamline the upgrade process. The install should replace the existing version with the new files in the installer. Their clients have often changed the physical location of the website to something other than inetpub, so they want to read that physical path from IIS and install wherever it indicates.
How can we pull the physical path location of a web application (with a known name) from IIS and use that for the installation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我能想到的唯一解决方案是 自定义操作。基本上,您使用自定义代码来检索旧路径并将其保存在 安装程序属性。然后可以在您的安装程序中使用该属性。
请注意,只有接收安装句柄的自定义操作才能设置安装程序属性。因此,您可以尝试创建 win32 DLL 或 VBScript 自定义操作。
The only solution I can think of is a custom action. Basically, you use custom code to retrieve the old path and save it in an installer property. This property can then be used in your installer.
Please note that only custom actions which receive the installation handle can set installer properties. So you can try creating a win32 DLL or VBScript custom action.