[RESOLVED] tis-shotcut package

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

April 24, 2024 - 3:45 PM

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 4204 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.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

April 24, 2024 - 4:31 PM

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
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

April 25, 2024 - 11:01

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.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

April 25, 2024 - 11:33

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
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked