Compiling VBScript

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
BlackWisdom
Pro Scripter
Posts: 58
Joined: Thu Oct 16, 2003 12:53 am

Compiling VBScript

Post by BlackWisdom » Mon Dec 06, 2004 8:52 pm

:? Very important question:
when you compile a macro into a stand alone exe file. If the macro contains VBScript does macro scheduler call on the windows VBScript engine or is the code inside the exe file. In other word if a user has VBScript disabled on thier system and runs an exe with VBScript commands in it - will it fail???

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Mon Dec 06, 2004 9:17 pm

A VBScript compiled macro has the VBScript runtimes built in. You will notice that a VBScript compiled macro is larger than a non-VBScript macro. So the macro will not fail on a machine that doesn't have VBScript installed.
MJT Net Support
[email protected]

ghopkins
Newbie
Posts: 3
Joined: Fri Jan 10, 2003 10:13 pm
Location: Connecticut

I tried to run the VB compiled exe

Post by ghopkins » Fri Jan 21, 2005 8:16 pm

I tried to the example vbscript compile exe and received an error saying the script engine was install properly on my machine. I just read the it should matter even if I do not have the engine install, that exe should have run. Very strange. Any ideas?

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Sat Jan 22, 2005 1:36 am

Hi,

Which example script was it? Could be a problem with it and maybe we should replace it. Can you send more details of the target system to [email protected]. We'll also send some other examples to try. We've not seen problems before running vbscript .exes on machines with no runtimes, but there's always a first time for everything! Please send more details to support and we will investigate.

\A
MJT Net Support
[email protected]

ghopkins
Newbie
Posts: 3
Joined: Fri Jan 10, 2003 10:13 pm
Location: Connecticut

RE: VBScript Compile runtime error

Post by ghopkins » Wed Jan 26, 2005 4:33 pm

support wrote:Hi,

Which example script was it? Could be a problem with it and maybe we should replace it. Can you send more details of the target system to [email protected]. We'll also send some other examples to try. We've not seen problems before running vbscript .exes on machines with no runtimes, but there's always a first time for everything! Please send more details to support and we will investigate.

\A
Hi, sorry for the delay in responding. For some reason I never got notified of an append to this thread.

I ran the vbscript example found at this link: http://www.mjtnet.com/script_compiler.htm

I received an error that the vbscript runtimes were not installed properly.
I had our IT folks re-install the runtimes, check for proper installation and operation. I then ran the example script again, and got the exact same error. I also tried this on my home computer.

If the runtimes are self contained in the compiled exe file, why do I get this error? Why should it be looking to my system for something that should be internal to the program? I'm confused. Thanks for helping me to understand.

Greg

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts