Manfred Wallner
Manfred Wallner
This may sound a bit naive, but following _could_ work: All commands elevate as soon as they are called, but there might be a switch `--dontelevate`. With this switch, a...
> Most likely you are either using SYSTEM, a non-admin account, or using an admin with an administrative shell so it doesn't get hit by UAC for other things anyway....
Yes, the issue persists, nevertheless I'm able to work around it by using the `-DelegateChocoSources` switch that's been introduced with #320 now. 
I was also thinking about #296, in contrast to the (initial) suggested change there, this would actually try to install all packages, before setting `$lastexitcode` to the number of failed...
I actually don't care how many installs failed, the thing is that, with a current version of Boxstarter, it is hard to get some useful return/exit code that tells you...
Just revisited this. Note: when this is being implemented, take sure to note this: > If you used the throw statement it would stop the rest of Boxstarter. meaning: reporting...
Short answer: no, this issue is something different as we're aiming to provide some feedback on which packages were installed successfully and which failed - after the Boxstarter procedure finished....
as you've pointed out modifying [SHELLSTATE](https://msdn.microsoft.com/en-us/library/bb759788(v=vs.85).aspx) should work.
@pauby this is assigned to you, mind if I take over?
in short: we'll need to explicitly add `[Security.AccessControl.FileSystemRights]::ReadAndExecute` to the created shortcuts by `Create-Shortcut` (see `setup.ps1`) edit/Note: note sure if we'll actually add the permissions to [WorldSid](https://docs.microsoft.com/en-us/dotnet/api/system.security.principal.wellknownsidtype) or something else