InnoSetUpは他のmsiファイルをインストールします



Inno Setup Installs Other Msi Files



他のmsiファイルを自動的にインストールします(例としてノードを取り上げます)

インストールパッケージを実行していたとき、コードはノード環境を使用する必要があるため、ユーザーのノード環境をインストールする必要があります。
InnoSetUpのRunコマンドでexeファイルを実行します。 msiファイルを実行することはできません。 msiファイルを実行するには、msiexec.exeを呼び出す必要があります。
msiexec.exeそうでない場合は、一般ウィンドウが付属しています クリックしてダウンロード
msiexec.exeのコマンドパラメーター:

msiexec /Option [Optional Parameter] Installation option /Option Install or configure the product /a Manage installation - install the product on the network /j [/t ] [/g ] Broadcast product - m broadcast to all users, u broadcast to current user Uninstall product Display options /quiet Quiet mode, no user interaction /passive No participation mode - only show progress bar /q[n|b|r|f] Set user interface level n - no user interface b - basic interface r - streamlined interface f - full interface (default) /help help information Restart option /norestart Do not restart after the installation is completed /promptrestart Prompt user to restart (if necessary) /forcerestart Always restart your computer after installation Log option /l[i|w|e|a|r|u|c|m|o|p|v|x|+|!|*] i - status message w - non-fatal warning e - all error messages a - the start of the operation r - operation specific record u - user request c - initial interface parameters m - insufficient memory or fatal exit message o - insufficient disk space message p - terminal properties v - detailed output x - additional debugging information + - Expand to an existing log file ! - every line is flushed to the log * - Record all information except the v and x options /log Same as /l* Update option /update [Update2.msp] Application update /uninstall [Update2.msp] /package Remove product updates Repair option /f[p|e|c|m|s|o|d|a|u|v] Repair product p - only when the file is missing o - if the file is missing or an older version is installed (default) e - if the file is missing or the same or older version is installed d - if the file is missing or a different version is installed c - if the file is missing or compared and does not match the calculated value a - force reinstall all files u - all necessary user-specific registry keys (default) m - all necessary computer specific registry keys (default) s - all existing quick key modes (default) v - run and cache local packets from the source Set public properties [PROPERTY=PropertyValue]

理解すべき具体的な内容



Runコマンドのコードスニペットを以下に示します。

Filename: 'msiexec.exe' Parameters: '/i ''{app} ool ode ode-v8.9.0-x86.msi'' /quiet'Description:'Install nodejs' StatusMsg:'Installing Nodejs...'

ここで/ iはインストールを指します
/ quietインストール時にインタラクティブインターフェイスがないことを指定します。すべてのインストール構成がデフォルトです。後でmysqlをインストールする必要があるため、対話型インターフェースを使用している場合、ユーザーは多くの操作を行う必要があります。