I try to add more details.
My .net application, called MySQLInstall.exe, is a console application that simply call the SQL server installation exe (SQLEXPR_x64.exe) settings the necessary parameters.
Starting it direclty from command prompt or double clicking it works perfectly.
Now I have created an UI Custom action (exe with working dir) in AdvInstaller that simply call MySQLInstall.exe forwarding to it some parameters. It starts and runs SQLEXPR_x64.exe. SQLEXPR_x64.exe runs, but when it try to install MS SQL support files it fails.
I have following errors in MS SQL logs:
Code: Select all
2011-05-09 13:25:54 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Microsoft\Microsoft SQL Server to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20110509_132540\Registry_SOFTWARE_Microsoft_Microsoft SQL Server.reg_
2011-05-09 13:25:54 Slp: Sco: Unable to write hklm registry key SOFTWARE\Microsoft\Microsoft SQL Server to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20110509_132540\Registry_SOFTWARE_Microsoft_Microsoft SQL Server.reg_, Win32 error 2
2011-05-09 13:25:54 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20110509_132540\Registry_SOFTWARE_Microsoft_Windows_CurrentVersion_Uninstall.reg_
2011-05-09 13:25:54 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Microsoft\MSSQLServer to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20110509_132540\Registry_SOFTWARE_Microsoft_MSSQLServer.reg_
2011-05-09 13:25:54 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20110509_132540\Registry_SOFTWARE_Wow6432Node_Microsoft_Microsoft SQL Server.reg_
2011-05-09 13:25:54 Slp: Sco: Unable to write hklm registry key SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20110509_132540\Registry_SOFTWARE_Wow6432Node_Microsoft_Microsoft SQL Server.reg_, Win32 error 2
2011-05-09 13:25:54 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20110509_132540\Registry_SOFTWARE_Wow6432Node_Microsoft_Windows_CurrentVersion_Uninstall.reg_
2011-05-09 13:25:54 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Wow6432Node\Microsoft\MSSQLServer to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20110509_132540\Registry_SOFTWARE_Wow6432Node_Microsoft_MSSQLServer.reg_
2011-05-09 13:25:54 Slp: Sco: Unable to write hklm registry key SOFTWARE\Wow6432Node\Microsoft\MSSQLServer to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20110509_132540\Registry_SOFTWARE_Wow6432Node_Microsoft_MSSQLServer.reg_, Win32 error 2
2011-05-09 13:25:54 Slp:
2011-05-09 13:25:54 Slp: Watson bucket for Msi based failure has been created
2011-05-09 13:25:54 Slp: Retry-able MSI return code detected: 2
2011-05-09 13:25:54 Slp: Sleep 120 seconds before retry attempt.....
It seems that now SQLEXPR_x64.exe has no rights to write Registry_SOFTWAREkeys as before. Why? What is changed?
Thanks
FOLLOW US
Get the latest news in Application Packaging