Delete prerequisites installer after installing?

Having trouble running Advanced Installer? Got a bug to report? Post it all here.

Delete prerequisites installer after installing?

Postby cfi » Wed Mar 28, 2012 4:40 pm

Hi,

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

regards
cfi
cfi
 
Posts: 11
Joined: Wed Mar 21, 2012 11:11 am

Re: Delete prerequisites installer after installing?

Postby mihai.petcu » Thu Mar 29, 2012 1:56 pm

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3457
Joined: Thu Aug 05, 2010 8:01 am

Re: Delete prerequisites installer after installing?

Postby cfi » Thu Mar 29, 2012 1:59 pm

Where can I get the file path from (as the user can change it int the download wizard)?
cfi
 
Posts: 11
Joined: Wed Mar 21, 2012 11:11 am

Re: Delete prerequisites installer after installing?

Postby mihai.petcu » Thu Mar 29, 2012 2:40 pm

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3457
Joined: Thu Aug 05, 2010 8:01 am

Re: Delete prerequisites installer after installing?

Postby cfi » Thu Mar 29, 2012 2:44 pm

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
cfi
 
Posts: 11
Joined: Wed Mar 21, 2012 11:11 am

Re: Delete prerequisites installer after installing?

Postby mihai.petcu » Thu Mar 29, 2012 3:25 pm

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3457
Joined: Thu Aug 05, 2010 8:01 am

Re: Delete prerequisites installer after installing?

Postby cfi » Thu Mar 29, 2012 3:36 pm

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
cfi
 
Posts: 11
Joined: Wed Mar 21, 2012 11:11 am

Re: Delete prerequisites installer after installing?

Postby mihai.petcu » Fri Mar 30, 2012 2:06 pm

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3457
Joined: Thu Aug 05, 2010 8:01 am


Return to Common Problems

Who is online

Users browsing this forum: Bing [Bot], Daniel, Google [Bot] and 3 guests