Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find and Replace #7881

Closed
computerquip-work opened this issue Nov 21, 2023 · 3 comments
Closed

Find and Replace #7881

computerquip-work opened this issue Nov 21, 2023 · 3 comments
Labels

Comments

@computerquip-work
Copy link

Feature requests

  • Describe the scenario and benefits that the feature supports.

InstallShield and AdvancedInstaller both provide "extensions" that allow one to generically search for a string such as $REPLACEME and replace with a value given by the user at install time. WiX is capable of such but it's mighty inconvenient in its current form and requires a bit of research and work. There are already attempts at doing this as well but they're a bit outdated and unmaintained at this point.

  • Describe how you're accomplishing the feature today (if possible).

So far, I've been lucky in that I can change most of my configuration formats to fit the needs of WiX. I find this to be quite backwards. I recently didn't have such luck and it became a real problem since WiX doesn't understand the configuration file format and there is no real convenient way of accomplishing the task. It turned into custom data to a custom action that invoked PowerShell initially which was pretty awful and I'm not sure if it actually worked how I intended.

  • Describe what you'd like the new feature to do.

At install time, I'd like the user to be able to provide values that the installer can use to generate an initial configuration file. There's a few ways to go to accomplish that.

  • A regular expression search and replace in the style of sed
  • A templating engine in the style of jinja or similar
  • Something real simple similar to envsubst on Linux.
@chrpai
Copy link

chrpai commented Nov 22, 2023

Have you checked out https://github.com/dblock/msiext ?

@barnson
Copy link
Member

barnson commented Nov 28, 2023

Already supported: https://wixtoolset.org/docs/schema/util/formatfile/

@barnson barnson closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2023
@barnson barnson added obsolete and removed triage labels Nov 28, 2023
@computerquip-work
Copy link
Author

I had no idea this existed, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants