PDA

View Full Version : Behavior of VerSearchAndUpdateFile



erick00
07-29-2002, 02:46 PM
When I use VerSearchAndUpdateFile function to install a .ocx, and the .ocx does not currently exist on the target system, the function returns a -1 and fails to copy the file. From the documentaiton, it appears that it should copy the file.

VerUpdateFile also has the same behavior.

Has anyone else seen this? Also, please elucidate the difference between the two functions.

I want to mark the file as "not removable", how can I do this from InstallScript since it is being installed with the above functions and not via a component in the IDE?