call servoy_server.bat -upgradeRepository

Hi servoy gurus,

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.

<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

cd $INSTALL_PATH\application_server
call servoy_server.bat -upgradeRepository

in install.xml

<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?
buttons

Would anyone have an idea how to fix this? Or is my approach incorrect?

Thanks!

hi! is this feasible?

successful. thanks anyway.