GD
Thu Sep 28 23:10:32 CDT 2006
Your solution works great. Thanks.
GD
"Ilya Tumanov [MS]" <ilyatum@online.microsoft.com> wrote in message
news:451b230e$1@news.microsoft.com...
> Or put entire assembly name in quotes:
>
> string strCommand = "\" + strTestLib + "
> ,Version=1.0.9.0,Culture=neutral, PublicKeyToken=70b83542ad6dde68\"";
>
> --
> Best regards,
>
> Ilya
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> *** Want to find answers instantly? Here's how... ***
>
> 1. Go to
>
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
> 2. Type your question in the text box near "Search this group" button.
> 3. Hit "Search this group" button.
> 4. Read answer(s).
>
> "<ctacke/>" <ctacke[@]opennetcf[dot]com> wrote in message
> news:eiZJ89o4GHA.1200@TK2MSFTNGP02.phx.gbl...
>> Manually create a GAC file or make the registry entries. That's a way
>> around using cgautil altogetehr.
>>
>>
>> --
>> Chris Tacke
>> OpenNETCF Consulting
>> Managed Code in the Embedded World
>> www.opennetcf.com
>> --
>>
>>
>> "GD" <NoSpam_jb48888@yahoo.com> wrote in message
>> news:eTgD4in4GHA.2464@TK2MSFTNGP06.phx.gbl...
>>> Hi,
>>>
>>> I need to uninstall an assembly from GAC programmatically. It only works
>>> on the assemblies with no white spaces in the assembly name. I have
>>> tried multiple combination without success. As there are while spaces in
>>> the name, I have to put two double quotes on the two ends of the file
>>> name:
>>>
>>> string strTestLib = "CF Test Lib For GAC"; //The dll without extension
>>> string strCommand = "\" + strTestLib + \"" + " ,Version=1.0.9.0,
>>> Culture=neutral, PublicKeyToken=70b83542ad6dde68";
>>>
>>> or
>>>
>>> string strCommand = '"' + strTestLib + '"' + " ,Version=1.0.9.0,
>>> Culture=neutral, PublicKeyToken=70b83542ad6dde68";
>>>
>>> Process.Start("cgacutil.exe", " /uf " + strCommand);
>>>
>>> Any ideas?
>>>
>>> Thanks.
>>>
>>> GD
>>>
>>
>>
>
>