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

  • SEARCH
  • Home
  • 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 352611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:45:12+00:00 2026-05-12T11:45:12+00:00

We currently have 4 installers for our client software: ClientSetupTest ClientSetupProduction ClientUpdateTest ClientUpdateProduction The

  • 0

We currently have 4 installers for our client software:

  • ClientSetupTest
  • ClientSetupProduction
  • ClientUpdateTest
  • ClientUpdateProduction

The only differences between them are that Setup contains the Crystal Reports redistributable files, and Update doesn’t. Test and Production just specifies which environment they run in and the only difference there is one line in the Client.exe.config file.

Dumb, I know, which is why I replaced them all with one installer after getting rid of Crystal Reports. The new installer writes the selected environment out to setup.config, which is referenced by the file attribute (see here).

The “file” attribute is new to the config file with this new installer. The problem I’m running into is that if we modify the Client.exe.config file on an old installation, then run the new installer, the config file never gets updated with the “file” attribute.

Is there any way to force it to update a file? RemovePreviousVersions doesn’t exactly work, since it’s a different installer, unless I’m misunderstanding something. My current idea, which will probably work, is to add code in the OnBeforeInstall method to rename the old Client.exe.config to a backup file, so it’ll always write the new one. Seems like there should be a simpler solution within the installer itself, though. Any ideas?

EDIT: Renaming the old config file to Client.exe.config.old before calling base.OnBeforeInstall() didn’t work. It renamed the file, but never wrote the new one.

  • 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-12T11:45:12+00:00Added an answer on May 12, 2026 at 11:45 am

    Windows Installer won’t update a modified file.

    Nonversioned Files are User Data—If the Modified date is later
    than the Create date for the file on the computer, do not install
    the file because user customizations would be deleted. If the Modified
    and Create dates are the same, install the file. If the Create date
    is later than the Modified date, the file is considered unmodified,
    install the file.

    You have some options:

    • include a custom action that modifies the file in place. This might be a script or .NET code.

    • do as you say – move the existing file out of the way. The installer won’t stop on it. But you need to make sure it happens in the order you are imagining. You may need Orca to figure out the ordering.

    • include a custom option to set the create date to be “today”. This should be really simple with a scripted custom action, using the Scripting.FileSystemObject. Then Windows installer will overwrite it.

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

Sidebar

Related Questions

We have an app that currently installs itself into 'program files\our app', and it
I'm currently updating our software installer and have a few questions about getting the
I want to have our WiX installer that is currently building on a build
We have a magento 1.5.1 installed on our server. In that the default currency
We have an ordering system that is currently quite hard coded. We would like
We are currently migrating all our solutions from 2005 to 2010 (that's right, we're
For some reason, we have a script that creates batch files to XCOPY our
We don't currently have our SQL Server objects in any form of source control.
I currently have Ruby on Rails installed via RVM in Ubuntu 12.04. The default
I currently have a custom themed blog running on wordpress with Jetpack installed. I

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.