oleg-shilo / wixsharp

Framework for building a complete MSI or WiX source code by using script files written with C# syntax.
MIT License
1.12k stars 176 forks source link

Bootstrapper with Custom UI for PackageGroupRef #348

Closed sadam2 closed 6 years ago

sadam2 commented 6 years ago

Sorry for my bad English. I have PackageGroupRef("NetFx40Web") in my bootstrapper. Declared before my two msi, which I want to install. I made custom UI for bootsrapper based on WixBootstrapper_UI sample. Net Framework installs properly. It have proper localization. But I want to change it - fonts have too big size and texts are cutted. Is possible to change that UI? Maybe even to WPF?

oleg-shilo commented 6 years ago

Hi there,

Yes you can change the appearance of the bootstrapper app. The sampe you have mantioned comes with the full source code so you can change any part of the UI:

image

sadam2 commented 6 years ago

Hi, It is honour for me to talk with You. Seems we have misunderstanding. We can see that screen (which You show) after calling MainView(this).ShowDialog(). But in setup.cs we have: obraz means first we want to install Net Framework if is needed. And when I am testing (with my name of product of course) on Windows XP I have such screen: obraz before that screen about which You are writing. How to change the window which ask user if he want to install or not Net Framework?

oleg-shilo commented 6 years ago

Yes it seems to be misunderstanding. :) You said that the example you referred had only a single dialog defined, which is that BA WPF window. Your screenshot makes me thing that it is a UI of one of the Bootstrapper's packages. If it is the case then any modifications of this package UI are to be done outside of bootstrapper (see UI customization on Wiki).

However if the dialog you referring to is the UI that Burn shows during downloading .NET then you are out of luck. WiX provided no customization path (as far as I know).

In any case reading these notes: https://github.com/oleg-shilo/wixsharp/wiki/Wix%23-Bootstrapper-(Burn)-integration-notes may give you a better understanding of the challenge you are facing.

sadam2 commented 6 years ago

Thank you very much for the third page. I saw your bootstrapers samples. They show what we can. And they don't (near) show, what we can't. Your new, third page in documentation is very usefull.

God bless you :smiley: . You are realy hard working man.

oleg-shilo commented 6 years ago

Amen to that 😄

sadam2 commented 6 years ago

From @oleg-shilo:

However if the dialog you referring to is the UI that Burn shows during downloading .NET then you are out of luck. WiX provided no customization path (as far as I know).

Yes, it is that UI. And seems I am out of luck. Is any way to delete the screen from ManagedBA? I'm thinking about installing .NET using own winform UI.

oleg-shilo commented 6 years ago

Is any way to delete the screen from ManagedBA?

No there is no way to change it. Please make no mistake, this screen (dialog) is not part of your ManagedBA. This iis something that WiX team has developed to entertain the user during downloading .NET and they provided no way for customization. And the actual ManagedBA is initialized and displayed only after .NET is downloaded and installed. Thus it's not only WixShar but even raw WiX cannot help you.

Saying that, if you do find the way around then please share it here. There can be apossibility to integrate it in WixSharp.

sadam2 commented 6 years ago

This is something that WiX team has developed

Yes. I understood that before. Now I'm thinking about simple installer which installs .NET (if is needed) and after that calls ManagedBA. I was asking yesterday because I have lesson from my father: Always is somebody, who opens closed doors.