Question

My add-on installer cannot find the previous installation at the "Welcome" screen if it is installed in a non-standard location. To get around this, I run a pre-activation script to look up the location by id and set the installation directory variable. The salient code:

ApplicationRegistry.ApplicationInfo[] applicationInfos = ApplicationRegistry.getApplicationInfoById(appid);

File dir = applicationInfos[0].getInstallationDirectory();

context.setInstallationDirectory(dir);

This works on Linux (the welcome screen prompts to confirm the update) but not on Windows (the customary welcome screen is displayed). On Windows, the subsequent screen prompts with the correct directory, which matches what is in the Registry.

So, is this the correct way to do this in install4j version 5.1.6?

Thanks for the help!

Was it helpful?

Solution

This is a bug that will be fixed in 5.1.11.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top