I'm exploring distribution of .NET desktop applications with MSI generated by WiX.
So far it works great. But I've got a few questions, googling can't help out with.
What's the advised way of registering application to start when windows launches (in WiX)?
What WixUI could I use and how?
Notes:
Thanks in advance!
The WiX tools follow the traditional compile and link model used to create executables from source code. At build time, the WiX source files are validated against the core WiX schema, then processed by a preprocessor, compiler, and linker to create the final result.
A bundle is a collection of installation packages that are chained together in a single user experience. Bundles are often used to install prerequisites, such as the . NET Framework or Visual C++ runtime, before an application's .
I found this using Google (Providing automatic program start via the Registry); it also includes adding UI. Don't forget you should also provide an option outside the setup to enable/disable autostart.
The basic Wix for it is:
<Property Id="ASSISTANCE_START_VIA_REGISTRY">1</Property> <!-- Auto-start via Registry --> <Component Id="MerliniAssistanceAutostart" Guid="Place-your-own-GUID-here"> <RegistryValue Id="MerAs.rst" Root="HKMU" Action="write" Key="Software\Microsoft\Windows\CurrentVersion\Run" Name="Merlinia Assistance Client" Value="[INSTALLDIR]Assistance.exe" Type="string" /> <Condition>ASSISTANCE_START_VIA_REGISTRY</Condition> </Component> <ComponentRef Id="MerliniaAssistanceAutostart" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With