2012-02-13 12 views
1

WiXを使用して、私たちの製品のインストーラを開発しています。インストーラがインストールするサービスの1つに、再起動が必要です。コマンドライン 'msiexec/norestart/fepmcs/qn'はまだPCを再起動します

UIのインストール中にユーザーに確認し、「いいえ」と表示された場合は再起動しません。ただし、サイレントインストールを使用すると、/norestartオプションを指定しても、マシンはまだ再起動されます。ユーザーが「いいえ」を選択した場合、それが再起動しない場合は、ここで

は、サイレントインストールせずに例ログです:

MSI (s) (F0:58) [04:42:00:795]: Windows Installer reconfigured the product. Product Name: MyProduct. Product Version: 1.0.0.0. Product Language: 1033. Manufacturer: MyOrg. Reconfiguration success or error status: 0. 

MSI (s) (F0:58) [04:42:00:795]: Value of RebootAction property is 
MSI (s) (F0:58) [04:42:00:795]: Windows Installer requires a system restart. Product Name: MyProduct. Product Version: 1.0.0.0. Product Language: 1033. Manufacturer: MyOrg. **Type of System Restart: 2. Reason for Restart: 1.** 

MSI (s) (F0:58) [04:42:00:796]: Product: MyProduct. Restart required. The installation or update for the product required a restart for all changes to take effect. The restart was deferred to a later time. 

ここ/norestartオプションが提供されていても、ログです、再起動が起こる:

成功事例:

MSI (s) (50:78) [04:37:06:985]: Windows Installer reconfigured the product. Product Name: MyProduct. Product Version: 1.0.0.0. Product Language: 1033. Manufacturer: MyOrg. Reconfiguration success or error status: 0. 

MSI (s) (50:78) [04:37:06:985]: Value of RebootAction property is 
MSI (s) (50:78) [04:37:06:985]: Windows Installer requires a system restart. Product Name: MyProduct. Product Version: 1.0.0.0. Product Language: 1033. Manufacturer: MyOrg. **Type of System Restart: 1. Reason for Restart: 1**. 

ログファイルの両方を比較すると、私は次の違いに気づきましたシステムの再起動の種類:再起動2.理由:1.

障害の場合:システムの再起動の 種類:再起動の理由:1

私はWiXの中に任意のプロパティを追加する必要がありますかこのシナリオを処理するコードですか?

答えて

2

REBOOT = ReallySuppressをコマンドラインに追加してみてください。

1

期待どおりの動作でした。

私は1つのポイントがありませんでした。これは修理中に起こっていた。私は修復が渡されたコマンドラインパラメータを無視することを忘れていました。

関連する問題