cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mitkatti
Level 3

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.
Labels (1)
0 Kudos
(2) Replies
buogr01
Level 4

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.
0 Kudos
mitkatti
Level 3

Thanks a lot for the reply. It worked.
0 Kudos