Using thmutil extension in wix toolset - wix

I want to use elements defined in thmutil extension in wixtoolset but i can't find any dll file for this extension in wixtoolset directory. I am completely new to wix so can somebody help me with this problem?

ThmUtil isn't an extension; it's a library for writing UI in C++ native code.

Related

WIX Custom Actions

I need to create custom actions in WIX for my MSI. I want to be able to read from a txt,xml or ini file and pass them through into a configuration file.
My problem is I cannot use .net, as the scope for the MSI is to not have any .net interaction and I understand jscript is not a good idea for several reasons.
What options if any do I have left?
So basically your options:
Custom c++ actions
XML wix Util tool
Ini wix Util tool

Wix3.7 Custom Bootstrapper not showing WPF themes from a themes library

I've created a custom managed bootstrapper in WPF using Wix 3.7. I used an existing XAML themes library to create the bootstrapper UI. I added the same themes library as a payload in the bootstrapper wxs file.
The problem is themes are getting applied during the design time but on running the bootstrapper's .exe file the themes are not getting applied.
Can some one tell me why it is happening?
You'll want to follow up with the implementation of the library to understand how the themes are loaded. Often, those types of libraries make assumptions that the files will be relative to the executable. Because the Burn engine is a native host those assumptions are incorrect. Instead, the library needs to load the themes relative to the current executing assembly.

WiX version from C# file

All my .net applications take their version from one C# version file.
lets call it version.cs.
How can i make one WIX project set the version according to this file?
I saw :
How can I set the WiX installer version to the current build version?
but it cannot help me because I am wrapping several DLL and some of them may have the correct version and some not.
How can I Bind the version from C# file?
WiX has no support for this. You'd have to write some build automation to extract the version from the cs file and pass it to WiX's command line at build time.
Personally what I do is use build automation to own the build version and push it into both WiX and C#. Since I'm using TFS Team Build there are libraries already written ( TFSVersioning ) that do this for me.

Open source projects using Wix source files to learn from

I have to write an installer and want to use Wix. The documentation on the website is not working and I like learning by example. Does someone know an open source project with good WiX source files, preferable for Wix version 3.0 or 3.5.
SharpDevelop is one of the bigger ones that I know that uses WiX. I also have a project called IsWiX that sits on top of WiX to author Merge Modules. IsWiX uses WiX/IsWiX itself to do it's own installer so there are some examples there. Finally there is a new WiX book out that you might want to purchase and read through.
WiX: A Developer's Guide to Windows Installer XML
TortoiseSVN uses WiX and there is a blog outlining some issue they had.
Edit: TortoiseSVN Blog: On Major Upgrade Problems with WiX
A few Codeplex projects that use Wix:
Wix, of course
SytleCop
TortoiseHg
VisualHg
There's a open source WIX Sample projects available here, which were very helpful in getting me started.
And don't forget to check out the Powerpoint slide(s) in the slides folder.
I found it really valuable in getting me started with WiX compared to the Wix Tutorial on the Wix website or the Packtpub books.
https://github.com/rstropek/Samples/tree/master/WiXSamples

How to convert vdproj file to WiX format?

I need to convert a vdproj file to WiX format so that I can get it building using msbuild. One solution was to call the devenv executable from msbuild and build the vdproj file from there but that's just nasty. I thought that I would try manually converting the file to WiX format but looking at its contents scared me quite a bit. Are there any tools or elegant solutions that could possibly help with this conversion?
You can try work with Dark which converts any MSI into Wix. You will need to remove a lot of "junk" especially in the UI areas but it will give you a decent start.
There is a utility by Chris Oldwood that converts a .vdproj to .wxs (using powerscript command line)
I hope that helps, this is my current research and I will report back on any issues.
Once converted do not forget WixEdit.
Microsoft have removed .vdproj from VS2012.
"VDProj to WiX Converter" will help you to convert vdProj file to wix.
It can be downloaded from the link
http://visualstudiogallery.msdn.microsoft.com/0f8ff662-c844-4c3c-9c7b-b170cea16baf
If you want to switch to NSIS or Inno Setup you can use Visual & Installer extension: http://visualstudiogallery.msdn.microsoft.com/5e57fe9a-ae5d-4740-a1c3-7a8e278e105b
It also supports conversion from .vdproj files into NSIS or Inno Setup script.