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
- :
- Re: Running a Command Window
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Jan 09, 2008
03:46 AM
Running a Command Window
Short version:
Is it possible to run a command window after the installation, using Installscript?
Longer Version:
I want to run a commandwindow after the installation using Install script. In this commandwindow I need to register a service. Before you offer other sollutions: No I cannot use ServiceAddService or the Install NT Service options. If I install it with these functions it wont install correctly... :rolleyes:
So any help would be very nice, Thanks in advance.
Andurin
Is it possible to run a command window after the installation, using Installscript?
Longer Version:
I want to run a commandwindow after the installation using Install script. In this commandwindow I need to register a service. Before you offer other sollutions: No I cannot use ServiceAddService or the Install NT Service options. If I install it with these functions it wont install correctly... :rolleyes:
So any help would be very nice, Thanks in advance.
Andurin
(3) Replies
‎Jan 09, 2008
08:30 AM
It might be worth investigating why the service won't work with the normal MSI service tables (the Install NT Service part of the Component Wizard), since running an external command won't handle shared files, rollback, uninstallation, and so forth.
In any case, you might search these forums and the KB for "batch file custom action" to see some options.
In any case, you might search these forums and the KB for "batch file custom action" to see some options.
‎Jan 10, 2008
04:17 AM
RobertDickau wrote:
It might be worth investigating why the service won't work with the normal MSI service tables (the Install NT Service part of the Component Wizard), since running an external command won't handle shared files, rollback, uninstallation, and so forth.
In any case, you might search these forums and the KB for "batch file custom action" to see some options.
When installing the service using the commandline option /install the service will get registered with some special parameters. This doesnt work while installing with the Install NT Services option in Installshield 2008.
Since the Forum search doesnt work for me, I`ll go looking trough the forum manually so It could take me some time to find it 😛 But thanks for the fast reply. I`ll let you know when I found the sollution.:)
‎Jan 16, 2008
05:09 AM
Finally, found something that works.
Only problem is that it isnt really flexible... Couldn't get the PROGRAMFILES or INSTALLDIR function to work yet. But its a good start 😄 Hope it helps someone 🙂
function MyFunction(hMSI)
LONG Nmber;
begin
Nmber = LaunchAppAndWait("C:\\folder\\subfolder\\Servicetoinstall.exe", "/INSTALL ", WAIT);
if (Nmber != 0) then
MessageBox("Error installing", WARNING);
endif;
end;
Only problem is that it isnt really flexible... Couldn't get the PROGRAMFILES or INSTALLDIR function to work yet. But its a good start 😄 Hope it helps someone 🙂