2009-05-12 23 views
7

He creado un proyecto de instalación usando Visual Studio 2008. Al instalar en una máquina diferente, aparece el siguiente error:. Proyecto de instalación basado en .NET falla en la instalación

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

¿Cómo puedo solucionar este problema?

El archivo de registro muestra lo siguiente.

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

El problema con registros de MSI es que el error real a menudo bastante lejos del archivo de registro - lo que significa que la publicación de la cola de la misma puede no proporcionar la información clave. La herramienta Wilogutl que mencioné temprano es buena para separar el trigo de la paja. – dommer

Respuesta

8

Tratando de instalar a través de la línea de comandos para obtener un archivo de registro. Eso debería contener la información de error.

msiexec/i program_name/lv mylogfile.log

Puede utilizar Wilogutl para hacer el análisis del archivo de registro más fácil.

3

El proyecto de instalación de Visual Studio creará dos archivos para usted: un archivo MSI y un setup.exe bootstrapper. Este último instala los requisitos previos de su aplicación y luego inicia el archivo MSI.

Al iniciar setup.exe bootstrapper, se creará un archivo de registro en una subcarpeta de su carpeta% TMP%. Compruebe si hay algún mensaje de error en este archivo.

También puede iniciar el archivo MSI directamente y tienen que crear un archivo de registro:

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

Analizando el registro le ayudará a encontrar el problema. Si necesita ayuda con el mensaje de error, puede editar su pregunta y agregar el mensaje de error.

14

Hemos tenido un problema similar y encontró un consejo útil en el MSDN forums:

La respuesta fue instalar la función de servidor "IIS Compatibilidad con la administración".

+0

Sí. Eso es lo que hizo por mí. FWIW: esta es la ubicación en VS2012: http://i.stack.imgur.com/cTDKl.jpg – ray

+0

Esta es la respuesta útil. – Humberto

0
  1. Busque la ubicación para el servicio BFE en el registro (HKLM \ System \ CurrentControlSet \ Services \ BFE \ Parameters \ Policy), haga clic derecho y seleccionar los permisos.
  2. En la ventana "Permisos para la política", haga clic en avanzado | Añadir.
  3. Cuando aparezca el cuadro "Seleccionar usuarios, equipos o grupo", cambie "Desde esta ubicación:" para señalar el nombre de la máquina local.
  4. Después de cambiar la ubicación de búsqueda, ingrese "NT Service \ BFE" en el cuadro "Ingrese el nombre del objeto para seleccionar" y haga clic en "Comprobar nombres" - esto le permitirá agregar la cuenta BFE.
  5. dar los siguientes privilegios a la cuenta BFE:
Cuestiones relacionadas