Error 0xc0000142

Olly Betts olly at survex.com
Wed Oct 9 21:53:04 BST 2024


On Wed, Oct 09, 2024 at 07:35:27PM +0000, Graham Mullan wrote:
> You say that the probable installation directory is "c:\Program
> Files\Survex" however, it's actually "c:\Program Files (x86)\Survex"
> and has been since I went onto Windows 64 bit, as Survex always
> describes itself as being a 32 bit program.

It's a 64-bit application since 1.4.9, as noted in the NEWS entry:

  (Microsoft Windows version): The installer is now created automatically
  on Github actions, which has required a few changes.  It now packages a
  64-bit build, and is created with Innosetup 6.3.2 which no longer supports
  Vista.  The installer is also now significantly larger, which is mostly
  because we now need to include a large number of DLLs, most of which are
  dependencies of the mingw64 FFmpeg and GDAL packages.

If you upgrade I think it defaults to installing into the same directory
the previous version was installed in, so it may still be under the "x86"
directory in that case.

I'd expect a fresh install to default to the path I gave as the installer
script says:

DefaultDirName={autopf}\Survex

If installing as admin, {autopf} -> {commonpf} -> {commonpf64} when 'the
install is running in 64-bit install mode' -> 'typically "C:\Program Files"'.

If you install just for your user (which should work since 1.4.8), then
{autopf} -> {userpf} which is:

  The path to the current user's Program Files folder. Only Windows 7 and later
  supports {userpf}; if used on previous Windows versions, it will translate to
  the same directory as {localappdata}\Programs.

The last part is probably no longer relevant as we're now using an Innosetup
version which no longer supports Vista, which seems to be the version before
7, but FWIW {localappdata} is "The path to the current user's local
(non-roaming) Application Data folder."

Cheers,
    Olly



More information about the Survex mailing list