Inno Setup launch executable (to install drivers) during installation

后端 未结 1 342
傲寒
傲寒 2021-01-02 04:35

I am using Inno Setup to create an installer for my application. The installer is very basic and just copies some files. This works very well and I am happy with it.

相关标签:
1条回答
  • 2021-01-02 05:22

    In this case, it's best to remove the postinstall flag so it runs unconditionally at the end of the setup process (but before it says finished) and add a Check: parameter to limit it to the correct bitness:

    [Run]
    Filename: "{app}\driver\IviSharedComponents_2.2.1.exe"; StatusMsg: "Installing USB driver (IVI Foundation)"; Check: Not IsWin64(); Flags: skipifsilent
    Filename: "{app}\driver\IviSharedComponents64_2.2.1.exe"; StatusMsg: "Installing USB driver (IVI Foundation)"; Check: IsWin64(); Flags: skipifsilent
    

    If you want this to be conditional, you can use a normal [Tasks] entry that prompts before the setup starts.

    0 讨论(0)
提交回复
热议问题