uninstall

Python: execute action at package uninstall

回眸只為那壹抹淺笑 提交于 2019-11-28 12:30:42
问题 In one of my python project I create a config folder in the user directory. However, when the package is uninstalled via pip, the config folder remains still. There isn't any confidential data so this isn't a security problem but I would like to delete it for user convenience. My question is, is there any way of doing it properly? 回答1: Python wheels — and even less eggs or sdists — are not full-blown packages, they don't have post-install or pre-uninstall script. And they probably shouldn't.

how to cleanly uninstall my python packages with pip3 or any other way?

限于喜欢 提交于 2019-11-28 11:15:24
this is my setup.py file for installing my python program, after the installation using python3 setup.py install an entry to my program was created named testmain , when i did pip3 freeze it showed abc==0.1 in its output ,so i uninstalled it using pip3 with pip3 uninstall abc , though the packages were uninstalled but there still existed the entry testmain on my path , is there a way that pip3 also removes this entry during the uninstall or any other way that i can cleanly uninstall my programs under same scenario ? from setuptools import setup setup(name='abc', version='0.1', description=

How to prevent uninstaller elevating for Standard Windows 10 user?

和自甴很熟 提交于 2019-11-28 11:14:14
We have an x86 Win32 desktop application. When the installer is run by a Standard (non-Admin) user, we avoid elevating and/or showing a UAC prompt and install under C:\Users\username\AppData\Roaming\... instead of the common Program Files directory. On Windows 10, when our uninstaller is launched from Control Panel -> Programs -> Programs and Features , no UAC prompt is shown and the uninstaller runs without elevating. This is the desired behaviour. When the same uninstaller is launched from Start -> Settings -> System -> Apps & features , a UAC prompt is shown. (The same behaviour can be seen

Uninstalling a ClickOnce application silently

匆匆过客 提交于 2019-11-28 09:53:10
We have an production application that is deployed using Visual Studio's built-in ClickOnce deployment tool. I am writing a batch file to uninstall the application: rundll32.exe dfshim.dll,ShArpMaintain AppName.application, Culture=neutral, PublicKeyToken=XXXXXX, processorArchitecture=x86 The batch file works and the application's uninstall is called. However, I'm looking to do this silently. I have tried /Q /q /S /s /Silent but with no joy. How can I do this? I do not want to hide the batch file window. Only the ClickOnce window. Since there seemed to be no good solution for this, I

Finding ALL installed applications with PowerShell?

断了今生、忘了曾经 提交于 2019-11-28 09:26:29
问题 I am trying to use Windows PowerShell 2.0 to find an installed application. I have tried two methods, one using WMI and one using the Registry. Both methods are able to bring up a large list of installed applications and components, however neither one seems to bring up the application I am interested in. I am specifically looking for CruiseControl.NET. It appears in the list of applications in the Programs and Features control panel applet. I know for a fact that it is currently installed,

How to catch application uninstalling on device and let server know about this (iOS/Android)

寵の児 提交于 2019-11-28 08:43:20
Problem Description: We have a service which has applications for main mobile OS’s. We use push notifications. When user is log in, we store his device authorization data (lets say token) for later use in the push service. The problem is about few device authorizations for one user and properly keeping them valid when the user uninstall the application. Example: I gave my login to system to a few people, in case to try it. They logged in through the mob. application and the system automatically add a few device authorizations into database (tokens). So now we have N device tokens for 1 user.

Installing application and uninstalling does not remove completly - Android Studio

大城市里の小女人 提交于 2019-11-28 08:04:32
问题 I got a strange issue in few of my recent applications. What I did: Installing an application either directly using USB cable with Android Studio . Or downloading and installing signed APK through my local server. Application works fine in all aspects Uninstalling the application by long press and dragging the app icon to Uninstall icon Or uninstalling through Settings -> Apps -> Uninstall by selecting the app Problem: After uninstall , under Settings -> Apps -> Still the app is shown as

How to uninstall with msiexec using product id guid without .msi file present

对着背影说爱祢 提交于 2019-11-28 05:51:42
I'm trying to automate the uninstallation of packages created using WiX for the purposes of changing the installed software stack & configuration without reprovisioning a whole OS. Eventually I'll use powershell scripting to do this but at the moment I can't seem to get my test package to uninstall interactively with cmd. If I run: msiexec /x '{A4BFF20C-A21E-4720-88E5-79D5A5AEB2E8}' msiexec /x A4BFF20C-A21E-4720-88E5-79D5A5AEB2E8 I get: "The installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this

Uninstalling rails and gems, getting error \"cannot uninstall, check 'gem list -d …'

左心房为你撑大大i 提交于 2019-11-28 05:06:27
I'm going to start with the usual noob line, "I'm new to rails". Oh, and I'm running Mac OSX 10.6.4 I've been following a bunch of guides to get set up, specifically these two here and here . The guides are great, the reason I'm using the second one is because of RVM and the reason I'm using the first is for MYSQL. Anyway, when I started, I wasn't following the directions completely and so after I installed RVM, for some reason I installed rails with sudo gem install rails -v 2.3.8 because thats the version I need. So... I realized I was using the system ruby, and wasn't taking advantage of

How to delete a folder when user selects uninstall my application in android

冷暖自知 提交于 2019-11-28 04:11:34
问题 I would like to know about how to delete a folder once user select uninstall button for my application. I want it by programmatically is there any chance to do it... If so let me know possible solution for it. thanks in advance. 回答1: If you created any folders on a device's external storage... there is no way for you to call code when the user uninstalls your app. Certain things are removed automatically (databases, anything written to Internal Storage), but not folders on external storage.