Page 1 of 1

\"Run Program AS\" in Express version

Posted: Mon Jul 30, 2007 6:50 pm
by karanjsingh
Hi there,

I am running the Express version and I am unable to run a file at the end of my installation that called another file when run. The file specified in the Run Programs runs successfully but the file that is called by this file doesnt run. Seems like it cannot find the file even thought the file path is right. I reviewd these forums and found that it can be solved by using the Run Program As feature but I cannot find this feature in the Express version. Please help me to achieve what I want. Thanks.

Karan

Posted: Mon Jul 30, 2007 7:23 pm
by MichaelNesmith
Sorry, this is only available with Developer and above.

Any other way?

Posted: Mon Jul 30, 2007 10:24 pm
by karanjsingh
Hi,

So is there any other way to run a file that will read another file after install using Express version? The rest seems to work fine for me except that this file that I am running using Run Programs needs to access another file to run. Which folder is used by Installaware as a temp forlder at runtime?

Thanks
--
Karan

Posted: Tue Jul 31, 2007 4:05 am
by MLS
The current directory will be the installer folder when you run an exe, not the folder where the exe runs from.

You will need to pass the full path to the file the program is trying to access to the exe you are running.

I have had similar problems my self at first with this

file path

Posted: Tue Jul 31, 2007 5:02 pm
by karanjsingh
Hi,
I didnt exactly understand which file needs the exact path to execute so I am giving an example of my directory structure:

The folder that contains my msi installer file is D:\\Install\\Release\\Single

The folder where I want my program to be installed using the above installer file is D:\\MyProg (which is the $TARGETDIR$ for my msi installer file)

Now, I am trying to run a file from the D:\\MyProg called NEWUPD.CBS which calls another file UPDATE.TXT to run (both these files are extracted in the D:\\MyProg folder by the msi installer file). The NEWUPD.CBS file is run after my installation finishes but this file cannot find the file UPDATE.TXT even though the file exists in the D:\\MyProg folder.

I hope you understand what I am trying to do and guide me how to run the NEWUPD.CBS file successfully (by giving it the path of the file UPDATE.TXT).

Thanks a lot.
--
Karan

Re: file path

Posted: Wed Aug 01, 2007 2:50 am
by MLS
karanjsingh wrote:Hi,
I didnt exactly understand which file needs the exact path to execute so I am giving an example of my directory structure:

The folder that contains my msi installer file is D:\\Install\\Release\\Single

The folder where I want my program to be installed using the above installer file is D:\\MyProg (which is the $TARGETDIR$ for my msi installer file)

Now, I am trying to run a file from the D:\\MyProg called NEWUPD.CBS which calls another file UPDATE.TXT to run (both these files are extracted in the D:\\MyProg folder by the msi installer file). The NEWUPD.CBS file is run after my installation finishes but this file cannot find the file UPDATE.TXT even though the file exists in the D:\\MyProg folder.

I hope you understand what I am trying to do and guide me how to run the NEWUPD.CBS file successfully (by giving it the path of the file UPDATE.TXT).

Thanks a lot.
--
Karan


When the installer executes newupd.cbs the current folder will be D:\\Install\\Release\\Single or it could be in your temporty files but it won't be in D:\\MyProg so thats why your script can't find the file

You will need to pass in the folder into the script or change the current folder. I havn't tried changing the current folder not sure if this will effect installaware or not so best change it back after you script exits

How to use Run Program As

Posted: Sun Sep 09, 2007 10:34 pm
by karanjsingh
Hi there,

I am trying to run a file that should run after the installation is finished. I am using InstallAware Studio Admin 7.

I tried running the same file using Run Program and it runs, but the file calls another file so I will need to use the Run Program As function to state the working directory. I have done this but the file doesn't run. The Run Program As line of code has no affect. It says in the help that put this life after Apply Install and I even tried that but the same.

Please suggest a way to use Run Program As feature. Thanks.

Karan.

Posted: Thu Oct 25, 2007 12:20 am
by lextm
If sometimes Run Program (As) fails and it is possible, I rather run the files when users launch the program I create. As a developer, I find it much easier to do something in my program. Installer should be as simple as possible.

Posted: Thu Oct 25, 2007 12:45 pm
by Alex_Ronquillo
My guess would be that you need to use the Convert Path command in the path of the working directory you are using