jm2008
Posts: 62
Joined: Tue Jul 08, 2008 10:24 am

Is this a Bug?

Hi,

I have use AI for creating msi installation (mixed 32-64) the output is exe file.

I have automatic updates, when I install version 1.1 the installer will create folder and extract the msi files into it, everything is OK.
then when I install 1.2 the installer will extract the msi in the same folder, everything is OK, then at one point during the installation the installer will remove all files (old and new) from that folder and it will give an error (Error reading / can not find XXXXX.msi).

Is that a bug?

Thanks,
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Is this a Bug?

Hi,

No this is not a bug. What happens is that after what the second package is extracted into the same location and it starts the installation,
the uninstall process for the first package starts. This will remove all the files from that location.

What you could do is to set another Extract Location for each version. For example : [AppDataFolder][|Manufacturer]\[|ProductName]\[|ProductVersion]
This will make the extract path to change at every new version, therefore the extracted files will not be deleted anymore.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jm2008
Posts: 62
Joined: Tue Jul 08, 2008 10:24 am

Re: Is this a Bug?

OK, agreed, and this is what I did to workaround the problem.

But, still, the uninstallation of the first version, should ONLY remove the files created by the first installer, not all the files?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Is this a Bug?

Hi,

Please note that when uninstalling a product all the files and folders created will be removed.
Since that location is defined by the package, the uninstall process will try to delete the folder, therefore all the files from within.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jm2008
Posts: 62
Joined: Tue Jul 08, 2008 10:24 am

Re: Is this a Bug?

>> Since that location is defined by the package, the uninstall process will try to delete the folder, therefore all the files from within.

Not true, I marked (Do not delete extracted MSI and CABS files) checkbox, and still the files are removed.
2. When I select folder like [TempFolder] the installer will not remove all files within the folder, either the folder, it will only remove all MSI files old and new.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Is this a Bug?

Hi,
Not true, I marked (Do not delete extracted MSI and CABS files) checkbox, and still the files are removed.
This option will not delete the extracted MSI and CAB files after the installation finishes (which usually happens, because the files are extracted as temporary files).
The option however doesn't affect the uninstall process. After uninstall all the files will be deleted. There are two situations when deleting the extracted files:
1) if the package is compressed using LZMA then the entire folder is deleted, not the files separately
2) if the package doesn't uses LZMA then the files are deleted separately
2. When I select folder like [TempFolder] the installer will not remove all files within the folder, either the folder, it will only remove all MSI files old and new.
If the extraction folder is not empty before the extraction of the package, then it will not be deleted upon uninstall, only the files from the package will be deleted.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jm2008
Posts: 62
Joined: Tue Jul 08, 2008 10:24 am

Re: Is this a Bug?

>>If the extraction folder is not empty before the extraction of the package, then it will not be deleted upon uninstall, only the files from the package will be deleted.

OK, but the uninstall should ONLY delete the files that are created by this specific installer. Not to delete all MSI/CABS files. I can't understand why the uninstaller will remove -in any case- files that are NOT created by installer?

That's very serious issue, if the user has actually other MSI/CAB files in Temp folder that are related to other installers, it will ALL be removed by Advanced Installer???? What the user will do in this case??

On other hand, if this is the case, this behavior SHOULD be well documented in the upgrade section of advanced installer, in order to notify the user to create custom folder with different name for each version.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Is this a Bug?

Hi,
That's very serious issue, if the user has actually other MSI/CAB files in Temp folder that are related to other installers, it will ALL be removed by Advanced Installer???? What the user will do in this case??
The files will be removed. The solution is the one you've used too. That is to create a different folder each time, as in the example I provided.
On other hand, if this is the case, this behavior SHOULD be well documented in the upgrade section of advanced installer, in order to notify the user to create custom folder with different name for each version.
We shall upgrade the documentation of this option shortly.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”