Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MoveFileEx & Win2k
Message
 
To
08/09/2000 11:34:48
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00414172
Message ID:
00414179
Views:
30
>Hi all..
> I need some help here.. I'm trying to use MoveFileEx out of the win32 api to update dlls on NT/Win2k machines. I use the wininit.ini with the 9x boxes..
>The thing is.. Right now, I can't get it to work right..
>I'm calling MoveFileEx with the MOVEFILE_DELAY_UNTIL_REBOOT and MOVEFILE_REPLACE_EXISTING flags.. basically what I do.. is take the new dll I want to copy over the old one, and copy it to a temp dir on the users hard drive.. Then I call MoveFileEx to copy the one in the temp dir over the system dll. This has worked before. MovefileEx always returns true, and it adds the appropriate registry entries..
>But it does not copy over the old file.
>So I'm doing this from CFP 6 sp4 and trying to get it to work on win2k (server or professional) SP1.
>
>Anyone run into this?
>
>I've scoured MSDN and the MS Knowledge base, to no avail.
>
>Also I'm using Installshield to install the app as well.. It does about the same thing as my app does.. Both the app and installer need to do this due to network users..
>
>HELP!!!

Joe,

Pure SWAG here. First, from the context of your post, I assume that you're attempting to use the function to install dlls that are currently in use. Is this correct? Is the target directory the system directory under Win2K? If so, it may be that Win2K is preventing this. If your application requires a specific version of a DLL, it should be implemented as a side-by-side DLL and located in a directory on the application's search path. I don't have anything other than this.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform