From a06e776014afbc94ca63a212d03c7779c8851716 Mon Sep 17 00:00:00 2001 From: Joaquin Date: Sun, 23 Apr 2023 01:03:49 +0300 Subject: [PATCH] [ux] Add references to settings app Launch system settings activation pannel on activation and provide "I don't know my windows edition" button on version select that launches menu containing windows version and edition --- main.js | 8 +++++++- package.json | 2 +- webPage/windows/setIPK/edt/10/index.html | 4 ++++ webPage/windows/setIPK/edt/7/index.html | 5 +++-- webPage/windows/setIPK/edt/8/index.html | 1 + 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/main.js b/main.js index c1039a7..4506d7e 100644 --- a/main.js +++ b/main.js @@ -30,7 +30,7 @@ function getCertDetails(){ } function activateWindows(){ - exec("powershell start-process powershell -verb runas {slmgr /skms " + kmsServer + " ; slmgr /ipk " + windowsProductKey + " ; sleep 3 ; slmgr /ato}") + exec("powershell start-process powershell -verb runas {slmgr /skms " + kmsServer + " ; slmgr /ipk " + windowsProductKey + " ; sleep 3 ; slmgr /ato ; sleep 1 ; start ms-settings:activation}") //dialog.showErrorBox('Transparency Mode Command:', 'RUN THIS: powershell start-process powershell -verb runas {slmgr /skms ' + kmsServer + ' ; slmgr /ipk ' + productKey + ' ; sleep 3 ; slmgr /ato}') } @@ -67,6 +67,10 @@ function uninstallCert(){ console.log("uninstalled cert") } +function activationSettings(){ + exec("start ms-settings:activation"); +} + ipcMain.on("getCertDetails", getCertDetails) ipcMain.on("setKMS", (event, response) => { @@ -93,6 +97,8 @@ ipcMain.on("uninstallCert", uninstallCert) ipcMain.on("openServerPage", openServerPage) +ipcMain.on("activationSettings", activationSettings) + app.whenReady().then(() => { createWindow() }) diff --git a/package.json b/package.json index 9e9d112..afb3e6b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "univator", - "version": "1.1.2", + "version": "1.1.4", "description": "Microsoft Product Activator", "main": "main.js", "scripts": { diff --git a/webPage/windows/setIPK/edt/10/index.html b/webPage/windows/setIPK/edt/10/index.html index 97f20c6..eaabe07 100644 --- a/webPage/windows/setIPK/edt/10/index.html +++ b/webPage/windows/setIPK/edt/10/index.html @@ -16,6 +16,7 @@

Product Key Gen

Select the appropriate windows edition you have

Press the button to automatically generate and install a generic KMS product key.

+

I don't know my windows edition

@@ -66,6 +67,9 @@ ipcRenderer.send("setIPK", "NPPR9-FWDCX-D2C8J-H872K-2YT43"); location.href = "../../../activate/index.html"; }); + document.getElementById("settings").addEventListener("click", function(){ + ipcRenderer.send("activationSettings"); + }); diff --git a/webPage/windows/setIPK/edt/7/index.html b/webPage/windows/setIPK/edt/7/index.html index 03602f8..ec7e682 100644 --- a/webPage/windows/setIPK/edt/7/index.html +++ b/webPage/windows/setIPK/edt/7/index.html @@ -16,10 +16,11 @@

Product Key Gen

Select the appropriate windows edition you have

Press the button to automatically generate and install a generic KMS product key. Windows 7 Home and Ultimate are not supported, but can be easily activated via phone for free using generic license keys.

+

I don't know my windows edition

- - + +
diff --git a/webPage/windows/setIPK/edt/8/index.html b/webPage/windows/setIPK/edt/8/index.html index 2f9dc19..dde7791 100644 --- a/webPage/windows/setIPK/edt/8/index.html +++ b/webPage/windows/setIPK/edt/8/index.html @@ -16,6 +16,7 @@

Product Key Gen

Select the appropriate windows edition you have

Press the button to automatically generate and install a generic KMS product key.

+

I don't know my windows edition