Policy errors - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

mhatkinson
Posts: 32
Joined: Tue Apr 08, 2008 5:36 pm

Policy errors

I've imported our existing msi into an advanced installer project and I've built the new advanced installer msi but now,when I try to run the install, I get errors like this:
Product: New Project -- Info 1931. The Windows Installer service cannot update the system file C:\WINDOWS\winsxs\Policies\x86_policy.9.0.Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_x-ww_b7353f75\9.0.21022.8.cat because the file is protected by Windows. You may need to update your operating system for this program to work correctly. Package version: , OS Protected version:

Is there a way to get Windows Installer to not update the file if it's protected?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Policy errors

Hi,

You are encountering this behavior because you imported a MSI which contains one or more merge modules distributed by Microsoft. Note that the data in them can be installed only by the original merge modules (you cannot import it into a new package).

Therefore, the solution is to remove from the project everything related to these merge modules and add them in the Merge Modules page. Note that these merge modules are usually installed by Visual Studio in the "C:\Program Files\Common Files\Merge Modules" folder.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mhatkinson
Posts: 32
Joined: Tue Apr 08, 2008 5:36 pm

Re: Policy errors

Thanks for you help on this.
I've added the correct merge modules and removed the related files under winsxs and policy folders in the 'Files and Folders' section and it installs as I would expect......except under Vista. XP works fine. I think it's still trying to create the folders (that don't have anything in them). If I try and delete the unused folders from the project, I get a message:
"Some files and/or folders are referenced from other components and were not deleted".
But I don't know which "components" are referencing them or why. I tried editing the .aip file in a txt editor but ran into problems.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Re: Policy errors

Hi,
"Some files and/or folders are referenced from other components and were not deleted".
But I don't know which "components" are referencing them or why. I tried editing the .aip file in a txt editor but ran into problems.
In order to investigate the problem please send the AIP file (if does not contain any confidential informations) to support at advancedinstaller dot com.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”