This is stored in a file in our source code already so I want to just read that file to avoid the extra input. But I find it annoying to always have to manually update my General Settings -> Application Info -> Version every time I make a new version. String myVersion = (String)context.getVariable("sys. I run install4j from the gradle plugin but use the user interface to edit the install4j file. The version of this installer is contained in a system installer variable The application has never been installed before We are using latest version of install4j 10.0 but we are facing issues while writing code. if the user has already installed the applicationĪpplicationRegistry.ApplicationInfo applicationInfo =ĪpplicationRegistry.getApplicationInfoByDir(context.getInstallationDirectory()) Install4J install 3rdparty software depending on the selected language. Here is an example code snippet that could be used in a "Run script" action in the "Startup" node to prevent an installation if the current version is already installed: // The value returned by context.getInstallationDirectory() will be the You can use the ApplicationRegistry API for that purpose.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |