Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7430697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:10:57+00:00 2026-05-29T09:10:57+00:00

I have inherited a WiX project from a contractor that recently left. When I

  • 0

I have inherited a WiX project from a contractor that recently left.

When I build the WiX installer project, there is no problem – the .msi is built and output as expected.

But when I “rebuild” the WiX installer project, again the .msi is built just fine by light.exe, but it subsequently gets deleted by a “CoreClean”.

Further info: The wix project packages (and references) a single web project.

This is a snippet of the output:

ICE105: ICE105 - Validates the package to make sure that it can be installed in true Per-User mode
        ICE105: Created 05/01/2008. Last Modified 05/21/2008.
        Laying out media.
        Moving file 'C:\Users\codemonkey\AppData\Local\Temp\nxkfdvui\AmazonWebsiteInstaller.msi' to 'C:\web\main\Amazon.Webby.Install\bin\Release\AmazonWebsiteInstaller.msi'.
    Done executing task "Light".
    ...
    ...
Target "CoreClean" in file "C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets" from project "C:\web\main\Amazon.Webby.Install\Amazon.Webby.Install.wixproj" (target "Clean" depends on it):
    Task "ReadLinesFromFile"
    Done executing task "ReadLinesFromFile".
    Task "FindUnderPath"
        Comparison path is "bin\Release\".
    Done executing task "FindUnderPath".
    Task "FindUnderPath"
        Comparison path is "obj\Release\".
    Done executing task "FindUnderPath".
    Task "Delete"
        Deleting file "C:\web\main\Amazon.Webby.Install\bin\Release\AmazonWebsiteInstaller.msi".
        Deleting file "C:\web\main\Amazon.Webby.Install\bin\Release\AmazonWebsiteInstaller.wixpdb".
        Deleting file "obj\Release\MainWixComponents.wixobj".
        Deleting file "obj\Release\UploadContent.wixobj".
        Deleting file "obj\Release\WebSiteContent.wixobj".
        Deleting file "obj\Release\Product.Generated.wixobj".
    Done executing task "Delete".   
    ...
    ...

I can’t find any delete task in the installer project file that involve the msi or output folder, so it’s a result of visual studio doing a rebuild and thinking it needs to clean out files that it doesn’t.

This seems to be the relevant section in “C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets” causing the delete of the newly built msi:

<!--
==================================================================================================
CoreClean

Cleans all of the compile and link outputs as well as any intermediate files generated along
the way.
==================================================================================================
-->
<PropertyGroup>
<CoreCleanDependsOn></CoreCleanDependsOn>
</PropertyGroup>
<Target
Name="CoreClean"
DependsOnTargets="$(CoreCleanDependsOn)">
...
<!-- Delete those files. -->
<Delete Files="@(_CleanPriorFileWritesInOutput);@(_CleanPriorFileWritesInIntermediate)" TreatErrorsAsWarnings="true">
<Output TaskParameter="DeletedFiles" ItemName="_CleanPriorFileWritesDeleted" />
</Delete>
...

Any ideas?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:10:58+00:00Added an answer on May 29, 2026 at 9:10 am

    To resolve this I took all the InitialTargets steps (which were msbuild.exe calls) out of the wixproj file and moved them into a batch script called from the pre-build event project property. I did this because there was another problem – the targeted projects were being built as the project was loaded, which meant that it took a long time to open the solution. At any rate, moving everything into a batch file resolved both problems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have inherited a project that uses LLBLGen Pro for the DB layer. The
I have inherited a Websphere Portal project that uses Hibernate 3.0 to connect to
I have inherited a medium sized project that I would like to add an
I have inherited a visual studio 2003 project which uses some custom build steps.
I have inherited a VC++ solution and from one project (named IntersonWinDriver) I'm trying
I have inherited a project from a client, who believes he has all the
I have inherited a Java project which includes a number of classes that are
I have inherited a project that has a large number of source files. I
I have inherited a pure C project that uses GNU Pth ( http://www.gnu.org/software/pth/ )
I have inherited from a very small ASP.NET WebForms project, and my customer would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.