I would like to seek your help. I am creating an installer for our application using IzPack. Since it will be a new database for the servoy_repository, I would need to call servoy_server.bat -upgradeRepository so I placed this portion in my install.xml.
- Code: Select all
<executable targetfile="$INSTALL_PATH/application_server/servoy_server.bat" stage="postinstall" keep="true">
<args>
<arg value="upgradeRepository"/>
</args>
</executable>
Tried arg with and without "-". Did not return any error from izpack but did not upgrade the repository also.
so i tried a different approach. Created an upgradeRepository.bat with the following contents
- Code: Select all
cd $INSTALL_PATH\application_server
call servoy_server.bat -upgradeRepository
in install.xml
- Code: Select all
<parsable type="plain" targetfile="$INSTALL_PATH/application_server/upgradeRepository.bat"/>
<executable targetfile="$INSTALL_PATH/application_server/upgradeRepository.bat" stage="postinstall" keep="false"/>
when i tried to run my install.jar it just says
message title - "Execution failed"
details: c:\eclipse> cd c:\installation\servoy\application_server
c:\installation\servoy\application_server> call servoy_server.bat -upgradeRepository
Continue Installation?
<Yes> <No> buttons
Would anyone have an idea how to fix this? Or is my approach incorrect?
Thanks!