Install4j: can installation executable be removed after install?

Bill Clar

My Install4j configuration has no problem updating my executable and replacing the old instance.

However, my windows user profile is building up with each instance of the downloaded executable file:

  • install_1.0.0.exe
  • install_1.0.1.exe
  • install_1.0.2.exe

If I update to version 1.0.3, then I will see install_exe_1.0.3.exe stored here as well.

Is it possible for Install4j to delete this file upon update completion?

FWIW, this also occurs with Install4j updates. I have the following files in my user profile:

  • install4j_windows_5_1_10_with_jre.exe
  • install4j_windows_5_1_11_with_jre.exe
  • install4j_windows_5_1_12_with_jre.exe
  • install4j_windows_5_1_13_with_jre.exe
Ingo Kegel

As of install4j 5.x, there is no clean-up mechanism for downloaded update installers, but you could build one yourself.

The place to add logic for deleting old installers would be in the updater. Each time a new installer is downloaded, you would have to save the download path to a persistent storage, such as the Java preferences store. When the updater is started, you could then load those saved paths and delete them.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Install4j: Executable file deleted when reboot was performed after the installation in Windows Server 2012 64bit

From Dev

install4j obsolete files not removed on upgrade

From Dev

How can we configure the install4j executable to take query parameters provided in the custom uri to take as arguments to pass to the main app

From Dev

The executable generated by install4j doesnt start

From Dev

Install4j running Executable not using environment variables

From Dev

Can install4j detect other install4j installations?

From Dev

ApplicationLauncher.Callback notification on finishing Install4j installation

From Dev

install4j hide installation components based on the media type

From Dev

Write temp installation.log to .install4j directory

From Dev

Install4j: modifying/ having a custom installation location screen

From Dev

Write temp installation.log to .install4j directory

From Dev

Install4j: Always get 'could not delete {installedDir}\.install4j' during 'Uninstall previous installation'

From Dev

How can I create a link for Windows with install4j

From Dev

install4j: can't create quick launch icon

From Dev

Install4j: Can updater update itself?

From Dev

How do I find a system executable path with install4j?

From Dev

How to define custom URI scheme for windows executable generated with Install4J

From Dev

How can I install an AMD RAID driver after Windows installation?

From Dev

Clean install, what partitions can be removed?

From Dev

Removed resolvconf can't install anymore

From Dev

How can a binary installed with cargo install be removed?

From Dev

Can you import exe4j script/project into install4j?

From Dev

Install Mercury after XAMPP installation

From Dev

Validating ruby installation after install?

From Dev

Can't boot Linux Mint after Ubuntu 17.10 install, even though the Mint disk was removed during the install process

From Dev

Have the un-installer delete a file that was downloaded during installation with install4j

From Dev

How to get install4j add-on installer to find the previous installation

From Dev

How to get install4j add-on installer to find the previous installation

From Dev

Install4j Uninstall Previous Installation does not show all screens from Uninstaller

Related Related

  1. 1

    Install4j: Executable file deleted when reboot was performed after the installation in Windows Server 2012 64bit

  2. 2

    install4j obsolete files not removed on upgrade

  3. 3

    How can we configure the install4j executable to take query parameters provided in the custom uri to take as arguments to pass to the main app

  4. 4

    The executable generated by install4j doesnt start

  5. 5

    Install4j running Executable not using environment variables

  6. 6

    Can install4j detect other install4j installations?

  7. 7

    ApplicationLauncher.Callback notification on finishing Install4j installation

  8. 8

    install4j hide installation components based on the media type

  9. 9

    Write temp installation.log to .install4j directory

  10. 10

    Install4j: modifying/ having a custom installation location screen

  11. 11

    Write temp installation.log to .install4j directory

  12. 12

    Install4j: Always get 'could not delete {installedDir}\.install4j' during 'Uninstall previous installation'

  13. 13

    How can I create a link for Windows with install4j

  14. 14

    install4j: can't create quick launch icon

  15. 15

    Install4j: Can updater update itself?

  16. 16

    How do I find a system executable path with install4j?

  17. 17

    How to define custom URI scheme for windows executable generated with Install4J

  18. 18

    How can I install an AMD RAID driver after Windows installation?

  19. 19

    Clean install, what partitions can be removed?

  20. 20

    Removed resolvconf can't install anymore

  21. 21

    How can a binary installed with cargo install be removed?

  22. 22

    Can you import exe4j script/project into install4j?

  23. 23

    Install Mercury after XAMPP installation

  24. 24

    Validating ruby installation after install?

  25. 25

    Can't boot Linux Mint after Ubuntu 17.10 install, even though the Mint disk was removed during the install process

  26. 26

    Have the un-installer delete a file that was downloaded during installation with install4j

  27. 27

    How to get install4j add-on installer to find the previous installation

  28. 28

    How to get install4j add-on installer to find the previous installation

  29. 29

    Install4j Uninstall Previous Installation does not show all screens from Uninstaller

HotTag

Archive