Installing extensions via Windows Command Prompt

#1

Hi Guys,

I’m trying to make a Windows batch file that will download and install some extensions. From the Server Admin Guide, I tried the code below:

cd C:\MyFolder\KNIME
echo Setting up KNIME extensions. Please wait…
call knime.exe -nosplash -consoleLog -application org.eclipse.equinox.p2.director^
-r 'http://update.knime.com/analytics-platform/4.0,http://update.knime.com/community-contributions/trusted/4.0,http://download.nodepit.com/palladian/4.0,http://update.knime.com/partner/4.0’^
-i org.knime.features.datageneration.feature.group,org.knime.features.expressions.feature.group^
-d ‘C:/MyFolder/KNIME’
echo Done.

Yet it doesn’t seem to download from the repository.
There might be something wrong in the syntax.

I’m currently reading the p2_director guide. But if you have had the similar situation and solved it, please share.

Thanks! :smiley:

0 Likes

#2

quick update: opening command prompt, navigating to the folder of knime.exe and manually executing:

knime –nosplash –consolelog -application org.eclipse.equinox.p2.director -r http://update.knime.com/analytics-platform/4.0,http://update.knime.com/community-contributions/trusted/4.0,http://download.nodepit.com/palladian/4.0,http://update.knime.com/partner/4.0 -i org.knime.features.datageneration.feature.group,org.knime.features.expressions.feature.group -d C:/MyFolder/KNIME

a new CMD window is opened and it executes and installs the extensions as expected… but when placing the command in a batch file, it doesn’t seem to execute (and the new window doesn’t open)… I may have missed some syntax when placing the command in a batch file…

hope this helps add clarity…

0 Likes

#3

Try quoting the values of the -i and -d arguments. Also the following arguments might be useful:

-profile KNIMEProfile -profileProperties org.eclipse.update.install.features=true

although if it works without…!

Steve

1 Like

#4

Hi there @codvknime,

just to check are you installing extensions for Analytics Platform or Server when you mentioning Server Admin Guide?

Br,
Ivan

0 Likes

#5

Hi @ipazin,

I’m just making a batch file to automate my local install of KNIME extensions… I’ve read the Server Admin Guide for the command syntax…

I’ve managed to make it work; I had a typo on the hyphen when entering my arguments… Windows command doesn’t recognize some forms of hyphens… :rofl:

And yes @s.roughley, it works without the quotes! :smiley:

I’ll post the batch file tomorrow, it’s on my other laptop… Hope it solves some similar problems. In the meantime, please don’t close this thread.

Cheers…

2 Likes

#6

Hi @codvknime,

ok. I see. Nice one catching that :wink:

Don’t worry. Topic will be open. At least for another 6 months if you don’t mark reply as a solution :slight_smile:

Br,
Ivan

0 Likes