From adefc7bfc59a60334abc2a6c8f230c95e617ef42 Mon Sep 17 00:00:00 2001 From: Marcus Date: Tue, 30 Oct 2018 20:19:30 -0400 Subject: [PATCH] 0.0.2 --- package.json | 4 ++-- uninstall.js | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 085a3ca..aed7ffc 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "portapy", - "version": "0.0.1", + "version": "0.0.2", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "postinstall": "node postinstall.js", - "uninstall": "node uninstall.js" + "preuninstall": "node uninstall.js" }, "bin": { "python": "bin/python.js" diff --git a/uninstall.js b/uninstall.js index 994f7d9..0887044 100644 --- a/uninstall.js +++ b/uninstall.js @@ -1,5 +1,6 @@ const path = require('path'); -let pythonPath = path.resolve(__dirname, 'Python', 'python.exe'); - -require('child_process').exec(`${pythonPath} /passive /uninstall`); +let pythonPath = path.resolve(__dirname, 'Python-Installer', 'python-3.7.1.exe'); +require('child_process').execSync(`${pythonPath} /passive /uninstall`, { + stdio: 'inherit' +}); \ No newline at end of file