10

I'm using the Qt Installer Framework (2.0.3) to create an installer my program. Everything works fine, and my program installs perfectly.

However, I'd like to remove (or not install at all) the maintenance tool that is included by default. I have read the documentation and examples, and have searched the web but I haven't found any solutions to this problem. The closest thing I have found is the "MaintenanceToolName" element in the configuration file. I would have also expected an option to prevent the maintenance tool from being installed altogether. It would also be great if I could remove the Licenses folder too.

So in short: Is there a way to remove or prevent the maintenance tool (and its associated files) from being installed?

Thanks!

Tsherr
  • 363
  • 5
  • 17

2 Answers2

1

No. I have looked through the source code, and although there is a tempting m_needToWriteMaintenanceTool there isn't any way to stop it being written.

Timmmm
  • 88,195
  • 71
  • 364
  • 509
0

I think you will have to build it from source in order to disable that option Go to the function void PackageManagerCore::writeMaintenanceTool() and and the function void PackageManagerCorePrivate::writeMaintenanceToolBinary() and just add a return in the beginning of the function to disable it and the maintenance tool won't be included.

Worked for me, but it didn't reduce the size of the resulting installer as I was expecting though.

HBatalha
  • 245
  • 4
  • 17