VBScript Custom Actions Not Running

  • Thread starter Thread starter Dave Alvarado
  • Start date Start date
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
 
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.
 
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
 
Back
Top