VBScript Custom Actions Not Running

D

Dave Alvarado

All,

I've been wrestling for a few days to get a VBScript
custom action to work. Basically, I can't get the action
to run no matter what I'm trying.

What I'm trying to accomplish is to use a .vbs file to
kick off some arbitrary command-line statement. I'm
wanting to use either the Run() or Exec() methods of the
WScript.Shell object.

I've tried delivering a .vbs file, storing the .vbs file
in a stream, and putting the VBScript text in the custom
actions table. I've also tried moving the sequencing
around, and setting conditions when I'm actually
delivering the .vbs file to make sure that the component
doing the delivery isn't really installed.

Can anyone provide or point me at an example of
using .vbs scripts to perform custom actions? Something
which shows how to run a command-line statement using Run
() or Exec() would be extra helpful. I think I'm really
going to need a basic walk-through at this point. Thanks
in advance.

-Dave
 
P

Phil Wilson

It would help if you posted a short script that doesn't work. Be careful that you don't use the
Wscript object - that's for WSH scripts, not Windows Installer VBScripts.
 
J

Jordan Mills

Dave Alvarado said:
All,

I've been wrestling for a few days to get a VBScript
custom action to work. Basically, I can't get the action
to run no matter what I'm trying.

What I'm trying to accomplish is to use a .vbs file to
kick off some arbitrary command-line statement. I'm
wanting to use either the Run() or Exec() methods of the
WScript.Shell object.

I've tried delivering a .vbs file, storing the .vbs file
in a stream, and putting the VBScript text in the custom
actions table. I've also tried moving the sequencing
around, and setting conditions when I'm actually
delivering the .vbs file to make sure that the component
doing the delivery isn't really installed.

Can anyone provide or point me at an example of
using .vbs scripts to perform custom actions? Something
which shows how to run a command-line statement using Run
() or Exec() would be extra helpful. I think I'm really
going to need a basic walk-through at this point. Thanks
in advance.

-Dave
For an example of one that works, see the universal wrapper at
http://www.jordanmills.com/deploy.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top