This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues/pull-requests.
portapy/scripts/uninstall.js

15 lines
422 B
JavaScript

const path = require('path');
const fs = require('fs');
let installerFilename = fs.readFileSync('.installerLocation').toString();
let pythonInstallerPath = path.resolve(__dirname, 'Python-Installer', installerFilename);
// let pythonPath = path.resolve(__dirname, 'Python');
// fs.rmdirSync(pythonPath);
// require('child_process').execSync(`${pythonInstallerPath} /passive /uninstall`, {
// stdio: 'inherit'
// });