I am new to Installshield and I want to display the banners displayed in the dialogs during installation to be fetched dynamically from an external folder which resides in the path of the setup.exe (not part of the installation) using Installshield Basic MSI project.
我是Installshield的新手,我希望在安装过程中显示对话框中显示的横幅,以便从使用Installshield Basic MSI项目驻留在setup.exe路径(不是安装的一部分)的外部文件夹中动态获取。
I tried specifying the “File Name” for the banner bitmaps in the dialog as <SETUPEXEDIR>\MyLogo\Test.bmp
. But this gives an error as “File not found. Error streaming file to binary table.” when the project is built. Is there a way possible to achieve this?
我尝试在对话框中为横幅位图指定“文件名”为
1 个解决方案
#1
0
Windows Installer requires that the images are baked into the .msi file in order to display them (it saves the bits, not the name, in the Binary table), so it's very reasonable to summarize this as not supported.
Windows Installer要求将图像烘焙到.msi文件中以便显示它们(它会在二进制表中保存位而不是名称),因此将其概括为不受支持是非常合理的。
As a possible workaround (one I'm uncertain whether it can work), it's feasible that a custom action could write temporary records to the Binary table or Control table that containing the image found at run time. Note that this sort of custom action is somewhere between admitting failure and a semi-custom action. Furthermore finding the image, dealing with incorrect image sizes, determining which dialog boxes need the added image Binary or Control record, and possibly deleting an existing Binary or Control record, are left as exercises for an eager reader.
作为一种可能的解决方法(我不确定它是否可以工作),自定义操作可以将临时记录写入包含在运行时找到的映像的二进制表或控制表是可行的。请注意,这种自定义操作介于允许失败和半自定义操作之间。此外,找到图像,处理不正确的图像大小,确定哪些对话框需要添加的图像二进制或控制记录,以及可能删除现有的二进制或控制记录,留下作为渴望读者的练习。
#1
0
Windows Installer requires that the images are baked into the .msi file in order to display them (it saves the bits, not the name, in the Binary table), so it's very reasonable to summarize this as not supported.
Windows Installer要求将图像烘焙到.msi文件中以便显示它们(它会在二进制表中保存位而不是名称),因此将其概括为不受支持是非常合理的。
As a possible workaround (one I'm uncertain whether it can work), it's feasible that a custom action could write temporary records to the Binary table or Control table that containing the image found at run time. Note that this sort of custom action is somewhere between admitting failure and a semi-custom action. Furthermore finding the image, dealing with incorrect image sizes, determining which dialog boxes need the added image Binary or Control record, and possibly deleting an existing Binary or Control record, are left as exercises for an eager reader.
作为一种可能的解决方法(我不确定它是否可以工作),自定义操作可以将临时记录写入包含在运行时找到的映像的二进制表或控制表是可行的。请注意,这种自定义操作介于允许失败和半自定义操作之间。此外,找到图像,处理不正确的图像大小,确定哪些对话框需要添加的图像二进制或控制记录,以及可能删除现有的二进制或控制记录,留下作为渴望读者的练习。