install4j uninstaller does not delete all files - install4j

i am generating an installer for a desktop application using install4j 4.0.5 compiled by
j2re1.4.2_08 and running on WindowsXP.The Problem is that The uninstaller does not delete any files unless the files that have been installed by a previous installer.
Example : It install my application into program files folder lets say
"Vodafone". My application further creates some files and folder into "vodafone"
folder. At the time of uninstall it delete every thing whatever create
by setup while files and folder created by my application remains
there in "vodafone" even after restart my machine several time so i need to delete all files inside the installation folder .
I need your support to know how to fix this problem and if there is any workaround i can do to solve this issue.

The uninstaller does not delete all files and folders in the installation folder. Only the following files will be deleted:
Files that are contained in the installer and have an uninstallation policy that leads to uninstallation, such as "Always" or "If created".
Files that were registered with context.registerUninstallFile(...) by the installer
If the installation directory is empty after those files have been deleted, the installation directory will be deleted as well.
If you want to delete other externally created files, use the "Delete files or directories" action instead.

Related

Uninstaller in Install4j won't delete all flles

We are using Install4j v6.16.
In our uninstaller process we define "Delete files or directories" action to the installation directory by: ${installer:sys.installationDir} with the recursive option.
After the process is getting finish the .install4j directory (which contains some jars files and 1 dll file) and the uninstall.exe file won't be deleted.
If some of these files weren't be able to be deleted, the uninstaller process should have throw an error, isn't it?
On Windows, it's not possible to delete a file that is in use, so the uninstaller does this with a temporary executable in the %TEMP% directory.
The "Delete files and directories" action does not throw an error if a file cannot be deleted, it writes file paths that cannot be deleted to the log file of the uninstaller in the %TEMP% directory.
Use the "Delete files and directories" action only for specific files that are created by your application in addition to the installed files, the runtime files will be deleted automatically.

How to use Install4j installer for upgrade on non-install4j installation?

How can I upgrade my application with install4j of previously installed application which was build with non-install4j.
There is no direct support for that in install4j, but before the "Install files" action, you can copy files that should be preserved from the old installation directory to a temporary directory. Then you delete the old installation directory with a "Delete files or directories" action.
After the "Install files" action you use the "Move files or directories" action to move the preserved files back to the new installation.

Why is eclipse installing everything on my C drive?

I have limited space on my C drive, hence installing Eclipse in my E drive. After installation I find that about 1mb is on my E drive and all the rest is on my C drive!
Any idea how to get Eclipse to actually install in the folder I want? in previous versions all plugins went into the plugins folder of the install, but it seems Neon wants to install everything into a .p2 folder in my user folder.
Which is pretty useless too if I wanted Eclipse to be available to other users too...
thanks.
It appears that you downloaded the Windows installer version, which I would avoid if at all possible. While it is possible to tweak your installation to behave as expected, I suggest uninstalling it and downloaded the package of your choice from Eclipse Downloads. Unzip the package on your E: drive. The resulting eclipse directory will house all current files and plugins and others as you add/download them. The .p2 directory will still be created in your user directory, but will not contain anything other than some user-specific configuration information.
You can create a shortcut to eclipse.exe or on Windows 10 right-click and Pin to Start for easy reference. Also make sure that any workspaces you create are created someplace other than your user directory.

Avoid creating installation directory for patch installation

Today I need a solution to avoid creating a installation directory by install4j version 6.1.3 in a context of a patch installation. I wrote an installer which contains some files to install them to an existing application installation. The files should be bundled together with the patch installer. At the install files action i deactivated the install runtime selection point but the installer still created the installation directory containing a folder called .install4j. In this folder there are only some install4j files. When I deactivate the whole install files action the folder will not be created but the bundles files will also be not extracted to the temp-dircetory, right? I also marked the installation directory as an excluded file at the media-wizard. Do I missed something?
Thanks in advance
I would recommend to use the "Add-on installer" installer type on the "Installer->Update options" step.
If you need to update the version number, an alternative solution would be to remove the "Install files" action and add a ZIP file files.zip on the "Installer->Custom Code & resources" step that contains the new files. In the "Installation" screen, add an "Install content of a ZIP file" action with the "Zip file" property set to ${installer:sys.resourceDir}/files.zip.

Where does Eclipse store settings and plugins in userdir?

I've just installed a new Linux distro on my box and want to move my Eclipse home from the old /home/username/ to my new one. Because I changed the desktop, I don't want to copy all hidden folders from ~/. So which directories do I need copy in order to have all my installed plugins?
I've already copied ~/.eclipse/ and it definitely contains files related to the plugins but Eclipse won't load them. Any hints?
We've eventually found the directory containing all that stuff by accident. Somehow we broke it and Eclipse refused to start on my coworker's computer:-)
See ~/workspace/.metadata/.plugins or wherever your workspace resides.
As far as I know, Eclipse stores its plugins in its installation directory (eclipse). They might reside in eclipse/plugins or eclipse/dropins. You can copy the whole eclipse directory from your old box.