Skip to content

Conversation

@daserge
Copy link
Contributor

@daserge daserge commented Jul 8, 2019

Use new ProgramW6432 envar if available so that both Prefer32Bit=false and Prefer32Bit=true apps
could get the path.
Otherwise Environment.SpecialFolder.ProgramFiles returns "C:\\Program Files (x86)" for 32-bit apps on 64-bit OS.

Use new ProgramW6432 envar if available so that both Prefer32Bit=false and Prefer32Bit=true apps
could get the path.
Otherwise Environment.SpecialFolder.ProgramFiles returns `"C:\\Program Files (x86)"` for 32-bit apps on 64-bit OS.
@jonpryor
Copy link
Contributor

@daserge: what are the symptoms of a "failure"? Is there an exception or error message or anything?

Is there an associated bug?

@jonpryor
Copy link
Contributor

In-progress commit message:

Context: https://docs.microsoft.com/en-us/windows/win32/winprog64/wow64-implementation-details#environment-variables

Use the `%ProgramW6432%` environment variable (if available) so that
both **Prefer 32-bit**=false and **Prefer 32-bit**=true apps can get
the path.  Otherwise `Environment.SpecialFolder.ProgramFiles` returns
`"C:\Program Files (x86)"` for 32-bit apps on 64-bit OS, which is not
where the Android SDK is installed, and thus path lookup fails.

@jonpryor jonpryor merged commit 9f4ed4b into dotnet:master Aug 27, 2019
@daserge daserge deleted the fix/program-files-x64 branch August 27, 2019 14:28
jonpryor pushed a commit that referenced this pull request Feb 8, 2021
Changes: dotnet/android-libzipsharp@1.0.20...1.0.22

  * dotnet/android-libzipsharp@9f563dd: Add a test which changes the CompressionMethod of an item (#78)
  * dotnet/android-libzipsharp@3b610c9: Try actually running the tests under .net core (#77)
  * dotnet/android-libzipsharp@03cd66b: Archive the SignList.xml
  * dotnet/android-libzipsharp@8afe791: Add the signListPath parameter
  * dotnet/android-libzipsharp@ed5585c: Add SignList.xml for signing
  * dotnet/android-libzipsharp@2ab6943: Add a build_windows.bat file to make it easier to build on windows (#75)
  * …
  * dotnet/android-libzipsharp@9dca4fb: Initial commit of localisation
  * dotnet/android-libzipsharp@668babc: Add Unit Test for setting file permissions on extraction.
  * dotnet/android-libzipsharp@8f2053c: Build on Windows again (#71)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants