1
私は電子アプリを作りました。電子パッケージャでアプリをパックし、windows-installerでインストーラをビルドします。電子アプリ:制御リスインストールイベント
Todo: アプリのインストール中にいくつかのコマンドを実行します。コマンドを実行するリスのイベント内の
入れコード:
case '--squirrel-install':
const exec = require('child_process).exec;
exec(...); // run command here to execute commands inside batch file
if (error) {make installation fail} // if there is an error during exec(), fail the installation
を、コマンドが正常に実行できるかどうかそれがうまく機能し、私が試した何
。しかし、私はまたコマンドの失敗状況を処理する必要があります。その場合、私はアプリのインストールを止めたいができない。
誰にも分かりませんか?