Click here to Skip to main content
15,886,701 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello guys,

I have one desktop application and I need to install sql server 2008 for client PC.
and I have trying create setup with inno script.

I am trying to attach SQL server 2008 (SQLEXPR_x86_ENU.exe) inside inno setup script.
and automatically installation is start inside client PC. It's working fine but I have problem with installation, I need to install automatically ex. Create instance, User name and password automatically.

I don't know how to work it (parameter or flag or etc.)

Please help me any guys.

Thanks,
Manish
Posted
Comments
Maciej Los 23-Mar-15 3:42am    
Do not do that! What if client has SQL Server installed yet? You have to check if SQL Server instance exists and if it does not exists, skip installation process with message: "Please install MS SQL Server (2008 and up) first!".

1 solution

Please, read my comment to the question first.

Complete sample, you'll find here: https://innosetupnet.codeplex.com/[^]
http://stackoverflow.com/questions/454431/how-to-install-sql-server-2008-express-with-inno-setup[^]

Note: i do not recommend to install MS SQL Server via InnoSetup for set of reason. Two of them are:
1) user need to have admin privileges,
2) SQL server should be installed on server machine instead of local.
 
Share this answer
 
Comments
[no name] 23-Mar-15 8:56am    
Thanks for replay,

This step is completed for my side.
Now I need some code of passing parameter
Like:

[Run]
Filename: "{app}\SQLEXPRWT_x86_ENU.exe"; Parameters: "/Q /IACCEPTSQLSERVERLICENSETERMS /ACTION=Install /FEATURES=SQL /INSTANCENAME=MANISHSIDDHAPARA /SECURITYMODE=""SQL"" /SAPWD=""sa1234"" /BROWSERSVCSTARTUPTYPE=""Disabled"" /SQLSVCACCOUNT=""NT AUTHORITY\SYSTEM"" /SQLSYSADMINACCOUNTS=""BUILTIN\ADMINISTRATORS"" /AGTSVCACCOUNT=""NT AUTHORITY\Network Service"" "; Check: SQLEXPRIsNotInstalled

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900