Memnarch / Delphinus

An alternative Packagemanager for the Delphi-IDE
Mozilla Public License 2.0
235 stars 63 forks source link

Installation fail #2

Closed kazalex closed 9 years ago

kazalex commented 9 years ago

Delphi XE/6, Windows XP SP3. Error when trying Install of Delphinus package:

Error

Unable to create directory.

OK

Memnarch commented 9 years ago

Delphinus uses the Environmentvariable %LocalAppdata%, which does not exist prior to Vista. Try to create this one and point to a directory(and empty one to be sure) where Delphinus can create files/folders for temporary work/caching.

kazalex commented 9 years ago

Problem with installing of Delphinus package, not other packages via Delphinus.

Memnarch commented 9 years ago

So you compile tze package(which works), click install, and it throws this message?. Really confused right know, as there is no directory created until someone presses refresh. Can you start/install the package with attached debugger to see where it breaks?

kazalex commented 9 years ago

Problem really in environment variable, but arise she at moment of installation of Delphinus package (even if to try installing compiled package Dephinus.bpl). ForceDirectories raise exception:

:7c812fd3 kernel32.RaiseException + 0x52 rtl.System.SysUtils.ForceDirectories('') rtl.System.SysUtils.ForceDirectories('Delphinus') rtl.System.SysUtils.ForceDirectories('Delphinus\Github') Delphinus.DN.PackageProvider.GitHub.TDNGitHubPackageProvider.Create('') Delphinus.Delphinus.Dialog.TDelphinusDialog.RecreatePackageProvider Delphinus.Delphinus.Dialog.TDelphinusDialog.Create(nil) Delphinus.Delphinus.Controller.TDelphinusController.Create Delphinus.Delphinus.Main.Delphinus.Main rtl.System.InitUnits rtl.System._PackageLoad(???,???) :09251442 Sysinit::linkproc PackageLoad(Table=????)

Memnarch commented 9 years ago

oh! Thanks. I'll put the information of the non existing environmentvariable to the wiki for XP. (As the user should select where to store the data since there is no LocalAppData).

Is this solved if you set the enviromentvariable? ('Ill then close the issue)

kazalex commented 9 years ago

I'll put the information of the non existing environmentvariable to the wiki for XP

Maybe will better to use other variable when LocalAppData was not found? AppData, for example?

Memnarch commented 9 years ago

that's an option, too. I'll implement this.

kazalex commented 9 years ago

Thanks ;)

Memnarch commented 9 years ago

i implemented a change, which will use a proper API function that works on XP and later. Please remove the LocalAppData environmentvariable and retry, and tell me if this works.

kazalex commented 9 years ago

Now works. I tested it on clean XP SP3 VM with XE6.