Repackage Installation and writing error to winsxs - 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!

Heffer
Posts: 5
Joined: Sun Nov 28, 2010 1:46 pm

Repackage Installation and writing error to winsxs

Hi,

I am creating a msi-package with the 'Repackage Installation' Template on Windows 7 Enterprise (Advanced Installer 8.0.1).
Every thing works fine during the creation of the msi-package. But when I try to install then new package on Windows 7 I get the message:

Error writing to file
C:\Windows\winsxs\Catalogs\a2492......cat.
Verify that you have access to that directory.

The user 'TrustedInstaller' is the only one who has write-access to this directory.

Does anyone know this problem ?

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

Re: Repackage Installation and writing error to winsxs

Hello Wolfgang and welcome to Advanced Installer Forums,

Please make sure your installer is running with elevated privileges. For this, make sure you have the Installation Type set to "Per machine if user is administrator, per user otherwise". You should get an elevation prompt during the install.
If this doesn't solve your issue you can send us the .AIP (project) and a verbose log of the installation to support at advancedinstaller dot com so we can help you investigate.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Repackage Installation and writing error to winsxs

Hi,

The Windows Installer engine (which handles the installation of MSI packages) never attempts to install or replace files that are under the Windows File Protection.

Replacement of protected system files is supported only through:
- Windows Service Pack installation
- Hot-fixes
- Operating system upgrades
- Windows Update

Read more here:
http://msdn2.microsoft.com/En-US/library/aa382540.aspx
http://msdn2.microsoft.com/En-US/library/aa372820.aspx

Unfortunately winsxs folder is under Windows File Protection, so you cannot install files directly in it.

Most likely the installer you are repackaging is using some Visual Studio merge modules which install resources in winsxs.
The solution is this:
- determine which merge modules are used based on what was captured in winsxs
- remove winsxs folder from your project
- add the actual Visual Studio merge modules in "Merge Modules" page

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”