Error 1639 al instalar SQL Server 2025 Express en Windows 11

FABRIZIO FIGUEROA 0 Reputation points
2026-10-25T03:48:55.5133333+00:00

Estoy intentando instalar SQL Server 2025 Express en Windows 11 Home Single Language.

La instalación falla con el error 1639 y el mensaje "MSINEWINSTANCE requires a new instance that is not installed".

El informe de descubrimiento no muestra instancias instaladas, pero Windows Installer conserva registros de SQL Server 2025 Database Engine Services.

Al intentar desinstalar el componente afectado, aparece "SQL Server Setup failed to restore the instance name".

También corregí el tamaño de sector de mi disco NVMe de 16384 a 4096 bytes.

Ya tengo instalado SQL Server Management Studio 22. Necesito ayuda para reparar la instalación incompleta y poder instalar el motor SQLEXPRESS sin afectar Windows.

SQL Server Database Engine
0 comments No comments

2 answers

Sort by: Most helpful
  1. Erland Sommarskog 138.5K Reputation points MVP Volunteer Moderator
    2026-10-25T10:58:22.5233333+00:00

    Do I understand it correctly that the installation first failed because of the disk-sector issue, which you corrected, and now are running into these problems?

    Googling the error message, I found this topic in Microsoft Learn: https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/install/windows/remove-partial-installation. My immediate reaction when browsing the article is that is my no means trivial. I would suggest that you read the article carefully before you do anything. There is a risk that you mess things up even more.

    I also found a blog post by Pinal Dave which discusses this message: https://blog.sqlauthority.com/2018/12/31/sql-server-installation-failure-specified-instance-via-transform-is-already-installed-msinewinstance-requires-a-new-instance-that-is-not-installed/ The actions in that article are certainly outside my comfort zone.

    An alternative if you are not able to get back your machine in a state where you can install SQL Server is to run SQL Server in a container.

    Was this answer helpful?

    0 comments No comments

  2. HassanNazeer 0 Reputation points
    2026-10-25T04:09:52.2633333+00:00

    Hola Fabrizio,

    Por lo que describes, la primera instalación falló por el tamaño de sector del NVMe (16384 bytes) y dejó registrada en Windows Installer una parte del motor (Database Engine Services) de la instancia SQLEXPRESS. El error 1639 de Windows Installer significa "argumento de línea de comandos no válido": el setup intenta crear la instancia como nueva (MSINEWINSTANCE), pero Windows Installer ya tiene ese nombre de instancia registrado, así que (por lo que veo) rechaza la instalación.

    Yo lo haría en este orden:

    1. Confirma que el arreglo del sector está activo. SQL Server solo admite sectores de 512 o 4096 bytes. Microsoft documenta la clave ForcedPhysicalSectorSizeInBytes para NVMe en Windows 11. En un CMD como administrador:

    REG QUERY "HKLM\SYSTEM\CurrentControlSet\Services\stornvme\Parameters\Device" /v "ForcedPhysicalSectorSizeInBytes"
    fsutil fsinfo sectorinfo C:
    

    El valor debe ser * 4095 y, después de reiniciar, fsutil debe mostrar 4096 o menos en PhysicalBytesPerSectorForAtomicity y PhysicalBytesPerSectorForPerformance. Si no reiniciaste después de añadir la clave, reinicia antes de seguir.

    2. Quita la instancia a medias desde Configuración. Configuración > Aplicaciones > Aplicaciones instaladas, busca "sql", selecciona Microsoft SQL Server 2025 (64-bit) > Desinstalar > Quitar. En "Seleccionar instancia" elige SQLEXPRESS y marca todas sus características. Reinicia y vuelve a ejecutar el instalador de Express.

    3. Si la desinstalación vuelve a fallar ("failed to restore the instance name"), revisa los logs antes de tocar el registro a mano: Summary.txt y Detail.txt en %programfiles%\Microsoft SQL Server\<nnn>\Setup Bootstrap\Log\ (busca "error" o "failed"). Ahí verás qué componente MSI quedó registrado.

    4. Alternativa rápida: instalar con otro nombre de instancia, por ejemplo SQLEXPRESS01, en la página de configuración de instancia. Así el setup no choca con el registro huérfano y puedes trabajar ya. Luego te conectas en SSMS a .\SQLEXPRESS01.

    Limitaciones: no he reproducido tu caso exacto en Windows 11 Home con SQL Server 2025 Express. El paso 4 es lo que yo haría para desbloquearte, pero no limpia los restos de la primera instalación (quedan ocupando espacio y entradas en Windows Installer). No recomiendo borrar claves de Windows Installer a mano sin una copia de seguridad del registro. SSMS 22 no se ve afectado por nada de esto, es una instalación aparte.

    Fuentes:

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.