We need the ability to update files in the C:\Program Files\MySoftware Company\My Software Program\ on a users PC when the users permissions are not set to allow updating to a particular folder.
Our software is designed, when it starts-up, to check on a server if there is a newer version of a file available and then, if there is, perform a file copy from the server directory to the users local PC Program Files directory (e.g. C:\Program Files\MySoftware Company\MySoftware Program\).
The issue arises when the credentials of the local user do not have permission to modify files in the C:\Program Files\MySoftware Company\My Software Program\ directory.
I understand that we can manually set up security/permissions through windows to give the user access to modify files in this Program Folder directory, but I'd like to know if it's possible through VB Code (Visual Basic 6.0), with the ability, somehow to invoke Administrator Credentials for that particular filecopy task. Sort of a "Run as ..." capability but in code. Of couse, we would have an Administrator account and password available in this process (encypted in a accesible database), for us to call upon, if such a feat is in fact possible.
What we are trying to avoid is the need for somebody having to go to each computer (the software will be on hundreds on PCs) and manually set the permissions on this Program Files folder.