Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create object of System.EnterpriseServices.Internal.Publish requires .net framework 3.5

Status
Not open for further replies.

Chenna Krishna

Programmer
Oct 10, 2017
1
IN
In VB Script Creating object for System.EnterpriseServices.Internal.Publish requires .net framework 3.5 to be installed but the same class in available in higher versions of .net framework. No where it is mentioned this feature is deprecated. Basically we don't want to install .net framework 3.5 just only for this purpose.

'Create object for installing to GAC
Set myGacUtilObj = CreateObject("System.EnterpriseServices.Internal.Publish")
myGacUtilObj.GacInstall(assemblyName)
myGacUtilObj.GacRemove(assemblyName)

if .net framework 3.5 is installed/enabled the above code works fine otherwise it throws a pop up while creating object saying this requires .net framework 3.5 to be installed(if pop up is not been thrown please try debugging script so that pop up will be displayed. I am wondering why higher versions of .net framework are not supporting this. I couldn't find any alternative way to do it.

Thanks and Regards,
Chenna
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top