Board index » Visual Studio » Vista & Windows Scripting Components (WSC)

Vista & Windows Scripting Components (WSC)

Visual Studio322
I have windows vista business edition - upgraded from winXP. This is

my dev workstation. Vista would not identify WSCs with the

scrobj.dll file so I had to do this manually. On XP one could right-

click and select "register component." I am not getting this option

with Vista.



So the question is...to I have to go command line with the regsvr32 ad

register each of the 50 components I have? Or can I do this another

way?



Thanks!



Rus


-
 

Re:Vista & Windows Scripting Components (WSC)

On Jul 26, 2:46 pm, rusty.pri...@gmail.com wrote:

Quote
I have windows vista business edition - upgraded from winXP. This is

my dev workstation. Vista would not identify WSCs with the

scrobj.dll file so I had to do this manually. On XP one could right-

click and select "register component." I am not getting this option

with Vista.



So the question is...to I have to go command line with the regsvr32 ad

register each of the 50 components I have? Or can I do this another

way?



Also, can anyone list any links to Vista and WSCs?



Thanks!



Rus





-

Re:Vista & Windows Scripting Components (WSC)

rusty.prince@gmail.com wrote:

Quote
So the question is...to I have to go command line with the regsvr32 ad

register each of the 50 components I have? Or can I do this another

way?



hi Rusty,



I don't know anything about vista, but fwiw, here are the registry

entries for "wsc" files (windows script component) from win98se.

If you can't get what you want directly, these regfiles may do

the trick. Note that in the "old days" wsc files used to be

called "scriptlets"...



If you wish to chance using these registry entries directly,

rather than attemption to patch up your registry manually,

then copy these two files out to your desktop, and add a

"reg" file extension. Then just click on them.



--- <snip attrib=wsc reg entry>---

REGEDIT4



[HKEY_CLASSES_ROOT\.wsc]

@="scriptletfile"

"Content Type"="text/scriptlet"

"ZAMailSafeExt"="zlw"

--- </snip>---



--- <snip attrib=scriptletfile reg entry>---

REGEDIT4



[HKEY_CLASSES_ROOT\scriptletfile]

@="Windows Script Component"

"EditFlags"=hex:00,00,00,00

"AlwaysShowExt"=""



[HKEY_CLASSES_ROOT\scriptletfile\CLSID]

@="{06290BD2-48AA-11D2-8432-006008C3FBFC}"



[HKEY_CLASSES_ROOT\scriptletfile\Shell]

@="Edit"



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Register]

@="&Register"



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Register\command]

@="\"C:\\WINDOWS\\SYSTEM\\REGSVR32.EXE\" /i:\"%1\"

\"C:\\WINDOWS\\SYSTEM\\SCROBJ.DLL\""



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Unregister]

@="&Unregister"



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Unregister\command]

@="\"C:\\WINDOWS\\SYSTEM\\REGSVR32.EXE\" /u /n /i:\"%1\"

\"C:\\WINDOWS\\SYSTEM\\SCROBJ.DLL\""



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Generate Typelib]

@="&Generate Type Library"



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Generate Typelib\command]

@="\"C:\\WINDOWS\\RUNDLL32.EXE\"

C:\\WINDOWS\\SYSTEM\\SCROBJ.DLL,GenerateTypeLib \"%1\""



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Edit]

"EditFlags"=hex:01,00,00,00



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Edit\command]

@="D:\\TextEditors\\EditPlus\\EDITPLUS.EXE \"%1\""



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Open]

@="&Open"



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Open\command]

@="\"C:\\WINDOWS\\NOTEPAD.EXE\" \"%1\""



[HKEY_CLASSES_ROOT\scriptletfile\AutoRegister]

@="C:\\WINDOWS\\SYSTEM\\SCROBJ.DLL"



[HKEY_CLASSES_ROOT\scriptletfile\ScriptHostEncode]

@="{06290BD4-48AA-11D2-8432-006008C3FBFC}"



[HKEY_CLASSES_ROOT\scriptletfile\DefaultIcon]

@="C:\\WINDOWS\\SYSTEM\\SCROBJ.DLL,0"



[HKEY_CLASSES_ROOT\scriptletfile\QuickView]

@="*"

--- </snip>---





cheers, jw

____________________________________________________________



You got questions? WE GOT ANSWERS!!! ..(but,

no guarantee the answers will be applicable to the questions)

-

Re:Vista & Windows Scripting Components (WSC)

On Jul 27, 11:29 am, mr_unreliable

<kindlyReplyToNewsgr...@notmail.com>wrote:

Quote
rusty.pri...@gmail.com wrote:

>So the question is...to I have to go command line with the regsvr32 ad

>register each of the 50 components I have? Or can I do this another

>way?



hi Rusty,



I don't know anything about vista, but fwiw, here are the registry

entries for "wsc" files (windows script component) from win98se.

If you can't get what you want directly, these regfiles may do

the trick. Note that in the "old days" wsc files used to be

called "scriptlets"...



If you wish to chance using these registry entries directly,

rather than attemption to patch up your registry manually,

then copy these two files out to your desktop, and add a

"reg" file extension. Then just click on them.



--- <snip attrib=wsc reg entry>---

REGEDIT4



[HKEY_CLASSES_ROOT\.wsc]

@="scriptletfile"

"Content Type"="text/scriptlet"

"ZAMailSafeExt"="zlw"

--- </snip>---



--- <snip attrib=scriptletfile reg entry>---

REGEDIT4



[HKEY_CLASSES_ROOT\scriptletfile]

@="Windows Script Component"

"EditFlags"=hex:00,00,00,00

"AlwaysShowExt"=""



[HKEY_CLASSES_ROOT\scriptletfile\CLSID]

@="{06290BD2-48AA-11D2-8432-006008C3FBFC}"



[HKEY_CLASSES_ROOT\scriptletfile\Shell]

@="Edit"



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Register]

@="&Register"



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Register\command]

@="\"C:\\WINDOWS\\SYSTEM\\REGSVR32.EXE\" /i:\"%1\"

\"C:\\WINDOWS\\SYSTEM\\SCROBJ.DLL\""



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Unregister]

@="&Unregister"



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Unregister\command]

@="\"C:\\WINDOWS\\SYSTEM\\REGSVR32.EXE\" /u /n /i:\"%1\"

\"C:\\WINDOWS\\SYSTEM\\SCROBJ.DLL\""



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Generate Typelib]

@="&Generate Type Library"



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Generate Typelib\command]

@="\"C:\\WINDOWS\\RUNDLL32.EXE\"

C:\\WINDOWS\\SYSTEM\\SCROBJ.DLL,GenerateTypeLib \"%1\""



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Edit]

"EditFlags"=hex:01,00,00,00



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Edit\command]

@="D:\\TextEditors\\EditPlus\\EDITPLUS.EXE \"%1\""



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Open]

@="&Open"



[HKEY_CLASSES_ROOT\scriptletfile\Shell\Open\command]

@="\"C:\\WINDOWS\\NOTEPAD.EXE\" \"%1\""



[HKEY_CLASSES_ROOT\scriptletfile\AutoRegister]

@="C:\\WINDOWS\\SYSTEM\\SCROBJ.DLL"



[HKEY_CLASSES_ROOT\scriptletfile\ScriptHostEncode]

@="{06290BD4-48AA-11D2-8432-006008C3FBFC}"



[HKEY_CLASSES_ROOT\scriptletfile\DefaultIcon]

@="C:\\WINDOWS\\SYSTEM\\SCROBJ.DLL,0"



[HKEY_CLASSES_ROOT\scriptletfile\QuickView]

@="*"

--- </snip>---



cheers, jw

____________________________________________________________



You got questions? WE GOT ANSWERS!!! ..(but,

no guarantee the answers will be applicable to the questions)



Thanks! I found out how to do this - though my user account said it

had admin rights...I still was not able to run under admin so I had to

actually switch to the admin account and do it there. The register

came up on the menu when I right-clicked on the components.



A new problem now exists....though the WSCs implement the ASP

interface handler...none of the Request/Response objects for IIS are

implementable from the WSC. Unless Vista has changed the reference

implementation ...maybe it has....this should work....?



-Rus



-