Is it possible in WIX to force user to scroll all Eula to proceed further? - wix

We have a WIX Eula box , We need to make sure that user read all the EULA contents before he says accept ?
Is there any way to keep accept check box or button disabled until user scrolls it down completely?
Any help will be really appreciable.

This is not supported by Windows Installer, so it cannot be done in WiX.
It's supported only by some setup authoring tools which use an external installation UI. Their external UI can detect the scroll position and update buttons accordingly.
So for now it would be best to simply use the standard behavior.

Related

Wix Installer v3 - Embed Browser

I have been searching for this for days, and I can't seem to find anything that would solve this.
I have a requirement to show a web browser control in a Wix installer dialog that shows the application's Terms of Service web page.
We DON'T want to use the standard EULA page, which simply displays a compiled in RTF file, because the terms can change from time to time and we don't want to have to rebuild the installer each time just for that.
From what I can see, there are options for creating custom dialogs, but that seems like a lot of work for changing one thing. We really don't want to have to redesign the whole installer.
Does anyone know if this is possible?
No, it is not possible.
Windows installer can only show RTF or plain text, that is included in the package. It cannot show a web site, and you cannot define a custom page that would support a custom control, such as an embedded web browser because custom controls are not supported.
This is not less work but you can create a bundle in WiX and a custom BootstrapperApplication to implement whatever UI you want.

How to add custom action to the 'close' event after successful installation

I have two msis and packed them into a bootstrapper EXE installer. But I want to have the ability to launch the application after installation. I know there's a way to achieve this by adding a 'launch' button. Then there will be two buttons when the installation succeeded. But is there a way to add a custom action to the 'close' button or remove the 'close' button?
Thanks!
Wix Burn UI is not a powerful for now, as far I know, however you can do anything you want, it's just matter of time you're willing to put in. Burn UI does not play well with properties for now, you can't even create custom TextBox to fill up a property, but if time is not a problem:
1) You can download Wix source, and modify everything the way you want it to be, making it reusable.
2) You can create custom WiX Burn UI(I like WPF+MVVM), which shouldn't take too much time, and should be very interesting. There you can include anything your soul wants.
3) You can disable WIx BURN UI and use MSI internalUI,
this is good example; http://wixtoolset.org/documentation/manual/v3/howtos/ui_and_localization/run_program_after_install.html
That will allow you to configfure everything, such as "Close" button having a custom action. + removing Close button by overriding custom dialogs(you can download them from wix, *.THM files)
No, neither of those is possible.

Read only Edit Control

I have an edit control that I would like to be read-only. I have set the attribute Disabled="yes" however my user cannot copy and paste from the control.
Is there any way around this?
Thanks
Unfortunately, the Windows Installer does not support the read-only bit in the Edit control and, as you found, making the control disabled prevents all interaction with the control. This is one of many examples where the built in MSI UI is very limited.

Warn User If Internet Speed is slow

I am creating a installer using WIX, The requirement here is that when the user clicks on the next button on the license agreement dialog, I want to check the Internet spped of the user. If it is less than 1 mbps, I should show a message to the user that "the internet speed is less than the minimum required by the application. Do you still want to go ahead with the Installation?" This messagebox contains two buttons "Yes" and "No". If user clicks on Yes, I continue with the Installation. On click of "No", the Installation aborts.
I think this is impossible or may be quite difficult to do it with WIX. So thought of writing a C# Application, which will check the internet speed and show the dialog to the user. I want to launch this utility to be launched in the UI Sequence. Then capture whether user clicked on Yes or No, If user clicks on Yes, i continue with the Installation otherwise Installation aborts.
Note- When user clicks either Yes or No, the C# Application closes.
How can I :
1. Embed C# App in msi
2. Launch it in UI Sequence
3. Get the user action result and proceed accordingly.
Please help, it is urgent.
First, I question the value of doing this in an installer. Internet speed is highly variable and a user is just going to click yes and proceed. Any kind of system status check should really be inside your application.
But if you really want to have a Managed Custom Action in your installer that can set a property then you want to check out Deployment Tools Foundation.
WiX and DTF: Introduction
Deployment Tools Foundation (DTF) Managed Custom Actions
How long will it take for your code to determine internet speed? If it can do it in a few seconds then you can consider scheduling the custom action between CostInitialize and InstallFinalize. The CA will set a property and then you can use that property in your UI to decide if a warnign dialog that you author should be shown or not.
Again though, I have to suggest that this isn't a good idea.

how to create custom UI for MSI in Wix?

I want to enhance my UI dialog of MSI using Wix. Can you point out me the best tool which provides an option to create such UI? Also, is there possible to show animated GIF image in MSI wizard
You want to look into "Embedded UI" (also sometimes called "External UI"). But once you go down this path, you have to provide the entire UI, and nothing in InstallUISequence gets run (like Costing).
There is a sample Embedded UI in Wix that demos a WPF UI and a prgress bar that reacts to what is going on in the MSI installation.
A middle-ground option is to create some Custom Actions that display a UI. I do this to accomplish things like looking up a user in AD, search for SQL Servers on the network, browsing for databases in a SQL Server, and browsing for SSL Certificates. You can then trigger these custom actions through a push button.
As far as animated GIFs go - as far as I know they are not supported.
You could look at using burn
http://robmensching.com/blog/posts/2009/7/14/Lets-talk-about-Burn