How to install Sql server 2008 during installation in InstallShield - installshield

I suppose i can check if some sql server is installed, then i want to install one if no one present.
How this can be done?
Prerequisites are not an option because the user can choose installation type were sql server is not required.
Thanks.

You can include sql server installer exe in your project and you can use LaunchAppAndWait and initiate the exe along with the required parameters.

Related

Determine SQL Server components installed

I have been given a laptop running on Windows 10 (this is my first experience of windows 10) and SQL Server 2017 Developer Edition is installed. How can I determine what components are installed with the SQL Server please? I need to know if the Report Builder or Reporting Services tools are setup. If not can they easily be added?
Found that in the SQL Server installation centre there is a component to show all installed components.
https://learn.microsoft.com/en-us/sql/database-engine/install-windows/validate-a-sql-server-installation

How to check and install another software requirement before your software in installshield?

I'm doing a software that requires from OpenVPN to work, so I'm expecting that when I launch the installer checks if OpenVPN is installed and if not launch it's installer. If the install is successful then continue with the install, if not, exits.
Also, I'd like to check if O.S is 32 or 64bits in order to launch the correct installer from openvpn.
How would be the best way to do that? I've readed about custom actions, nested installations, chainers, etc... but I'm newbie in this and I don't know where to start.
I'm working with Visual Studio 2012 with Installshild plugin.
Create "BootStrap" application (.exe) and add as prerequisite, what is running before you install starts. You also can check box ( not show in prerequisite list) and you Bootstrap app will be not in PreReq,. dialog

SQL Server 2012 Express checking and silent installation

We need to perform the following using InstallShield 2013, can someone please guide me:
Check if SQL Server Express is installed in the user's machine or not.
If present, what is the version that is present.
If the version is not 2012, then we need to install SQL Server Express 2012 silently in the background.
Give write access on a folder for a particular login (Sql service)
After installation of SQL Express 2012, we need to restore a database from a .bak file.
After restoring the db, how to run some sql scripts?
Please provide me any link or guidance on how to acheive the above objectives. I am also parallely trying to read the documentation and blogs, but they are vast.
Thanks in advance,
Pavan
There are different ways to achieve it. You can do a check using prerequisite and get it installed. You can use custom action or install script to do the silent install of SQL server after doing registry check.
once installed, using the script you can restore the database, and installshiled basic msi provides options to include the sql scripts and run it or using the installscript you can run the sql scripts .

how to merge my application,database and framework in one exe

I have created desktop application using visual studio 2010 (C#) connected with database (sql server 2008).
I want to make my application a setup project to install at any operating system (Xp,VISTA and Windows 7) and at different machines including all files like framework,sql server and database files in one exe.
Please help me i need this necessary
Thank you
An useful answer may be is to make a batch file with all the required software and database. When you start the batch, all the application will install.

c# Setup Project - Make sure .EXE runs prior to MSI?

I'm using a C# setup project which includes some pre-requisite software. These pre-req's appear to only get installed by the EXE and not the MSI (both EXE and MSI are created when I build my setup project.)
I can't always trust that my users will bother running the EXE as opposed to the MSI, so is there a way to force it? Perhaps some options:
My app needs Sql CE 3.5 SP2 - Is there a way that I can have the MSI install this instead of it only being installed in the EXE?
Is there a way to make my MSI detect when it's launched by the user instead of launched by the EXE?
Can I have my MSI launch the EXE installer as part of it's install process?
This is not supported by Visual Studio setup project. However, commercial setup authoring tools offer multiple solutions:
handle prerequisites from the MSI installation UI instead of using an EXE
embed the MSI into the EXE so you have only one setup file
configure the EXE to set a custom MSI property and create a launch condition based on that property; this way the MSI will stop if the property was not set by the EXE
If you want to continue using Visual Studio, a solution would be to create a launch condition for Sql CE 3.5 SP2. This way the installation will stop if Sql CE 3.5 SP2 is not installed.

Resources