summaryrefslogtreecommitdiff
path: root/scripts/setup/windows/post_inst.ps1
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-03-20 22:31:41 +0800
committer魏曹先生 <1992414357@qq.com>2026-03-20 22:32:14 +0800
commitce77780ebcf548b0d823af7ae240364a56fa321a (patch)
tree4f71b68f944b143c0e0af1010bf189719d6e834c /scripts/setup/windows/post_inst.ps1
parentab6be7968b25afb57fc428695693484ad8576718 (diff)
Remove legacy jv and jvv binaries and related filesjvn_0.1.1
Diffstat (limited to 'scripts/setup/windows/post_inst.ps1')
-rw-r--r--scripts/setup/windows/post_inst.ps119
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/setup/windows/post_inst.ps1 b/scripts/setup/windows/post_inst.ps1
new file mode 100644
index 0000000..4cb4772
--- /dev/null
+++ b/scripts/setup/windows/post_inst.ps1
@@ -0,0 +1,19 @@
+# Execute uninstall script, attempt to remove leftover PROFILE entries
+. ".\uninst.ps1"
+
+# Calculate directories
+$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
+$parentDir = Split-Path -Parent $scriptDir
+
+# Write configuration to PROFILE
+Add-Content -Path $PROFILE -Value "# JustEnoughVCS - Begin #"
+Add-Content -Path $PROFILE -Value ". `"$parentDir\jv_cli.ps1`""
+Add-Content -Path $PROFILE -Value "# JustEnoughVCS - End #"
+
+# Check dependencies, if OpenSSL is not found, show a prompt
+try {
+ $null = Get-Command openssl -ErrorAction Stop
+} catch {
+ $wshell = New-Object -ComObject Wscript.Shell
+ $wshell.Popup("OpenSSL was not found on your computer. JustEnoughVCS key generation depends on OpenSSL.", 0, "JustEnoughVCS Installation", 0x0 + 0x30)
+}