Different results when running batch file through v7.0

Got a problem you cannot solve? Try here.
Post Reply
Tesseract_Support
Posts: 12
Joined: Mon Jul 30, 2007 10:24 am

Different results when running batch file through v7.0

Post by Tesseract_Support »

Hi,

In my project I detect if the installation machine is running Microsoft Message Queuing and if not then it runs a batch file which I have that installs\\configures MSMQ from the add/remove windows components automatically.

This batch file runs absolutely fine when run directly on a machine (XP) but when running it from my installation project the batch file attempts to run but fails with the message

"The application could not be initialized."

Even if I do not actually include the batch file as a support file in my project and try an execute it from within the project I get the same problem.

Any thoughts?

Kind Regards
Chris
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

You may need to run the batch file using cmd.exe, the command line processor. cmd.exe has parameters to run batch files etc.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Tesseract_Support
Posts: 12
Joined: Mon Jul 30, 2007 10:24 am

Post by Tesseract_Support »

Thanks.
I had already tried that when having the batch file as a support file but that didn't work as cmd.exe couldn't find the file but I'll try it again just running a previously installed batch file.
Tesseract_Support
Posts: 12
Joined: Mon Jul 30, 2007 10:24 am

Post by Tesseract_Support »

Sadly this gives the same result. What I don't understand is why the file will run fine when run manually but not when run from with the installation project.
Using IA Studio v7.0 (Build lonepine_rtm.071107)
Tesseract_Support
Posts: 12
Joined: Mon Jul 30, 2007 10:24 am

Post by Tesseract_Support »

I assume that when running something through IA it uses the same user credentials as the current widows user?
Using IA Studio v7.0 (Build lonepine_rtm.071107)
Post Reply