Hi,
I have just downloaded the trial version of Advanced Installer, version 6.4.1. It looks really good and it appears to work as expected in most areas.
But there is one little thing I do not understand, if anybody can give me a hand with this I would appreciate it.
My application contains some files in “C:\Program Files\<Application>”. These files are in the Advanced Installer project and this works fine. After removing the MSI from the target computer, this folder is removed as expected, so far so good.
We are also installing some files in “C:\Windows\WinSxS\Manifests”, but after the removal of the MSI these files are not removed by the MSI created by Advanced Installer. It does not give me an error message; it just leaves the files there. Despite the fact that these files are not removed, I would still be happy with Advanced Installer.
The trouble starts when I try to re-install the MSI. I would expect it overwrites the files in “C:\Windows\WinSxS\Manifests”, but it does not. It gives me the error message “The Windows Installer service cannot update the system file “C:\WINDOWS\WinSxS\Manifests\<filename>’ because the file is protected by Windows. You may need to update your operating system for this program to work correctly.”
I would say the solution is to remove the files during uninstall, so I tried a Custom Action with a vbs script, which worked. But the problem with this workaround is that the filenames of the files to remove are hard coded in the script. If the user installs Windows in an alternative folder the script cannot find the files to remove.
Another thing I tried is to check the option “Ensure that this file overwrites any installed target file.” In the Version tab, unfortunately this workaround was unsuccessful.
As said before, any help is greatly appreciated.
Warm regards,
Jan
FOLLOW US
Get the latest news in Application Packaging