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

Running a script does not seem to work and i don't get any debug information in log.

Hi;
I'm in the process of evaluating InstallAnywhere before i decide whether or not to purchase it for my company. I'm trying to get a handle on how your script/bat file action works. I'm trying to run a piece of bat file code (windows) that configures a DB schema. I get the indeterminate dialog but nothing seems to happen the dialog never goes away and the installer never finishes.. So here is what i did. I added a .sql file and then added a Execute Script action. I then entered the code in the "Script:" box(see below). i checked the "Suspend Install..." and "Show indeterminate dialog" check boxes. i then saved and built the installer.

bat file code:
@echo on
rem The script sets environment variables helpful for PostgreSQL

set PATH="$USER_INSTALL_DIR$\PostgreSQL\8.4\bin";%PATH%
set PGDATA=$USER_INSTALL_DIR$\PostgreSQL\8.4\data
set PGDATABASE=postgres
set PGUSER=postgres
set PGPORT=5432
set PGLOCALEDIR=%$USER_INSTALL_DIR$%\PostgreSQL\8.4\share\locale

echo Creating Database....
createdb -U postgres StonewedgeDB

echo Creating Tables....
psql -d StonewedgeDB -U postgres -f StonewedgeDBSchema.SQL
Labels (1)
0 Kudos
(1) Reply
pv7721
Level 20

Have you made sure to have IA variables replaced before running the script?
0 Kudos