Phenix Development
RSS 2.0

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Sign In
Friday, June 29, 2007

This has been a time consuming effort.  When running as an administrator everything worked fine, but when trying this as a user we kept receiving an error.  Or better yet, the executable was finding a file that did not exist in that directory (still do not have an answer to this one).

We searched the web and found information, on Joel on Sofware's discussion, group that changing the name of the program to "update" or "setup" would solve the problem.  There was also mention that making a change to the manifest file will solve the problem.

Both solutions cause Vista to launch the UAC to ask for Administrator privileges.

Other information

http://www.codeproject.com/useritems/UAC__The_Definitive_Guide.asp

http://msdn2.microsoft.com/en-us/library/aa905330.aspx

Posted on Friday, June 29, 2007 2:16:59 PM (Eastern Standard Time, UTC-05:00)  #   Comments [1]
Related posts:
Sunday, July 29, 2007 9:50:29 AM (Eastern Standard Time, UTC-05:00)
Seems like you got most of the answer but running as administrator will solve this. Ideally, though, you want your applications to write to _user_ areas, not the program files or system areas of the machine. Update or setup works in the file because that's an automatic flag for the system to prompt for elevation.

UAC will redirect reads/writes to per-user areas when the application _thinks_ it's writing to a system area. So if you dig enough into the user's store, you'll find the files in there. This is done for compatibility reasons: Old software will continue to run without the possibility of stepping on other users' data.
Comments are closed.