This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Accessing command line during installation
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 11, 2009
05:07 PM
Accessing command line during installation
Is there a function in InstallScript that will pass input to the Windows command line to be executed? If I wanted to execute another script or some command during installation by using the command line, how would I do this?
Also, part of my need for this is I need to install and setup a database. During installation I would need to create a user account in the database and execute setup scripts to initially populate the db.
If I can't access the command line, how would I do something this?
Also, part of my need for this is I need to install and setup a database. During installation I would need to create a user account in the database and execute setup scripts to initially populate the db.
If I can't access the command line, how would I do something this?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 11, 2009
06:19 PM
You may want to look into the LaunchApplication InstallScript function. It is capable of launching other applications and scripts.
You may also want to take a look at the SQL Scripts functionality in InstallShield. This will allow you to run SQL Scripts against MS SQL Server, Oracle, or MySQL. It also has a built-in dialog for getting connection credentials from the user.
LaunchApplication
http://helpnet.flexerasoftware.com/robo/projects/installshield16langref/LaunchApplication.htm
SQL Scripts View
http://helpnet.flexerasoftware.com/robo/projects/installshield16helplib/SQLServer.htm
You may also want to take a look at the SQL Scripts functionality in InstallShield. This will allow you to run SQL Scripts against MS SQL Server, Oracle, or MySQL. It also has a built-in dialog for getting connection credentials from the user.
LaunchApplication
http://helpnet.flexerasoftware.com/robo/projects/installshield16langref/LaunchApplication.htm
SQL Scripts View
http://helpnet.flexerasoftware.com/robo/projects/installshield16helplib/SQLServer.htm
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 12, 2009
12:37 AM
you can use the LaunchAppAndWait() function of installscript.
You can create DB with the help of SQL scripts menu of IS.
Alternatively you can create an application in C++/C# which will create a DB and user in SQL, and launch the application silently by using the above function.
You can create DB with the help of SQL scripts menu of IS.
Alternatively you can create an application in C++/C# which will create a DB and user in SQL, and launch the application silently by using the above function.
