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

Rework elevation - no more bat file; add KNOWNFOLDERS support #27

Merged
merged 3 commits into from
Apr 28, 2016

Conversation

msarahan
Copy link
Contributor

@msarahan msarahan commented Apr 7, 2016

Our old CSIDL code is deprecated (https://msdn.microsoft.com/en-us/library/windows/desktop/bb762494(v=vs.85).aspx), and in at least one instance from the Anaconda Support mailing list, a CSIDL path was not found. The new way is called KNOWNFOLDERID (https://msdn.microsoft.com/en-us/library/windows/desktop/dd378457(v=vs.85).aspx), and this PR brings it to Menuinst. Win XP uses CSIDL, everything beyond that uses KNOWNFOLDERID.

This rips out the intermediate bat file, in favor of a more Python-based solution. Doing so introduces a dependency on pywin32.

Finally, high-level integration tests are performed - installing shortcuts as user and as admin. You should see interactive elevation notices when running the tests on platforms above XP. If you don't, you might have UAC disabled - please enable it for these tests to make sure that it works.

This PR now addresses unicode support. I have tested this by creating a user named "å test user". When logged on as this user, the new tests here run as both user and admin. I have reasonably high confidence that this fixes the issues with menu installation. _nsis.py will need fixing (in both constructor and in the anaconda build system installer), also, though, since modifying PATH often fails when menu installation fails.

ping @ilanschnell @csoja

@msarahan msarahan merged commit eec9a56 into conda:master Apr 28, 2016
@msarahan msarahan deleted the rework_elevation branch May 1, 2016 02:28
@mingwandroid
Copy link
Contributor

I can check it when I get back on Thursday.

@mingwandroid
Copy link
Contributor

Should be good to go now.

@kalefranz kalefranz changed the title Rework elevation - no more bat file; add KNOWNFOLDERS support MEN-30 ⁃ Rework elevation - no more bat file; add KNOWNFOLDERS support Jan 30, 2018
@kalefranz kalefranz changed the title MEN-30 ⁃ Rework elevation - no more bat file; add KNOWNFOLDERS support Rework elevation - no more bat file; add KNOWNFOLDERS support Jan 30, 2018
@github-actions
Copy link

Hi there, thank you for your contribution!

This pull request has been automatically locked because it has not had recent activity after being closed.

Please open a new issue or pull request if needed.

Thanks!

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Mar 13, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants