Need help with running vbs in Custom Action's Commit

Giganews Newsgroups
Subject: Need help with running vbs in Custom Action's Commit
Posted by:  Pucca (Puc…@discussions.microsoft.com)
Date: Mon, 7 Jan 2008

Hi,
I have the following vbs that gets put in the applicaiton directory with my
setup program.  Becuase these 2 dlls have to be registered in a certain
order.  I don't think there is a way to specify that in the File System of my
Setup project.  I use the following vb script and add it to the Custom
Actions' Commit stage.  However, when I run set up I would keep getting error
that the script can not be run.  If I double click the vbs file to run it
manuly, it runs just fine.  Does anyone know what could be causing this?
Thank you.
set objShell = CreateObject("Wscript.Shell")
objShell.Run("regsvr32 /s somename.dll")
objShell.Run("regsvr32 /s 2ndfile.dll")

--
Thanks.

Replies