This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: Doubt regarding Execute Command Action
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 31, 2009
12:57 AM
Doubt regarding Execute Command Action
Hi,
Suppose I have my setup.exe in one folder C:\project, i.e. C:\project\setup.exe
I need to call a bat script from the installer. The bat script resides in the same folder as the setup.exe C:\project\bat\gs.bat.
If I am trying to call the bat script from the Execute Command Action I am getting error that could not find the file specified.
I am calling it directly like this bat\gs.bat thinking that the installer will be executing in the same directory. Am i going wrong somewhere?
And also one imp thing to note is, the folder in which the setup.exe will be located will be dynamic, not necessarily the above mentioned folder, But the setup.exe and the bat will be together in that folder.
Suppose I have my setup.exe in one folder C:\project, i.e. C:\project\setup.exe
I need to call a bat script from the installer. The bat script resides in the same folder as the setup.exe C:\project\bat\gs.bat.
If I am trying to call the bat script from the Execute Command Action I am getting error that could not find the file specified.
I am calling it directly like this bat\gs.bat thinking that the installer will be executing in the same directory. Am i going wrong somewhere?
And also one imp thing to note is, the folder in which the setup.exe will be located will be dynamic, not necessarily the above mentioned folder, But the setup.exe and the bat will be together in that folder.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 17, 2009
10:44 AM
Have you tried using the IA variable $INSTALLER_LAUNCH_DIR$ ? This gives the directory of where the setup.exe was launched from. You can likely use relative pathing from there if you wanted it to be in another location. Hope that helps.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 20, 2009
10:02 AM
Thanks a lot for the reply. It worked.