Delete prerequisites installer after installing? - Advanced Installer Community
cfi
Posts: 11
Joined: Wed Mar 21, 2012 11:11 am

Delete prerequisites installer after installing?

Hi,

is it possible to delete the downloaded files (dotNetFx40_Full_setup.msi for example) after they are installed?

regards
cfi
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Delete prerequisites installer after installing?

Hello,

You can try to schedule a custom action that deletes those files after the installation is complete (after Add Resources action group). Be sure to set it with "Deferred, with no impersonation".

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cfi
Posts: 11
Joined: Wed Mar 21, 2012 11:11 am

Re: Delete prerequisites installer after installing?

Where can I get the file path from (as the user can change it int the download wizard)?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Delete prerequisites installer after installing?

Hello Bogdan,

If you have an .EXE installer you can simply disable "Do not delete extracted MSI and CAB files" option. If not, can you please send us the .AIP (project file) to support at advancedinstaller dot com so we can have a look?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cfi
Posts: 11
Joined: Wed Mar 21, 2012 11:11 am

Re: Delete prerequisites installer after installing?

Hi,

thanks for the fast reply, but that is already disabled and I think thats only valid for the files of the actual installer and not for the files the prerequisites wizard downloads.

regards
cfi
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Delete prerequisites installer after installing?

It's also meant for prerequisites since they share the same location.

As this may be an Advanced Installer bug, we'll investigate and keep you posted here.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cfi
Posts: 11
Joined: Wed Mar 21, 2012 11:11 am

Re: Delete prerequisites installer after installing?

mihai.petcu wrote:It's also meant for prerequisites since they share the same location.
By default they don't. The default location for the downloaded files are the same folder where the installer .exe is stored and the installer files are extracted "somehwere else" (I guess a temp folder).

regards
cfi

P.S.: I use AI 9.0
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Delete prerequisites installer after installing?

Hello,
By default they don't. The default location for the downloaded files are the same folder where the installer .exe is stored and the installer files are extracted "somehwere else" (I guess a temp folder).
If the download location is not set by the user, it's indeed automatically set to the same location as the .EXE.

After later testing and investigating it seems deleting the downloaded packages of global prerequisites is not currently supported. By keeping the "Do not delete extracted MSI and CAB files" option disabled, only global prerequisites included in the package will be deleted.

I discussed the issue with the development team, they are aware of it and undergoing a solution for a future release.

Meanwhile, I'm afraid there's no other workaround than to use feature-based prerequisites.
The custom action solution I posted the first time is not valid because it has much more implications than I initially anticipated. One of them, as you noticed yourself, is setting the download location.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”