Heesuk  Kim
Heesuk Kim

Reputation: 77

Can I replace Command Line Options

I have this option of other installer install.exe -D$FORCE_UPDATE$=true -l en

This is the option of other installer.

This means below. If $FORCE_UPDATE$ key is "true" value, install language is English without language Selection dialog.

I want to use this option without modification. I already knew that How to skip language Selection dialog like this. install.exe -Dinstall4j.language=en install.exe -Vsys.languageId=en

But, I would like to use old option I can't modify this option since I have already released old version.

Can you give me the method about this issue?? Can I use this option programattically?

Upvotes: 0

Views: 289

Answers (1)

Ingo Kegel
Ingo Kegel

Reputation: 48005

For the installer, install4j translates

-D$FORCE_UPDATE$=true

to a system property (like the command line syntax for VM parameters for the java executable), so you can query

Boolean.getBoolean("$FORCE_UPDATE$")

in code snippets in install4j.

Upvotes: 1

Related Questions