Solved QtIFW: Maintenance.exe does not start (no uninstall, no update)
-
@Schenk said in QtIFW: Maintenance.exe does not start (no uninstall, no update):
if(installer.isUninstaller()){
var silent = installer.value("silent");
if(silent == 1 || silent=="true" && silent != null){
installer.autoRejectMessageBoxes;
gui.setSilent(true);
isSilent = 1;
}Is it required???
-
To be honest, I do not know. :/ I will test it.
Normaly, the if condition is not called in the uninstaller Routine.... -
@Schenk said in QtIFW: Maintenance.exe does not start (no uninstall, no update):
I do not know.
Can you keep only required code and test them ?
-
I tested it with
function Controller(){ /* if(installer.isInstaller()){ var silent = installer.value("silent"); if(silent == 1 || silent=="true" && silent != null){ installer.autoRejectMessageBoxes; gui.setSilent(true); isSilent = 1; } } if(installer.isUninstaller()){ var silent = installer.value("silent"); if(silent == 1 || silent=="true" && silent != null){ installer.autoRejectMessageBoxes; gui.setSilent(true); isSilent = 1; } } */ }
and with
function Controller(){ /* if(installer.isInstaller()){ var silent = installer.value("silent"); if(silent == 1 || silent=="true" && silent != null){ installer.autoRejectMessageBoxes; gui.setSilent(true); isSilent = 1; } } */ if(installer.isUninstaller()){ var silent = installer.value("silent"); if(silent == 1 || silent=="true" && silent != null){ installer.autoRejectMessageBoxes; gui.setSilent(true); isSilent = 1; } } }
Even if i stop all processes which have access to the files in the installation folder, it will not work.
The uninstaller-process does not start. Even if i call it with or without admin rights from explorer; or from an admin console withuninstaller.exe silent=1 uninstaller.exe silent==1 uninstaller.exe "silent=1" uninstaller.exe silent=true uninstaller.exe silent="true" uninstaller.exe "silent=true"
there is no success and no process in the task manager.
How can i delete the installation manually? I can delete the files manually, but the appliacation still exists in the windows Program & Features table. -
@Schenk said in QtIFW: Maintenance.exe does not start (no uninstall, no update):
How can i delete the installation manually?
There is an
MaintenanceTool.exe
which uninstalls for you.@Schenk said in QtIFW: Maintenance.exe does not start (no uninstall, no update):
I tested it with
Can you just try with this minimum steps required to create an installer and check?
-
@Ratzz The maintanance.exe does not work. This is why i created this thread. But i found the problem, but not really a solution to fix it.
The uninstaller.exe /maintenance.exe contained a ".". After renaming the .dat., .exe and ini-files, it can be used to uninstall the application, but no update and no separate items. -
@Schenk said in QtIFW: Maintenance.exe does not start (no uninstall, no update):
After renaming the .dat., .exe and ini-files
Renaming may be bad idea.
@Ratzz said in QtIFW: Maintenance.exe does not start (no uninstall, no update):
Can you just try with this minimum steps required to create an installer and check?
can you please make a sample instead of messing up all together ?http://doc.qt.io/qtinstallerframework/ifw-tutorial.html
-
@Ratzz Hi Ratzz,
everthing is good ;)
@Ratzz said in QtIFW: Maintenance.exe does not start (no uninstall, no update):
@Ratzz said in QtIFW: Maintenance.exe does not start (no uninstall, no update):
Can you just try with this minimum steps required to create an installer and check?
can you please make a sample instead of messing up all together ?http://doc.qt.io/qtinstallerframework/ifw-tutorial.html
I did the minium sample and it works fine. So i analysed it to find my fault.
@Ratzz said in QtIFW: Maintenance.exe does not start (no uninstall, no update):
@Schenk said in QtIFW: Maintenance.exe does not start (no uninstall, no update):
After renaming the .dat., .exe and ini-files
Renaming may be bad idea.
My config file contained the following line and the generated uninstaller.exe (MyApp2.0_Maintenance.exe) it will not work, because of the dot (" . ") in the description.
[...] <MaintenanceToolName>MyApp2.0_Maintenance</MaintenanceToolName> [...]
I had to rename the files, so that i am able to delete the existing installation and provide a new, functional version of my installer.
-
@Schenk
So is the thread solved? -
@Ratzz said in QtIFW: Maintenance.exe does not start (no uninstall, no update):
@Schenk
So is the thread solved?YES!