PC Review


Reply
Thread Tools Rate Thread

Adding Components with Script

 
 
florian.harmuth@gmx.de
Guest
Posts: n/a
 
      11th Jul 2005
Hello,
i have tried to add components to my active configuration with
vbscript. Does any one tried this before? Is it possible?

Regards,
floh

 
Reply With Quote
 
 
 
 
Brad Combs
Guest
Posts: n/a
 
      11th Jul 2005
floh,

Here are some previous threads on the subject. Unfortunately CMI isn't
documented very well so details about it are going to be found here and some
scarce articles on MSDN.

Some google searches turn up:
http://groups-beta.google.com/group/...2bffbfb51c1397

http://groups-beta.google.com/group/...857bd2df26c53a

http://groups-beta.google.com/group/...3b17a85a42b3f9

HTH,
Brad

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
> i have tried to add components to my active configuration with
> vbscript. Does any one tried this before? Is it possible?
>
> Regards,
> floh
>



 
Reply With Quote
 
florian.harmuth@gmx.de
Guest
Posts: n/a
 
      20th Jul 2005
thx for your answer. A solution for my problem is the following script
code:

<vbscript>
Set oCMI=window.external.Instance.CMI
Set newInstance =
oCMI.CreateFromDB(20,"{B784E719-C196-4DDB-B358-D9254426C38D}",3,strGUID)
window.external.Instance.Configuration.Instances.Add oInstance
</vbscrip>

Regards,
floh

Brad Combs schrieb:
> floh,
>
> Here are some previous threads on the subject. Unfortunately CMI isn't
> documented very well so details about it are going to be found here and some
> scarce articles on MSDN.
>
> Some google searches turn up:
> http://groups-beta.google.com/group/...2bffbfb51c1397
>
> http://groups-beta.google.com/group/...857bd2df26c53a
>
> http://groups-beta.google.com/group/...3b17a85a42b3f9
>
> HTH,
> Brad
>
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hello,
> > i have tried to add components to my active configuration with
> > vbscript. Does any one tried this before? Is it possible?
> >
> > Regards,
> > floh
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB Script not running on XP embedded! What components required? =?Utf-8?B?QmlsbA==?= Windows XP Embedded 5 23rd Nov 2007 11:10 AM
Uninstall Windows components via script file =?Utf-8?B?SmFzb24gQSBBc2g=?= Windows XP Configuration 2 30th Oct 2006 11:01 PM
Referencing .NET components on a script page. =?Utf-8?B?SmVycnk=?= Microsoft Dot NET 5 17th Nov 2005 10:52 PM
interop with windows script components =?Utf-8?B?Sm/Dq2w=?= Microsoft Dot NET Framework 1 25th May 2005 01:51 PM
How do I script the registration of .NET components used by VB6? Daniel Wilson Microsoft Dot NET 4 11th Mar 2005 10:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:34 AM.