Installer

The latest version of the UOAI library and all directly related information can be found in this forum.

Re: Installer

Postby Artaxerxes on Thu May 14, 2009 9:12 am

Cear wrote:First id like to say how thankful I am of all the work your doing recently. however after installing my program and registering UOAI.dll my program continues to crash unless i install uoai from this site.


I'll review the installation process tonight, there are clearly still some problems left.
Artaxerxes
Site Admin
 
Posts: 530
Joined: Tue Nov 18, 2008 9:51 pm

Re: Installer

Postby Cear on Mon May 18, 2009 10:32 pm

in 4.20

Image

Has anyone been able to register the dll, and run their application without running the UOAI installer?
Cear
Coder
 
Posts: 49
Joined: Thu Jan 29, 2009 4:07 am

Re: Installer

Postby Artaxerxes on Tue May 19, 2009 7:56 am

Some questions:
  • Are you sure ALL files (including W2EDataStructures.tlb and UOAITypeLib.tlb) are copied to UOAI's installation directory BEFORE calling regsvr32 on UOAI.dll?
  • Are you sure filenames aren't changed in the process, also capitalization should be exactly as installed by UOAI, f.e. you can NOT change libdisasm.dll into LIBDISASM.DLL, etc...

I'm also working on adding improved error handling to UOAI, there will be an error-log generated whenever errors occur and i will add an option to get debugging output generated in a debug-log. I'm rather busy the next two days, though, I will be working actively on UOAI on thursday, so expect a fix by thursday-night.

I will also try to remove the need for UOClient.dll and libdisasm.dll altogether... I can compile both into UOAI.dll, that will however increase the overal size of the injected dll. The typelibraries i'll embed as resources. That way exactly one or two files will have to be installed: UOAI.dll and optionally UOAINET.dll.

Greetz,
Artaxerxes
Artaxerxes
Site Admin
 
Posts: 530
Joined: Tue Nov 18, 2008 9:51 pm

Re: Installer

Postby Dr.Evil on Tue May 19, 2009 4:53 pm

This sounds great.
Thx for your work!

Please explain in your changelog where these error logs will be saved.
Dr.Evil
Coder
 
Posts: 32
Joined: Sun May 10, 2009 12:35 am

Re: Installer

Postby Cear on Tue May 19, 2009 7:19 pm

stand by
Cear
Coder
 
Posts: 49
Joined: Thu Jan 29, 2009 4:07 am

Re: Installer

Postby Cear on Tue May 19, 2009 7:39 pm

Artaxerxes wrote:Some questions:
  • Are you sure ALL files (including W2EDataStructures.tlb and UOAITypeLib.tlb) are copied to UOAI's installation directory BEFORE calling regsvr32 on UOAI.dll?
  • Are you sure filenames aren't changed in the process, also capitalization should be exactly as installed by UOAI, f.e. you can NOT change libdisasm.dll into LIBDISASM.DLL, etc...


Answer, yes i am possitive on both of thoes.
So, update.

It turns out calling regsvr32 on UOAI.dll returns that error code 100% of the time Unless!
I run the installer that comes fromthis website.
After installing UOAI from this website i can successfully register any UOAI dll on my system.
Cear
Coder
 
Posts: 49
Joined: Thu Jan 29, 2009 4:07 am

Re: Installer

Postby Artaxerxes on Wed May 20, 2009 8:44 am

Cear wrote:It turns out calling regsvr32 on UOAI.dll returns that error code 100% of the time Unless!
I run the installer that comes fromthis website.
After installing UOAI from this website i can successfully register any UOAI dll on my system.


I found one problem : UOAI will check the installpath registry entry ("HKLM\SOFTWARE\UOAI Library\Install_Dir") first for its installpath, if present it assumes registrations are supposed to refer to this directory, otherwise it will just use the directory from which it was loaded. I guess, just always using the directory from which its loaded is a better idea. This will be fixed in v0.4.21 i will be uploading now... i'm not sure, though, if that will resolve your setup-issues.

I will continue working on UOAI tomorrow, today i'm rather busy. I'm adding extensive errorlogging, and optional debugging code that should allow me to trace down what goes wrong during installation.

Greetz,
Artaxerxes
Artaxerxes
Site Admin
 
Posts: 530
Joined: Tue Nov 18, 2008 9:51 pm

Re: Installer

Postby Cear on Wed May 20, 2009 8:58 am

Aye, different return code in .21
0x80040200
Take your time man, we all really appreciate it.
Cear
Coder
 
Posts: 49
Joined: Thu Jan 29, 2009 4:07 am

Re: Installer

Postby Artaxerxes on Wed May 20, 2009 9:39 am

Cear wrote:Aye, different return code in .21
0x80040200
Take your time man, we all really appreciate it.


Hmm 0x80040200=SELFREG_E_TYPELIB, which means UOAI is not able to register the typelibraries... which can either mean that the RegisterTypeLibrary-call (a WinAPI function) failed or that the paths were not initialized correctly. I can not see what can still go wrong with the path-initializations, so i'm afraid it is the winapi-function that fails... after some googling on possible reason why RegisterTypeLibrary can fail: i think the problem is that vista's UAC is disallowing typelibrary-registrations unless ran as administrator. The NSIS-installer of UOAI requests admin permissions at the start of the install-script, which is probably why the online installer works, while your custom install fails. My custom installation-tests were ran on an XP box or on the actual administrator account on a Windows 7 box, which explains why i didn't notice those problems.

Greetz,
Artaxerxes
Artaxerxes
Site Admin
 
Posts: 530
Joined: Tue Nov 18, 2008 9:51 pm

Re: Installer

Postby Artaxerxes on Wed May 20, 2009 9:49 am

I will try and see if i can request admin permissions from within the registration functions... so that you wont have to bother with requesting the correct permissions from your installer.

Greetz,
Artaxerxes
Artaxerxes
Site Admin
 
Posts: 530
Joined: Tue Nov 18, 2008 9:51 pm

PreviousNext

Return to UOAI Developers Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron