代码之家  ›  专栏  ›  技术社区  ›  Robert Milicia

如何在InstallShield 2012中同时安装FTI驱动程序和软件?

  •  0
  • Robert Milicia  · 技术社区  · 11 年前

    我已经在InstallShield 2012中创建了一个基本的MSI。目前,MSI只安装实际的软件本身。

    我也希望能够安装硬件的驱动程序。我已经看到其他安装包这样做了,我只是不知道我目前的设置是否可能。

    如果能在这个问题上提供任何帮助,我们将不胜感激。

    4 回复  |  直到 11 年前
        1
  •  0
  •   Christopher Painter    11 年前

    您必须选择:

    链条-

    使用套件安装程序或安装先决条件将第三方“链接”到MSI。您必须弄清楚检测逻辑,才能知道软件包是适用的和需要的,这样InstallShield才能显示项目或隐藏项目。您还需要知道要传递给安装程序的命令行,以便静默地调用它。

    集成-

    分解安装程序的内容和操作,并将其编写为自己的安装程序。

        2
  •  0
  •   Ian Brockbank    11 年前

    FTDI现在分发一个驱动程序安装程序(请参阅 http://www.ftdichip.com/Drivers/D2XX.htm ). 我们所做的是将其嵌入到安装程序中,然后在安装时自动运行。

    我不知道InstallShield中的具体步骤。在InstallAware中,我们将CDM20830_Setup.exe添加到项目支持文件中,然后调用Run Program$SUPPORTDIR$\CDMM20830_Stup.exe。

    有一件事我还没有弄清楚如何让它安静地运行——它会在运行时弹出FTDI提取/安装向导。

    希望这能有所帮助。

    伊恩

        3
  •  0
  •   RFlum    9 年前

    有关如何创建DPInst.xml文件的信息,以及示例,请访问 http://www.ftdichip.com/Support/Documents/AppNotes/AN232R-03_DriverPreInstallation.pdf . DPInst会自动在运行它的文件夹中查找DPInst.xml文件。对于64位使用dpinst-amd64.exe,对于32位使用dpinst-x86.exe。

        4
  •  0
  •   Robert Milicia    9 年前

    感谢您的投入。

    我可以通过使用dpinst.exe安装驱动程序,dpinst.exe包含在Microsoft WDK中。

    我为这个可执行文件创建了一个自定义的XML。然后,我创建了一个自定义操作,以便在SetupProgress时间运行dpinst.exe。

    有关创建DPinst安装的说明,请参见此处: https://msdn.microsoft.com/en-us/library/windows/hardware/ff540184%28v=vs.85%29.aspx

    现在,除了我的需求之外,这里还有XML文件(删除了公司信息):

    <?xml version="1.0" ?>
    <dpinst>
    <!-- version 2.0 created by Robert Milicia, Br Te, Inc. on 5/21/2014
         The following area will not create an Add or remove programs section.  This
         will also force the driver to always be installed, as well as should work for
         all languages.-->
        <suppressAddRemovePrograms/>
        <enableNotListedLanguages/>
        <forceIfDriverIsNotBetter/>    
    
    <!-- The following search and subDirectory elements direct
         DPInst to search all subdirectories (under the DPInst working directory) to locate driver
         packages. -->
        <search>
            <subDirectory>*</subDirectory>
        </search>
    
    <!-- The following language element localizes its child elements
         for the English (Standard) language. The child elements
         customize the text that appears on the DPInst wizard pages. -->
        <language code="0x0409">
            <dpinstTitle>Title Menu Label</dpinstTitle>
            <welcomeTitle>Welcome to the Hardware Device Installer</welcomeTitle>
            <welcomeIntro>This wizard will walk you through updating the drivers for your device.</welcomeIntro>
            <installHeaderTitle>Installing the software for your device...</installHeaderTitle>
            <finishTitle>Congratulations! You finished installing the Hardware drivers.</finishTitle>
            <finishText>To complete the installation, please plug in your Hardware, to assign it a COM Port</finishText>
        </language>
    
    <!-- The following two elements customize, but do not localize,
         the icon and bitmaps that appear on the DPInst wizard pages. -->
        <headerPath>Data\BannerSplash.bmp</headerPath>
        <watermarkPath>Data\BMrSplash.bmp</watermarkPath>
    
    </dpinst>