do not include sc.ini in zip files!

Jonathan M Davis newsgroup.d at jmdavisprog.com
Fri May 18 02:19:06 UTC 2018


On Thursday, May 17, 2018 08:51:34 Kagamin via Digitalmars-d wrote:
> On Thursday, 17 May 2018 at 07:38:50 UTC, IntegratedDimensions
>
> wrote:
> > This way one can unzip over a previous install without losing
> > the original sc.ini file.
>
> Also that's not a correct way to update, you should unzip into an
> empty folder or stray files can be left from the previous
> installation and cause compilation and runtime errors.

Exactly. If you unzip on top of an existing install, there is zero guarantee
that you'll get a working install. Such an approach is not supported at all.
If you want to use the zip file, then you should always unzip somewhere
fresh and then change stuff like sc.ini or dmd.conf afterwards. The layout
of the zip file is not guaranteed, and even if the layout stays the same,
sometimes modules are moved or renamed in ways that code won't break if
phobos is installed poperly but _will_ break if you unzip on top odf an
existing install - e.g. if a module gets broken up into a package, you'll
end up with both the module from the previous release and the directory from
the current one. So, fundamentally, you can't expect to be able to just
unzip onto an existing install and have things work. Either use a proper
installer or always unzip in a fresh location and never overwrite.

- Jonathan M Davis



More information about the Digitalmars-d mailing list