Nov 26, 2008 at 1:21 AM
Edited Nov 26, 2008 at 1:37 AM
I delete my last post, because it's not right.
and now I got another way to fix it.
If I create a process loading "cmd.exe", with args like" runas /user:administrator gac.exe /il...."+your original command.
everything is fine. but there is another problem, I can not redirect the standoutput of gac.exe, so the output information can not show in debuging output.Even if I use "gac.exe > file.txt", no output is recorded in the file.have you got any
clue to fix this?
and if anyone here meet the same problem with me. there are several ways you can try.
1.go find your IDE(VS)'s "devenv.exe" file, open it's 'properties', 'compatibility', select ‘Run this program as an administrator’ . if you are in XP, you might not have this setting, I don't
have neither :(
2.using "cals"command to change privilieges.
reason about why we log as administrator ,but ".exe" is not running with administrator priviliege, can be found if you google...MSDN also have some explaination.
Thank you Chris, for making such a wonderful tool :)