簡単なアプリケーションを作成する必要があります。私は WPF が得意で、勝利フォームについてはよく知らないので、Visual Studio で .Net Framework 4.0 WPF プロジェクトを作成してアプリケーションを実装しました。すべてがうまく機能し、アプリケーションは想定どおりに実行されます。
アプリケーションは複数のプラットフォーム (Windows XP 以降) で実行する必要があるため、アプリケーションを公開するときに前提条件を含めています。前提条件は次のとおりです。
- 1) WIC (Windows Imaging Component)古いコンピューターでは、.net Framework 4.0 を実行するために必要です。
- 2) Windows インストーラー 3.1 (次の前提条件をインストールするために必要)
- 3) Windows .NET Framework 4.0 クライアント プロファイル
これらの前提条件をインストールすると、アプリケーションは想定どおりに実行されます。
問題は次のとおりです。
私の上司は、SP2 を適用した Windows XP マシンにアプリケーションをインストールしようとしたため、私のアプリケーションを承認しませんでした。
ステップ1)
// first prerequisite (WIC) took less than 1 minute to install everything
// is working great so far.
ステップ2)
// second prerequisite (Windows Installer 3.1) takes about 2 minutes to install
// which is great. After the installation is done the computer needs to be
// restarted in order to continue with the installation. Things are not going
// that good now but we are still ok...
ステップ 3)
// After the computer is done rebooting it continues with the last prerequisite
// (Windows .NET Framework 4.0 Client Profile). That takes 10 minutes to install!!!!
ステップ 4)
// My application has all the prerequisites needed to be installed so it installs in
// about 1 minute
時間を記録したところ、アプリケーションのインストールの開始から終了まで約 25 分かかりました。インストールをテストしたコンピューターは、2 つのコアと 3.1 GHz の 1 GB のメモリを使用する仮想コンピューターでした。
このインストールを高速化するために、何をお勧めしますか? .net 2.0 を使用した Windows フォームなど、別のテクノロジを使用する必要がありますか? 作成済みのアプリケーションをデプロイできればいいのですが。このアプリケーションをポータブルにするのを手伝ってくれたら、本当に感謝しています。そのために、必要なすべての参照を出力ディレクトリにコピーして、アプリケーションをビルドしてみました。それはうまくいきませんでした...または、インストールを高速化する方法についてのアイデアも非常に役立ちます。