pbickford
Posts: 6
Joined: Sun Jan 10, 2016 12:57 am

Removing install files after install with prerequisites

I have a program installer which uses a downloaded post-install prerequisite to install some large data files which are used by the program (but which don't change much, thus the approach of isolating them from the main program installer so we can more readily distribute updates by revving the much-smaller program installer).

Everything's going well, with the exception of post-install clean-up: post-install, the %appdata% folder winds up containing two extraneous folders, one named for the program and containing a "prerequisites" folder which contains the installer for the prerequisite, and a second one named for the exact version of the program (e.g. "MyApp 10.0.3") which contains only the .msi file for the main program installer. Watching this latter folder during the install, you can see it wipe away all the other install resources, but it still leaves the .msi and the surrounding folder structure.

I tried (unsuccessfully) adding a File Remove action for the prerequisite, triggered off component installed state, but it appears to have no effect.

How do I get these installer files and folders to clean up after the install?

(Notably, my previous version installer, which does not involve a post-install prerequisite, has no such problems post-install with leftover files)

Thanks,
-Pete
pbickford
Posts: 6
Joined: Sun Jan 10, 2016 12:57 am

Re: Removing install files after install with prerequisites

Thanks to Eusebiu for at least part of the answer. Turns out there's a setting I missed:

Image

That took care of the package installer sticking around. Now if there was just some way to get rid of the folder/file containing the install MSI itself

(The "MyApp XX.X.X.XXX folder\install\XXXXX\myappinstaller.msi") one.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Removing install files after install with prerequisites

Hi,

I'm glad the prerequisites problem was solved.

In order for the MSI and CAB files to also be removed, you need to make sure that the "Do not delete extracted MSI and CAB files" option from the "Builds" page is also not checked.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pbickford
Posts: 6
Joined: Sun Jan 10, 2016 12:57 am

Re: Removing install files after install with prerequisites

"Do not delete extracted MSI and CAB files" is unchecked. Anything else I can check?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Removing install files after install with prerequisites

Hi,

This should not happen if that option is unchecked. Can you reproduce the problem on multiple clean machines?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”