1

Install4jで、コンソールモードでのインストールをキャンセルするにはどうすればよいですか?

再試行するか、終了するか、無視するかをユーザーに尋ねたいと思います。答えをコンソールモードとGUIモードで有効にしたいと思います。

コンソールモードになっているかどうかは確認できますが(context.isConsole())、キャンセルできません(screen.cancel()はコンソールモードには関係ありません)。

4

1 に答える 1

1

In a "Console handler" form component, edit the "Console script" property and return false. Then the installer will be cancelled. This is also valid for the API where you can return false in overridden handleConsole() methods (for screens, actions and form components).

于 2013-01-07T11:11:19.713 に答える