How do I create a Visual Studio project for existing Wix v3 code? #8107
Unanswered
ArmorBearer
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Reposted from https://stackoverflow.com/questions/78124532/how-do-i-create-a-visual-studio-project-for-existing-wix-v3-code
We have Wix v.3 code which we have been using for years (with tweaks for each version) to build our installer. Up to now, it has been done in a Windows command shell, not as part of a Visual Studio project.
Now we would like to upgrade to Wix v.4, and on the Get started with WiX page, I see the following options for using v.4:
I believe the second option is most like what we have been doing.
Previously, I was told the best way to migrate our code from v.3 to v.4 was to use the migration tool HeatWave. But we can only use that with a Visual Studio project.
Currently, our installer code consists of 6 .wxs files, 2 .wxl files, 2 .xslt files, an .html file and an .xml file. So far I have created a Visual Studio project for our installer Setup, and I have added all of these files to the project.
Up to now, to build our installer from the command shell, we use the NAnt tool, and we pass it a .build file and a target (Daily Build, Release Build, Test Build, etc.). The build file sets up environment variables, build paths, appropriate icons, and then specifies what steps to follow to build each target.
For a given target, we may:
There's a lot of logic in this .build file. How do I get this logic into Visual Studio (or should I?).
Building the installer itself requires several steps, including:
All of these steps are done in a Windows batch file (.bat), which is invoked by the .build file. How do I represent this logic in a Visual Studio Setup project?
Note: we want to be able to run all of this on a CI/CD system (TeamCity) as well as from the Windows command line.
(We also do a bootstrap process, so we can distribute patches for our product, but that is another question for another post...)
Thanks in advance for any strategies you can offer for how to set this up in Visual Studio.
Beta Was this translation helpful? Give feedback.
All reactions