/    Sign up×
Community /Pin to ProfileBookmark

wscript.shell and cab signed file

?I have a need to use wscript.shell on the website.

The IE7 browser refuse that:?
Automation server can’t create object.

I created wscript.cab then
I added wscript.exe , wscript.inf to it.

I added my website at trusted zone at IE7.

I signed wscript.cab file with signtools.exe signwizard

after that:
in html i added the object file:

<OBJECT ID=”wscriptobj1″
CLASSID = “CLSID:80F8C6EE-7544-40dc-A2E6-68864CAE0906”
CODEBASE=”http://192.168.1.51/mywebsite/myfolder/my-ca/wscript.cab#version=5,7,0,6000″></object>

in Javascript I call it :
var test = new ActiveXObject(“wscriptobj1.wscript.shell”);

I have 2 problem:
1- Certificate problem .
unknown publisher
[The publisher could not be verified. are you sure want to install this software].

2- I have the same error: 😮
Automation server can’t create object

Is error no 2 result for no 1 [certificate problem].
How can i fix the error no 2 [Automation server can’t create object].

[B] Advise me, please.[/B] ?

This is my wscript.inf file:
[version]
signature=”$CHICAGO$”
[Add.Code]
wscript.exe = wscript.exe
[wscript.exe]
file-win32-x86=thiscab
clsid={80F8C6EE-7544-40dc-A2E6-68864CAE0906}
FileVersion=5,7,0,6000
RegisterServer=yes

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@KekoShaauthorNov 04.2011 — Now I succeeded to sign the cab file with signtool.exe .

So, I can use it on the client side.

but I have a problem with wscript.shell

It's seem like wscript.exe doesn't have wscript.shell

I replaced wscript.cab with wshom.cab where I saved wshom.ocx and wshom.inf

I have the same problem.

I can dowload the cab file now, but I couldn't run wscript.shell

any advise will be appreciated.

<OBJECT ID="wscriptobj1"

CLASSID = "CLSID:80F8C6EE-7544-40dc-A2E6-68864CAE0906"

CODEBASE="http://192.168.1.51/mywebsite/myfolder/my-ca/wscript.cab#version=5,7,0,6000"></object>

in Javascript I call it :

var test = new ActiveXObject("wscriptobj1.wscript.shell");
×

Success!

Help @KekoSha spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...