Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when user denies execution from Boxstarter is uncaught #301

Closed
Redsandro opened this issue Jan 28, 2018 · 8 comments
Closed

Error when user denies execution from Boxstarter is uncaught #301

Redsandro opened this issue Jan 28, 2018 · 8 comments
Labels
Bug Issues where something has happened which was not expected or intended

Comments

@Redsandro
Copy link

Windows will pop up a dialog asking permission for the second command window that Boxstarter opens. The exception that's thrown when the user denies this permission is uncaught.

image

Is it possible to catch this, and display in some nice bright text:

"You denied permission to run Boxstarter. Packages X Y Z will not be installed."

@martinskuta
Copy link

martinskuta commented May 18, 2018

I get this always when I run boxstarter for the first time. Eg if I click on this link http://boxstarter.org/package/nr/url?https://raw.githubusercontent.com/laurentkempe/Cacao/master/PrepareMyCacao.ps1

I click on a link in Edge
I say run the click once installer that it downloads
It downloads and installs boxstarter
Then opens new command line window like above and crashes

Then I click the link second time
Run the click once
Without downloading or installing anything it starts executing the script bringing up UAC, by clicking yes it installs everything from the script.

I am running it on freshly installed Windows 10 x64 build 1803 Pro edition.

@gep13 gep13 added the Bug Issues where something has happened which was not expected or intended label May 18, 2018
@gep13
Copy link
Member

gep13 commented May 19, 2018

@martinskuta @laurentkempe would either of you be able to check that it wasn't this issue that you are running into?

https://stackoverflow.com/questions/50379742/clickonce-app-doesnt-start-with-windows-1803

@yodurr
Copy link

yodurr commented May 20, 2018

As a workaround you can install boxstarter locally and then refer it to the same scripts you're attempting to run.
In an elevated PowerShell Window run:
CINST Boxstarter
Install-BoxstarterPackage [PATH_TO_SCRIPT]

@laurentkempe
Copy link

would either of you be able to check that it wasn't this issue that you are running into?

Yeah @gep13 it might have been my issue for sure! on @martinskuta VM we have seen the exception described in that issue, but let's try it again next week and we let you know

As a workaround you can install boxstarter locally and then refer it to the same scripts you're attempting to run.

Thanks @yodurr exactly what I did at the end. But clicking on an hyperlink on a webpage is so much fun 😄

@martinskuta
Copy link

martinskuta commented May 22, 2018

@martinskuta @laurentkempe would either of you be able to check that it wasn't this issue that you are running into?
https://stackoverflow.com/questions/50379742/clickonce-app-doesnt-start-with-windows-1803

Yep it is that, when I changed Check app and files OFF as described in the stackoverflow thread, everything ran properly.

@yodurr
Copy link

yodurr commented Jun 6, 2018

One of my 1803 machines is not reproducing this bug anymore. Anyone else seeing a change in behavior?

@yodurr
Copy link

yodurr commented Aug 31, 2018

I think we should close this issue - I'm not having this problem anymore.

@flcdrg
Copy link
Member

flcdrg commented Sep 1, 2018

Closing as requested

@flcdrg flcdrg closed this as completed Sep 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues where something has happened which was not expected or intended
Projects
None yet
Development

No branches or pull requests

6 participants