[SOLVED] Winrar remove not working
Published: June 3, 2024 - 12:06 PM
Good morning,
In order to test the creation of packages, I wanted to do a test with a software that seems quite simple in terms of installation: WinRar.
Following the package creation procedure in the YouTube video "Creating, configuring and deploying an exe package with WAPT", I therefore went through "Generating a package template" in the WAPT console.
When editing the setup.py file, I retrieved the uninstallation key via a command prompt:
I then entered this information into the install() function, resulting in the following setup.py file:
When I run WAPT:install in the PyScripter project, Winrar installs correctly on my host machine BUT no shortcut is added to my current user's desktop.
When I run WAPT:remove, it doesn't uninstall WinRAR from my host, and I don't understand why
Below are the console outputs following the run of install and then remove:
In order to test the creation of packages, I wanted to do a test with a software that seems quite simple in terms of installation: WinRar.
Following the package creation procedure in the YouTube video "Creating, configuring and deploying an exe package with WAPT", I therefore went through "Generating a package template" in the WAPT console.
When editing the setup.py file, I retrieved the uninstallation key via a command prompt:
Code: Select all
C:\Users\seb>wapt-get list-registry winrar
Using config file: E:\wapt\wapt-get.ini
UninstallKey Software Version Uninstallstring
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
WinRAR archiver WinRAR 7.01 (64-bit) 7.01.0 C:\Program Files\WinRAR\uninstall.exe
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
def install():
# Declaring local variables
# Installing the software
print("Installing: winrar-x64-701fr.exe")
install_exe_if_needed('winrar-x64-701fr.exe',
silentflags='/S',
key='WinRAR archiver',
min_version='7.1.0'
)
create_desktop_shortcut(r'WinRaR',target=r'C:\Program Files\WinRAR\WinRAR.exe')
When I run WAPT:remove, it doesn't uninstall WinRAR from my host, and I don't understand why
Below are the console outputs following the run of install and then remove:
Code: Select all
*** Remote Interpreter Reinitialized ***
Command Line : install "C:\waptdev\pilote-winrar_7.1.0_Windows_PROD-wapt\WAPT\.."
Using config file: E:\wapt\wapt-get.ini
Installing WAPT files C:\waptdev\pilote-winrar_7.1.0_Windows_PROD-wapt
Installing: winrar-x64-701fr.exe
Installing: winrar-x64-701fr.exe (7.1.0)
Results :
=== install packages ===
C:\waptdev\pilote-winrar_7.1.0_Windows_PROD-wapt | pilote-winrar (7.1.0-0)
>>>
*** Remote Interpreter Reinitialized ***
Command Line : remove "C:\waptdev\pilote-winrar_7.1.0_Windows_PROD-wapt\WAPT\.."
Using config file: E:\wapt\wapt-get.ini
Removing C:\waptdev\pilote-winrar_7.1.0_Windows_PROD-wapt\WAPT\.. ...
=== Removed packages ===
pilote-winrar