2009-05-12 30 views
7

Visual Studio 2008を使用してセットアッププロジェクトを作成しました。別のマシンにインストールすると、次のエラーが表示されます。.NETベースのセットアッププロジェクトがインストール時に失敗する

The installer was interrupted before MyApplication could be installed. You need to restart the installer to try again.

この問題を解決するにはどうすればよいですか?

ログファイルには、次の情報が表示されます。

MSI (s) (D8:20) [14:06:01:020]: Executing op: ComponentUnregister(ComponentId={533BAFA2-3A54-B4D7-B625-38EB0DB9BBB7},ProductKey={B10107EF-3C57-451E-9080-40FB1F4A8B95},BinaryType=0,) 
MSI (s) (D8:20) [14:06:01:020]: Executing op: ComponentUnregister(ComponentId={B55DBDAF-0BCB-061A-9EA2-5AC798377ABA},ProductKey={B10107EF-3C57-451E-9080-40FB1F4A8B95},BinaryType=0,) 
MSI (s) (D8:20) [14:06:01:020]: Executing op: End(Checksum=0,ProgressTotalHDWord=0,ProgressTotalLDWord=0) 
MSI (s) (D8:20) [14:06:01:020]: Error in rollback skipped. Return: 5 
MSI (s) (D8:20) [14:06:01:030]: No System Restore sequence number for this installation. 
MSI (s) (D8:20) [14:06:01:030]: Unlocking Server 
MSI (s) (D8:20) [14:06:01:030]: PROPERTY CHANGE: Deleting UpdateStarted property. Its current value is '1'. 
Action ended 14:06:01: INSTALL. Return value 3. 
MSI (s) (D8:20) [14:06:01:060]: MainEngineThread is returning 1603 
MSI (s) (D8:40) [14:06:01:060]: Destroying RemoteAPI object. 
MSI (s) (D8:B8) [14:06:01:060]: Custom Action Manager thread ending. 
MSI (c) (10:80) [14:06:01:130]: Back from server. Return value: 1603 
MSI (c) (10:80) [14:06:01:140]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1 
MSI (c) (10:80) [14:06:01:140]: PROPERTY CHANGE: Deleting SECONDSEQUENCE property. Its current value is '1'. 
Action ended 14:06:01: ExecuteAction. Return value 3. 
MSI (c) (10:80) [14:06:01:150]: Doing action: FatalErrorForm 
Action start 14:06:01: FatalErrorForm. 
DEBUG: Error 2826: Control Line1 on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 3 pixels 
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FatalErrorForm, Line1, to the right 
DEBUG: Error 2826: Control Line2 on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 3 pixels 
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FatalErrorForm, Line2, to the right 
DEBUG: Error 2826: Control BannerBmp on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 3 pixels 
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FatalErrorForm, BannerBmp, to the right 
Action ended 14:06:04: FatalErrorForm. Return value 1. 
Action ended 14:06:04: INSTALL. Return value 3. 
MSI (c) (10:80) [14:06:04:475]: Destroying RemoteAPI object. 
MSI (c) (10:F4) [14:06:04:485]: Custom Action Manager thread ending. 
=== Logging stopped: 5/12/2009 14:06:04 === 
MSI (c) (10:80) [14:06:04:495]: Note: 1: 1708 
MSI (c) (10:80) [14:06:04:505]: Product: CMS -- Installation failed. 

MSI (c) (10:80) [14:06:04:515]: Grabbed execution mutex. 
MSI (c) (10:80) [14:06:04:525]: Cleaning up uninstalled install packages, if any exist 
MSI (c) (10:80) [14:06:04:545]: MainEngineThread is returning 1603 
=== Verbose logging stopped: 5/12/2009 14:06:04 === 

`

+2

の問題は、実際のエラーが多いかなり遠いログファイルをバックアップします - キーの情報を提供しないことがあり、それの尾を掲示すること。私が早期に言及したWilogutlツールは、小麦を籾殻から分離するのに適しています。 – dommer

答えて

8

ログファイルを取得するには、コマンドラインを介してインストールしようとしています。それにはエラー情報が含まれているはずです。

msiexec /私はあなたが簡単にログファイルを分析するためにWilogutlを使用することができます/ LV mylogfile.log

をPROGRAM_NAME。

3

Visual Studioセットアッププロジェクトでは、MSIファイルとsetup.exeブートストラップという2つのファイルが作成されます。後者は、アプリケーションの前提条件をインストールし、MSIファイルを起動します。

setup.exeブートストラップを起動すると、%TMP%フォルダのサブフォルダにログファイルが作成されます。このファイルのエラーメッセージを確認してください。

また、MSIファイルを直接起動し、ログファイルを作成することができます:

msiexec /i mySetup.msi /l*vx log.txt 

問題を見つけるためにあなたを助ける必要があるログを分析します。エラーメッセージに関するヘルプが必要な場合は、質問を編集してエラーメッセージを追加することができます。

14

私たちは、同様の問題があったとMSDN forumsで有益なヒントが見つかりました:

の答えは、「IIS管理互換」サーバーの役割をインストールすることでした。

+0

それが私のためにやったことです。 FWIW:これはVS2012の場所です:http://i.stack.imgur.com/cTDKl.jpg – ray

+0

これは役に立つ答えです。 – Humberto

0
  1. レジストリ(HKLM \ System \ CurrentControlSet \ Services \ BFE \ Parameters \ Policy)でBFEサービスの場所を参照し、右クリックしてアクセス許可を選択します。
  2. [ポリシーのアクセス許可]ウィンドウで、[詳細設定]をクリックします。追加します。
  3. 「ユーザー、コンピュータまたはグループの選択」ボックスが表示されたら、「この場所から:」をローカルコンピュータ名を指すように変更します。
  4. 検索場所を変更した後、「選択するオブジェクト名を入力してください」ボックスに「NT Service \ BFE」と入力して「名前の確認」をクリックします。これにより、BFEアカウントを追加できます。
  5. はBFEアカウントに次の権限を与える:MSIログと
関連する問題