Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

[Bug]: Right after opening bat file closes #92

Open
1 task done
xlukn opened this issue Sep 9, 2023 · 4 comments
Open
1 task done

[Bug]: Right after opening bat file closes #92

xlukn opened this issue Sep 9, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@xlukn
Copy link

xlukn commented Sep 9, 2023

What happened?

The moment I open CCstopper a cmd window will pop up and close right after, cant get it to work. Running a custom install of windows 10 (AtlasOS)

Expected Result?

Bat file should open?

Version?

v1.2.3-hotfix.1

How did you use CCStopper?

One-Line - Run

Windows Version?

windows 10

Duplicate Issues

  • I have read through the issues and have not found a duplicate.
@xlukn xlukn added the bug Something isn't working label Sep 9, 2023
@t4rra
Copy link
Owner

t4rra commented Sep 10, 2023

Try downloading the zip file and running it that way. A common issue I've seen is to do with the Powershell Execution policy, which you can fix. I recommend you set that setting back to default afterwards, as leaving it unrestricted is a security issue.

@tildebyte
Copy link

tildebyte commented Sep 29, 2023

Same as above; Win 11、Powershell 7.3.6、CCStopper v1.2.3-hotfix.2

Get-ExecutionPolicy was already set to "Unrestricted"

I downloaded the zip and ran the script from there (unzipped, of course :D)

I also tried the first one liner you suggested

Deleted @echo off for the rest:

  • When run manually from a VSCode terminal window (which does not always "insta-close"🎉)

    if 2 NEQ 0 goto elevate
    mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd","/c %~s0 ::","","runas",1)(window.close)
    exit
  • Removing exit gives a blue Powershell window which insta-closes (after powershell -ExecutionPolicy RemoteSigned -File . \scriptsMenu.ps1 is executed)

  • From an elevated Powershell prompt, powershell -ExecutionPolicy RemoteSigned -File .\scripts\Menu.ps1 works. Huzzah

  • However, I'm not convinced that everything is working properly, as I can see red error text flash up when I run 1, 3.1, and 3.3

@t4rra
Copy link
Owner

t4rra commented Oct 14, 2023

Are you getting the admin privileges prompt when running the .bat file? If not, and the script opens, it may be why you're getting errors when running certain modules. Unfortunately I don't have much knowledge about the closing on launch problem as of now.

@t4rra
Copy link
Owner

t4rra commented Jan 14, 2024

CCStopper is being sunset. I don't have any more information on fixing this problem unfortunately, but I suggest you take a look at the listed alternatives that may work better.

@t4rra t4rra closed this as not planned Won't fix, can't repro, duplicate, stale Jan 14, 2024
@t4rra t4rra reopened this Jan 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants