Skip to content

Upgrading installation on windows #468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ilacc1 opened this issue May 14, 2025 · 2 comments
Closed

Upgrading installation on windows #468

ilacc1 opened this issue May 14, 2025 · 2 comments

Comments

@ilacc1
Copy link

ilacc1 commented May 14, 2025

Hello team,

Scenario: A user has a previous version of my application installed and want to install new version. Since I use winConfig.removeOldLibs, the old jars in the libs directory are cleaned up and replaced with new versions.

The issue: My main application jar was installed in the app home / installation root and is not removed when installing over the previous version. Further, even in the presence of the new jar (e.g. higher version number in jar file name), app launcher (exe) always uses the old jar.

What is the recommended solution? Can I move the main application jar to libs (how?) ? Or perhaps main jar shouldn't have a version so it gets overwritten? Or is there an option to completely uninstall previous versions before installing?

To me, the option to auto-uninstall previous version would be preferable in my case as all user data & preferences are stored in user's home

Many thanks

@ilacc1
Copy link
Author

ilacc1 commented May 14, 2025

Related issue [(https://github.com//issues/466)]

@ilacc1
Copy link
Author

ilacc1 commented May 14, 2025

Changed ini.vtl to read:

classpath.1=${info.jarFile.name}

instead of

classpath.1=*.jar

As all other jars are in libs, this works. It's not ideal to keep old versions of the jar, but at least we run the correct version after upgrade.

@ilacc1 ilacc1 closed this as completed May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant