\"Run Program AS\" in Express version

Got a problem you cannot solve? Try here.
karanjsingh
Posts: 4
Joined: Mon Jul 30, 2007 6:40 pm

\"Run Program AS\" in Express version

Postby karanjsingh » Mon Jul 30, 2007 6:50 pm

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

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

Postby MichaelNesmith » Mon Jul 30, 2007 7:23 pm

Sorry, this is only available with Developer and above.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

karanjsingh
Posts: 4
Joined: Mon Jul 30, 2007 6:40 pm

Any other way?

Postby karanjsingh » Mon Jul 30, 2007 10:24 pm

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

MLS
Posts: 56
Joined: Fri Jan 26, 2007 4:57 am

Postby MLS » Tue Jul 31, 2007 4:05 am

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

karanjsingh
Posts: 4
Joined: Mon Jul 30, 2007 6:40 pm

file path

Postby karanjsingh » Tue Jul 31, 2007 5:02 pm

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

MLS
Posts: 56
Joined: Fri Jan 26, 2007 4:57 am

Re: file path

Postby MLS » Wed Aug 01, 2007 2:50 am

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

karanjsingh
Posts: 4
Joined: Mon Jul 30, 2007 6:40 pm

How to use Run Program As

Postby karanjsingh » Sun Sep 09, 2007 10:34 pm

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.

lextm
Posts: 23
Joined: Wed Aug 22, 2007 2:53 am
Contact:

Postby lextm » Thu Oct 25, 2007 12:20 am

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.

Alex_Ronquillo
Site Admin
Posts: 364
Joined: Mon Jul 30, 2007 11:51 am
Location: USA
Contact:

Postby Alex_Ronquillo » Thu Oct 25, 2007 12:45 pm

My guess would be that you need to use the Convert Path command in the path of the working directory you are using
Alejandro Ronquillo
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: vaibhavopkey and 85 guests