Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using DllRegisterServer
Message
 
 
To
13/05/2002 20:27:24
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00655913
Message ID:
00655936
Views:
21
>Myself and a coworker are testing our install program and wanted to verify the results.
>
>We are using an example posted that looks for the file in the Windows System directory.
>
>On my system, I ran an EXE that called DllRegisterServer from a test directory that contained the EXE and the Dll in question. After the program ran, my registry pointed to the Dll at the directory the EXE ran from.
>
>My coworker tested, and believes that the program is copying the DLL to the Windows System directory and registering it there. Even though there is no explicit "COPY".
>
>Is there a way to make DLLRegisterServer copy a file before registering it?
>
>Thanks,
>

PF,
You have to do the copy yourself. The only thing the WinAPI function call does is write the necessary information to the registry. If you need to get the Windows system directory, you can call the GetSystemDirectory WinAPI function and perform the copy. Then you can declare the DLLRegisterServer function in the DLL in the system directory and registration will take place for that one.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform