Page 1 of 1

[RESOLVED] tis-shotcut package

Published: April 24, 2024 - 3:45 PM
by gaelds
Good morning,
I've been getting errors on dozens of machines since updating the Shotcut package to version 24.2.29:

Code: Select all

Traceback (most recent call last):
  File "C:\wapt\common.py", line 4234, in install_wapt
    exitstatus = setup.install()
  File "C:\WINDOWS\TEMP\waptdxx7y0ci\setup.py", line 12, in install
  File "C:\wapt\common.py", line 3990, in run
    return ensure_unicode(run(*arg, pidlist=self.pidlist,**args))
  File "C:\wapt\waptutils.py", line 2176, in run
    raise CalledProcessErrorOutput(proc.returncode, cmd, ''.join(output))
waptutils.CalledProcessErrorOutput: Command '"C:\\Program Files\\Shotcut\\uninstall.exe" /S' returned non-zero exit status 1.
Output:Le chemin d'accès spécifié est introuvable.

CalledProcessErrorOutput: Command '"C:\\Program Files\\Shotcut\\uninstall.exe" /S' returned non-zero exit status 1.
Output:Le chemin d'accès spécifié est introuvable.
The console indicates several versions of the software are installed:
2024-04-24 15_40_34-Window.jpg
2024-04-24 15_40_34-Window.jpg (24.19 KB) Viewed 4206 times
In reality, the directory "C:\Program Files\Shotcut\" no longer exists. By manually uninstalling the two lines in the control panel, the package eventually installs.

Re: Tis-Shotcut Package

Published: April 24, 2024 - 4:31 PM
by dcardon
Hello Gaël,

It's strange because the installation keys are still in the registry even though the referenced software is no longer there... There must have been some manual manipulation in the background...

You can add a try/except/pass block to ignore the error

Code: Select all

try:
    run('%s /S' % soft["uninstall_string"])
except waptutils.CalledProcessErrorOutput:
    # supprimer la clef de registre correspondante et le répertoire correpodant
    pass
But then you'll have to manually delete the corresponding registry keys and check if the directory is still there to delete it if necessary.

Sincerely,

Denis

Re: Tis-Shotcut Package

Published: April 25, 2024 - 11:01 AM
by gaelds
No, nothing is done manually, but I think I was using a custom package for older versions of Shotcut (before the TIS package was available). I don't know why it didn't uninstall completely... For the problematic PCs, I created a temporary package that removed the registry keys.

Re: Tis-Shotcut Package

Published: April 25, 2024 - 11:33 AM
by dcardon
Hi Gaël,

thanks for the feedback. Yes, it's good not to do anything manually when you have a WAPT client available. It could also be the installers themselves that are causing problems. In that case, you need to modify the `def uninstall()` function to add the necessary code to clean it up if needed.

Thanks for the feedback, I'm marking the topic as RESOLVED.

Best regards,

Denis