<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Can you addWizardPage on Uninstaller (QtInstallerFramework)?]]></title><description><![CDATA[<p dir="auto">Hi, I am using <code>QtInstallerFramework</code> and I am trying to add custom page when <strong>uninstalling</strong> the app.</p>
<p dir="auto">I have <code>custompage.ui</code>  file(simple text) and I am adding it in my <code>package.xml</code>:</p>
<pre><code>&lt;UserInterfaces&gt;
        &lt;UserInterface&gt;custompage.ui&lt;/UserInterface&gt;
&lt;/UserInterfaces&gt;
</code></pre>
<p dir="auto">And this is how I am using it in my <code>componentscript.js</code>:</p>
<pre><code>Component.prototype.componentLoaded = function ()
{
    installer.addWizardPage(component, "CustomPage", QInstaller.ReadyForInstallation)
}
</code></pre>
<p dir="auto">The problem is that the page is displayed only when I install the application. When I uninstall it, CustomPage is not displayed.</p>
<p dir="auto">Also, with another approach, if I try to add the customized page in my <code>controlscript.js</code> like this:</p>
<pre><code>Controller.prototype.ReadyForInstallationPageCallback = function ()
{
    try {
        installer.addWizardPage(component, "CustomPage", QInstaller.ReadyForInstallation);
    }
    catch (e) {
        QMessageBox.warning("QMessageBox", "", e, QMessageBox.Ok);
    }
}
</code></pre>
<p dir="auto">I am getting this error:</p>
<pre><code>ReferenceError: component is not defined
</code></pre>
<p dir="auto">So, it looks like the component is not loaded at all when the application is uninstalled.<br />
And from <a href="https://doc.qt.io/qtinstallerframework/ifw-customizing-installers.html#adding-pages" target="_blank" rel="noopener noreferrer nofollow ugc">Qt documentation</a> we can add custom pages only in components xml file with <code>&lt;UserInterfaces&gt;</code> tag.<br />
Does this mean that we can not use custom gui pages in the uninstaller or I am missing something?</p>
]]></description><link>https://forum.qt.io/topic/155099/can-you-addwizardpage-on-uninstaller-qtinstallerframework</link><generator>RSS for Node</generator><lastBuildDate>Thu, 04 Jun 2026 10:28:00 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/155099.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 05 Mar 2024 23:31:26 GMT</pubDate><ttl>60</ttl></channel></rss>