如何在inno安装结束时阻止设备驱动程序安装向导警告?

时间:2011-01-06 09:39:58

标签: inno-setup

我正在使用inno设置来安装vb6应用程序和驱动程序。在x86和x64上一切正常,但在Windows 7上安装结束时,会显示一个设备驱动程序安装向导消息框,说明:'您必须在此计算机上运行64位版本的DPInst.exe。请联系为您提供此软件的供应商。

我使用的是来自Windows 7驱动程序开发工具包的DPInst.exe版本,并尝试在Windows 7计算机上编译安装程序,但收到了相同的结果。

任何人都可以指出我缺少的东西吗?

脚本相当大,所以我认为这是相关的代码:

[Setup]
ArchitecturesInstallIn64BitMode=x64

[Run]
Filename: {app}\DigidownHost.exe;   Description: {cm:LaunchProgram,DigidownHost}; Flags: nowait postinstall skipifsilent
Filename: {app}\Drivers\DPInst.exe; Description: {cm:LaunchProgram,DigidownHost}; Flags: skipifsilent waituntilterminated

[Files]
Source: TOBE Installed\DigidownHost.exe;  DestDir: {app}; Flags: ignoreversion

Source: TOBE Installed\XZip.dll;          DestDir: {sys};               Flags: regserver;   Check: not Is64BitInstallMode
Source: TOBE Installed\MSCOMM32.OCX;      DestDir: {sys};               Flags: regserver;   Check: not Is64BitInstallMode
Source: TOBE Installed\FTChipID.dll;      DestDir: {sys};                                   Check: not Is64BitInstallMode
Source: TOBE Installed\ftd2xx.dll;        DestDir: {sys};                                   Check: not Is64BitInstallMode

Source: TOBE Installed\XZip.dll;          DestDir: {syswow64};          Flags: regserver;   Check: Is64BitInstallMode
Source: TOBE Installed\MSCOMM32.OCX;      DestDir: {syswow64};          Flags: regserver;   Check: Is64BitInstallMode
Source: TOBE Installed\FTChipID.dll;      DestDir: {syswow64};                              Check: Is64BitInstallMode
Source: TOBE Installed\ftd2xx.dll;        DestDir: {syswow64};                              Check: Is64BitInstallMode

Source: TOBE Installed\Settings.ini;      DestDir: {app};               Flags: ignoreversion
Source: TOBE Installed\Drivers\*.*;       DestDir: {app}\drivers;       Flags: ignoreversion deleteafterinstall
Source: TOBE Installed\Drivers\amd64\*.*; DestDir: {app}\drivers\amd64; Flags: ignoreversion deleteafterinstall;  Check: Is64BitInstallMode
Source: TOBE Installed\Drivers\i386\*.*;  DestDir: {app}\drivers\i386;  Flags: ignoreversion deleteafterinstall;  Check: not Is64BitInstallMode

1 个答案:

答案 0 :(得分:1)