call servoy_server.bat -upgradeRepository

Questions and answers for all installation-related topics for Servoy products

call servoy_server.bat -upgradeRepository

Postby rogel » Fri Jan 13, 2012 7:54 am

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.

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!
rogel
 
Posts: 264
Joined: Mon Jul 04, 2011 9:09 am

Re: call servoy_server.bat -upgradeRepository

Postby rogel » Wed Jan 18, 2012 5:37 am

hi! is this feasible?
rogel
 
Posts: 264
Joined: Mon Jul 04, 2011 9:09 am

Re: call servoy_server.bat -upgradeRepository

Postby rogel » Mon Jan 23, 2012 1:56 pm

successful. thanks anyway.
rogel
 
Posts: 264
Joined: Mon Jul 04, 2011 9:09 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 6 guests

cron