Page 1 of 1

Problem uninstalling Crystal Reports package

Published: July 23, 2021 - 5:08 PM
by MorganeDeveho
Good morning,

I am having trouble uninstalling one of my packages.
Indeed, both installation and uninstallation are done through the same executable file.

The installation is very quiet.
But, when I start the uninstallation, a popup appears so that I can select the action I want to perform (remove in this case).

Here is the complete code:

Code: Select all

uninstallkey = ['{39D270D0-DD9C-4B8B-A696-EBFE7CFFFC2E}']

def install():
        # installing the package
    install_exe_if_needed('.\CrystalReports\setup.exe',
        silentflags='-r response.ini',
        key='{39D270D0-DD9C-4B8B-A696-EBFE7CFFFC2E}',
        min_version='14.1.4.1327',
        timeout=600
    )

uninstallkey.remove('{39D270D0-DD9C-4B8B-A696-EBFE7CFFFC2E}')

def uninstall():
run(r'"C:\Program Files (x86)\SAP BusinessObjects\setup.exe" -q -u product.crystalreports-4.0-core-32',
timeout=600)
pass
The uninstallation command operates silently in cmd.

Re: Crystal Reports package uninstallation problem

Published: July 26, 2021 - 5:11 PM
by dcardon
It seems to me there are several indentation issues. Could you confirm that this is indeed the case and correct your post above?

Then we can look at the other problems. Often it's a LocalSystem vs. Administrator context issue.

Regards,

Denis

Re: Crystal Reports package uninstallation problem

Published: July 26, 2021 - 5:33 PM
by MorganeDeveho
I didn't understand your answer. :-)

Re: Crystal Reports package uninstallation problem

Published: July 27, 2021 - 5:19 PM
by MorganeDeveho
I just modified the script

Code: Select all

uninstallkey = ['{39D270D0-DD9C-4B8B-A696-EBFE7CFFFC2E}']

def install():
        # installing the package
    install_exe_if_needed('.\CrystalReports\setup.exe',
        silentflags='-r response.ini',
        key='{39D270D0-DD9C-4B8B-A696-EBFE7CFFFC2E}',
        min_version='14.1.4.1327',
        timeout=600
    )

uninstallkey.remove('{39D270D0-DD9C-4B8B-A696-EBFE7CFFFC2E}')

def uninstall():
    run('"C:\Program Files (x86)\SAP BusinessObjects\setup.exe" -q -u product.crystalreports-4.0-core-32',
    timeout=600)
    pass
Strangely, when I test it with PyScripter, the uninstall works silently but the remove always displays the pop-up.