RE: Executing gacutil in post-build event



I did both 1 and 3 below. Disabling UAC allowed gacutil to succeed, but so
did UAC enabled and running VS as adminstrator. I appreciate the help for
this Vista newbie.

--
-mustang


"WenYuan Wang [MSFT]" wrote:

Hello mustang,

It seems you want to gac the dll using gacutil command in post build event.
This method works on VS 2005 and Windows XP, but failed on VS 2005 and
Windows Vista. If I misunderstood anything here, please don't hesitate to
correct me.

I suggest you may check the following steps:

1. How did you start VS 2005 on Vista Machine?
You will have to right click on devenv.exe, and then select "Run as
Administrator" on context menu. Otherwise, devenv.exe process doesn't run
as administrator permission.

2. When you open the Visual Studio command prompt it will add that location
to the path. But when using the pre/post build event this is not the case.
Did you specify the path in post build event?
For example:
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" /i
$(TargetPath)

3. At last, I suspect this is caused by UAC in Vista. I suggest you may
disable UAC and try your post event again.
http://www.vista4beginners.com/How-to-disable-UAC
[How to disable UAC]

Hope this helps. Please try the above method and let me know if this works
on your side. We are glad to assist you.

Have a great day,
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


.



Relevant Pages

  • Re: DLPORTIO for Vista
    ... Windows Vista? ... (DLPORTIO is used by a number of Log softwares to utilize the parallel ... Disable UAC before running the port95nt.exe installation program. ... type MSCONFIG, enter). ...
    (rec.radio.amateur.equipment)
  • Re: NBC: mild technology rant: Windows Vista and Dell...
    ... Windows Vista: ... If Vista tells me one more time that I don't have permissions --or have ... As another poster said, disable UAC. ... Click the launch button and reboot. ...
    (rec.music.artists.springsteen)
  • Re: NBC: mild technology rant: Windows Vista and Dell...
    ... Windows Vista: ... If Vista tells me one more time that I don't have permissions --or have to give permission to delete, rename, move, copy or execute a file... ... go to the Tools tab and scroll down to "Disable UAC" at ... Click the launch button and reboot. ...
    (rec.music.artists.springsteen)

Loading