문제

I want install4j to detect if the application is installed on the customer's Linux box, but it might be installed in a non-standard location. Is this possible? I found some code in the code gallery that seems to work on Windows, but I don't see how this can be done on Linux:

installationApplicationRegistry.ApplicationInfo applicationInfo = ApplicationRegistry.getApplicationInfoByDir(context.getInstallationDirectory());

Thanks!

도움이 되었습니까?

해결책

It does work on Linux, but it uses the Java preference store. If you do not install as root, this information will be in the user-specific preference store, so the installer will only see the previous installations if you use the same user to run the installer.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top