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
\"Run Program AS\" in Express version
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
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/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
-
- Posts: 4
- Joined: Mon Jul 30, 2007 6:40 pm
Any other way?
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
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
-
- Posts: 4
- Joined: Mon Jul 30, 2007 6:40 pm
file path
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
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
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
-
- Posts: 4
- Joined: Mon Jul 30, 2007 6:40 pm
How to use Run Program As
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.
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.
-
- Site Admin
- Posts: 364
- Joined: Mon Jul 30, 2007 11:51 am
- Location: USA
- Contact:
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/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Who is online
Users browsing this forum: vaibhavopkey and 85 guests