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

execute a batch file in pre-install

I have a situation, where I need to run a batch file in a custom code in pre-install steps

Thanks
-/ Jude
Labels (1)
0 Kudos
(4) Replies
jerome_IA
Level 9

Hey Jude, don't make it bad.
Just ask a question and
you may get an answer.
Then you can start to make it better.

apart from this joke, I don't understand what's your issue exactly ?
0 Kudos
pv7721
Level 20

😉 Jerome, I think that the issue is that the setup has to run a .bat file in the pre-install section, when normally there aren't any files installed yet!
0 Kudos
jerome_IA
Level 9

In such case, there is the EXTRACTOR_DIR which can be retrieved in custom code and file can be executed from there in pre-install action.

Or is script should be invisible for end user, then INSTALLER_TEMP_DIR can be used.

Still I don't understand what is the issue ?

an other example for extracting files in pre-install: http://kb.flexerasoftware.com/selfservice/viewContent.do?externalID=Q000443
0 Kudos
tellme
Level 3

hi jerome_IA,

sorry for the short question though. The issue is I need to run a sqlplus executable during a pre-install steps. Depending on feature selection, the argument(.sql file) for the sqlplus executable may be different. Capture and parse the log to check for any error messages. Depending on the OS, it should run a batch file or script.
0 Kudos