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
- :
- Running a script does not seem to work and i don't get any debug information in log.
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
Oct 05, 2011
01:24 PM
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
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
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 06, 2011
01:38 AM
Have you made sure to have IA variables replaced before running the script?