
01-08-2009
|
|
|
|
Join Date: Jan 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Copying files to subfolders of Program Files
My company writes software that includes XTensions to QuarkXPress, which uses a default installation path of C:\Program Files\Quark\QuarkXPress VN, where VN is a version number, such as 6.5 or 8.
When we have new version of our XTensions, they need to be copied to the XTensions folder beneath QuarkXPress VN
For years, we have had a mechanism that self-updates user; each time a user launches the program, a command or batch file is run that checks for new XTensions and, if it detects them, it copies them to the desired folder, then launches the program.
But, with Vista, a non-administrator user cannot copy files to a subfolder of Program Files, making this self-updating impossible unless every user is an administrator, which is not a viable option.
Does anyone know of a method that can be used in a batch file to elevate a non-admin user to an admin user so that files can be copied to a subfolder of Program Files? I have experimented with SkipUAC and can make it work from a command line, but not from within a batch file.
Any help would be greatly appreciated.
|