0

I am writing InstallAware script which installs com0com, creates several COM ports and also installs my application which uses those ports.

To create ports I run setupc.exe install with some options. Setupc does its job and quits very quickly. After that Windows starts its lengthy process telling user that a new device was found and do they want to install driver etc.

At the end of the installation process user sees standard screen saying that installation finished, do you want to run the app. I get to this point before windows finished installing drivers and can't proceed before it is done.

How can I know when all driver were installed and ports were created and I can use them?

I thought of writing a small app which would periodically try to open my ports. Installation script would wait till this app quits and then proceed to the final screen.

Is there any other way? Can I get any notification from Windows that driver installation is complete?

4

1 に答える 1

0

私は InstallAware に詳しくありませんが、使用可能なシリアル ポートと、それらがアプリケーション側で一致するかどうかを確認できるはずです。ユーザーがアプリケーションを起動できるようにしますが、最初にすべてのシリアル ポートが作成されて使用可能になるまで待機するチェックを行い、次に進みます。最後の画面に進む前に、com0com ポートを作成するプロセスが実行されているかどうかを確認することもできますが、InstallAware の機能についてはよくわかりません。

于 2013-02-23T05:07:48.257 に答える