开发者

WIX how to open custom UI

I have my own UI for the installation (using SharpSetup). The problem is, that when I double click the msi file the UI doesn't appear => Same when I uninstall it. To see the UI I have to double click my UI progject => gui.exe

What I'm looking for is:

is it possible to start the UI when I double click the ms开发者_Python百科i file? if it's possible=> how can I do this and what do I have to include that the UI also appears if I uninstall it (add/remove Programs) ???

thanks


You have to use the EmbeddedUI element in order to specify the file where you have the custom UI.

Example (where the custom UI is inside a dll):

<UI>
    <EmbeddedUI Id="EmbeddedUI.dll" SourceFile="..\EmbeddedUI\EmbeddedUI.dll"/>
</UI>

Once you do that, you'll have to provide dialogs for every action, since none of the default stock ones will run anymore.

About the uninstall, if i remember correctly the Custom UI will show up only in the repair process, so you could trigger a Repair instead of uninstall to show the ui and uninstall from there. The Uninstall process directly should uninstall the application with the default UI (progress bar with uninstalling)

According to MSDN : "The custom UI DLL, in this example embedui.dll, should export the user-defined InitializeEmbeddedUI, EmbeddedUIHandler, and ShutdownEmbeddedUI functions."

You can see more information here.


SharpSetup uses external UI, not embedded UI. In typical scenario the msi file does not contain any UI so what you are observing is very much expected. However, you should not deploy the standalone .msi file to the client, only the Installer.exe file that contains all required files (including the .msi file and gui.exe).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜