<?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[Qt Installer Framework - Custom Page and Custom Operation Example]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I am trying to use the Installer Framework, I read the documentation and the examples, but I can't figure out some things. I miss example for some cases.</p>
<p dir="auto">I want to make a custom operation (for example, writes "hello world" to a file). In the Installer, I want a custom page with a button, a click sould execute the operation.</p>
<p dir="auto">First, I wrote the operation in C++ ( as shown in "custom operation documentation":<a href="http://doc-snapshot.qt-project.org/qtifw-1.3/scripting.html#registering-custom-operations" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc-snapshot.qt-project.org/qtifw-1.3/scripting.html#registering-custom-operations</a> ), I compiled the Installer Framework after adding the operation.<br />
In the Installer project, I created a UI with the designer and added it to the product in the packages section, I loaded the UI in a qs script. This works, the new page appears in the installer. now the questions:</p>
<ul>
<li>In the UI, there is a button, how do I connect to the click event in the qs script?</li>
<li>how do I execute my new operation correctly?</li>
</ul>
<p dir="auto">I don't know if my operation even works.  I tried to execute the operation manually by calling:<br />
@MyInstaller.exe --runoperation "MyOperation"@</p>
<p dir="auto">the installer generated a logfile with the following content:</p>
<p dir="auto">@<br />
Operations end: 16<br />
Resource count: 1<br />
Data block size: 17779381<br />
Magic marker: 302133811<br />
Magic cookie: 14007050384008702200<br />
Index size: 48<br />
End of data: 30592181<br />
Number of operations: 0<br />
@</p>
<p dir="auto">according to the last line, I thing the operation was not executed.</p>
<p dir="auto">Is there somewhere a running example for operations? (and please no links to the documentation, there is only a snippet of code but no word how to compile it...)</p>
]]></description><link>https://forum.qt.io/topic/33509/qt-installer-framework-custom-page-and-custom-operation-example</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 14:00:40 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/33509.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Oct 2013 08:33:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt Installer Framework - Custom Page and Custom Operation Example on Fri, 11 Apr 2014 06:21:22 GMT]]></title><description><![CDATA[<p dir="auto">Dear all,<br />
I have the same problem.<br />
Is there a running example?</p>
<p dir="auto">Thx.</p>
]]></description><link>https://forum.qt.io/post/222837</link><guid isPermaLink="true">https://forum.qt.io/post/222837</guid><dc:creator><![CDATA[Camillo]]></dc:creator><pubDate>Fri, 11 Apr 2014 06:21:22 GMT</pubDate></item></channel></rss>