calling another exe from within with passing arguments

This forum has been archived and is no longer active.

The new forum is located at:

https://sourceforge.net/apps/phpbb/installjammer/

You may continue to view and search the topics in this forum, but no new posts can be created.

calling another exe from within with passing arguments

Postby hsperhar » Thu Jun 09, 2011 8:30 am

Hi,
I like to change my current system in which I run a batch file to silently install the oracle XE, via a ISS script file, with one setup program. In current system I have four files:
1) Batch file with command: OracleXE.exe /s /f1"install.iss" /f2"OracleXe.log"
2) install.iss: which is oracle provided silent install script
3) and OracleXE.exe : standard setup file
4) OracleXe.log : log file.

To do so, what steps I should have to make respective executable with the help of installjammer. I also want to have all the files within the final executable, so that they can be called from within. If you want any further information please don't hesitate to ask.

Thanks


Harbinder
hsperhar
 
Posts: 9
Joined: Wed Jun 08, 2011 3:20 pm

Re: calling another exe from within with passing arguments

Postby hsperhar » Thu Jun 09, 2011 4:07 pm

Ok, I break it down.
1) How to call another executable from within?
2) How we can run a command line to to execute packed executable from within(of components), with some arguments?

Thanks

Harbinder
hsperhar
 
Posts: 9
Joined: Wed Jun 08, 2011 3:20 pm

Re: calling another exe from within with passing arguments

Postby hsehdar » Fri Jun 10, 2011 4:54 am

Dear hsperhar,

Add action Execute External Program with Program Command Line like "notepad" C:\temp.txt

Thank you,
With regards,
Hsehdar
hsehdar
 
Posts: 134
Joined: Sun Sep 26, 2010 7:16 am

Re: calling another exe from within with passing arguments

Postby hsperhar » Fri Jun 10, 2011 8:46 am

Hi Hsehdar
But can I not store the c:\temp.txt within the setup file ,as part of component, and call it from there?
Also,
I'm getting following error, when I call the txt file:
couldn't execute "C:HSPdevelopmentWorkSilentInstallSaskElecoutputOracleinstall.txt": no such file or directory
while executing
"::InstallJammer::actions::$component $this"
while executing
"$obj execute"


Thanks

hsperhar
hsperhar
 
Posts: 9
Joined: Wed Jun 08, 2011 3:20 pm

Re: calling another exe from within with passing arguments

Postby hsehdar » Sat Jun 11, 2011 5:22 pm

Dear hsperhar,

The file can be part of installer. Post installation of the file this action needs to be added. I have not worked on how to extract a file in pre-installation and then executing execute it with external program.

It maybe possible. Kindly use the documentation to the fullest and you will be able to solve all these issues.

Thank you,
With regards,
Hsehdar
hsehdar
 
Posts: 134
Joined: Sun Sep 26, 2010 7:16 am

Re: calling another exe from within with passing arguments

Postby hsperhar » Mon Jun 13, 2011 2:21 pm

Hi
Ok, If I want to go your route, please inform how I can create a working directory in the <%Temp%> directory ,say hpinstall ,so that all the required files can be stored there and later one of those files,which is batch file:install.bat can be executed from there?
Thanks


Harbinder
hsperhar
 
Posts: 9
Joined: Wed Jun 08, 2011 3:20 pm

Re: calling another exe from within with passing arguments

Postby hsperhar » Tue Jun 14, 2011 2:23 pm

It's ok, now I'm able to run the batch file in the background. I was wondering if we can set the cursor to wait cursor somehow, while copying the files. Do you know how this can be done?

Thanks

hsperhar
hsperhar
 
Posts: 9
Joined: Wed Jun 08, 2011 3:20 pm

Re: calling another exe from within with passing arguments

Postby hsehdar » Sun Jun 19, 2011 6:25 pm

There are many conversations in this forum which may help in displaying the active cursor as working.

In simple add the action in the group Install Actions and need be update virtual text Status.
hsehdar
 
Posts: 134
Joined: Sun Sep 26, 2010 7:16 am


Return to Help

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest

cron