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
- :
- Hide command prompt launched with LaunchAppAndWait
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
‎Sep 23, 2008
10:28 AM
Hide command prompt launched with LaunchAppAndWait
Hi all...
I've a program written in IS2008 (InstallScript project) that use a SQL connection via sqlcmd.exe command.
I launch a few of script files with the LaunchAppAndWait as follow:
retValue = LaunchAppAndWait ( sSQLCMD, sParameters, LAAW_OPTION_WAIT | LAAW_OPTION_USE_CALLBACK | LAAW_OPTION_MINIMIZED );
where sSQLCMD is the SQL Server path for the sqlcmd.exe i.e.
PROGRAMFILES ^ "\\Microsoft SQL Server\\90\\Tools\\Binn\\SQLCMD.EXE ";
and sParameter are the parameter for the execution.
My questions are:
1) Is correct to launch the sqlcmd in this way or there are some OS that doesn't "digest" this way?
2) Is there a way for hide the command prompt launched? In my case infact when setup is running the dos prompt continually open and close (... its look like that the pc is infected...!).
Thanks a lot!
Bye
I've a program written in IS2008 (InstallScript project) that use a SQL connection via sqlcmd.exe command.
I launch a few of script files with the LaunchAppAndWait as follow:
retValue = LaunchAppAndWait ( sSQLCMD, sParameters, LAAW_OPTION_WAIT | LAAW_OPTION_USE_CALLBACK | LAAW_OPTION_MINIMIZED );
where sSQLCMD is the SQL Server path for the sqlcmd.exe i.e.
PROGRAMFILES ^ "\\Microsoft SQL Server\\90\\Tools\\Binn\\SQLCMD.EXE ";
and sParameter are the parameter for the execution.
My questions are:
1) Is correct to launch the sqlcmd in this way or there are some OS that doesn't "digest" this way?
2) Is there a way for hide the command prompt launched? In my case infact when setup is running the dos prompt continually open and close (... its look like that the pc is infected...!).
Thanks a lot!
Bye
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 23, 2008
11:10 AM
This method should be fine for launching any external program.
To hide the command prompt window, have you tried including the LAAW_OPTION_HIDDEN option (instead of LAAW_OPTION_MINIMIZED)?
To hide the command prompt window, have you tried including the LAAW_OPTION_HIDDEN option (instead of LAAW_OPTION_MINIMIZED)?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 24, 2008
04:27 AM
Ok .. thanks .. it works like a charm!
Bye
Bye