Hi,
I apologize for the delayed reply.
1. In the choose component/installation it should ask for database choice for example SQL or H2 Db
I'm afraid that I do not fully understand this requirement. Can you please give me more details (maybe exemplify)?
2. My installer should be able to detect(Identify) that SQL Server is installed on the target system
To achieve this, you can go in the "Search" page and create a search that detects if any version of SQL Server is installed on the machine. For example, you can search for the following registry entries:
Code: Select all
HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\90\Tools\ClientSetup\CurrentVersion\CurrentVersion
HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\100\Tools\ClientSetup\CurrentVersion\CurrentVersion
HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\110\Tools\ClientSetup\CurrentVersion\CurrentVersion
HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\120\Tools\ClientSetup\CurrentVersion\CurrentVersion
2(A) - if no . it should pop up that its not installed .
You can add a "Display message box" custom action and attach it to a button or place it to be performed after a specific standard action. Also, use the properties of the above search as a condition for it.
2(B)- If yes it should show a dialogue to Enter the SQL Server credentials .
Add, the "SQLConnectionDlg" dialog in the "Dialogs" page, then right-click on it, use the "Show only if..." option and use the properties of the above search as a condition for it.
3. Post capturing the details installer should be able to connect to the machines Running SQL server and upload /Inject the .sql or Backup file to the sql server along with other installations simultaneously .
Go in the "SQL Databases" page, create a new SQL Connection and add the SQL scripts that you want to be executed. For more details you can take a look on the
Configuring Databases with SQL Scripts tutorial.
Best regards,
Eusebiu
FOLLOW US
Get the latest news in Application Packaging