[SETUPLIB] Diverse fixes (incl. initialization fixes).
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 25 Aug 2017 09:19:44 +0000 (09:19 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 27 Oct 2018 16:13:42 +0000 (18:13 +0200)
commitc560342f08edfa2824a6dc0a1fc7188f169c12b7
treeed413c461616bc3cecf594878d70aaeb0fa6c420
parentf1b9c071bb994f601d8753a1a0ccb0f46b146da8
[SETUPLIB] Diverse fixes (incl. initialization fixes).

- Compute the installation source paths based on the full path of the
  installer program that uses the setup library.
- Add INF_STYLE_OLDNT define in infsupp.h.
- Add some (silenced) diagnostic DPRINTs.

svn path=/branches/setup_improvements/; revision=75667

- Use correct inf style flags in SetupOpenInfFileEx() calls when opening
  txtsetup.sif and unattend.inf. Technically txtsetup.sif would be
  INF_STYLE_WIN4, but since we use "$ReactOS$" as its version signature,
  it would not work when opening it with setupapi.dll functions.
  Hence this flag is combined with INF_STYLE_OLDNT too.

- Don't fail if opening the \SystemRoot symbolic link doesn't work
  (usually due to incorrect access rights); in that case, just use the
  installer image file path as the installation source path.

svn path=/branches/setup_improvements/; revision=75676
base/setup/lib/infsupp.h
base/setup/lib/setuplib.c