Try running the script from the command line to debug it:

Dim fso, dest, src
Set fso = CreateObject("Scripting.FileSystemObject")
dest = Session.Property("C:\InstallDir")
src = Session.Property("C:\SourceDir")
fso.CopyFolder src, dest




On Tue, Aug 5, 2008 at 1:06 PM, Rohit Lodha
<[EMAIL PROTECTED]>wrote:

> Eitan Behar wrote:
> > Hi Rohit,
> > I suggest you to print (echo) the values for INSTALLDIR and SOURCEDIR and
> > try to run the script directly from the command shell, this will give you
> > exactly the error during the copy operation.
> > Reasons could be: target folder already exists, it's read only, source
> not
> > found, etc...
> > Regards,
> > Eitan
> >
> >
> I did and the values are okay.
>
> Is the installdir readonly? anything with privileges? I am on vista.
> > On Tue, Aug 5, 2008 at 8:24 AM, Rohit Lodha
> > <[EMAIL PROTECTED]>wrote:
> >
> >
> >>  <CustomAction Id="CopySetupFiles" Script="vbscript">
> >>      <![CDATA[
> >>      Dim fso, dest, src
> >>      Set fso = CreateObject("Scripting.FileSystemObject")
> >>      dest = Session.Property("INSTALLDIR")
> >>      src = Session.Property("SOURCEDIR")
> >>      fso.CopyFolder src, dest
> >>      ]]>
> >>    </CustomAction>
> >>    <InstallExecuteSequence>
> >>      <RemoveExistingProducts After="InstallInitialize" />
> >>      <ResolveSource After="CostInitialize"/>
> >>      <Custom Action="CopySetupFiles"   Before="InstallFinalize">Not
> >> Installed</Custom>
> >>    </InstallExecuteSequence>
> >>
> >> This fails on fso.CopyFolder
> >>
> >> Any Idea, Why?
> >>
> >> Regards,
> >> Rohit
> >>
> >>
> -------------------------------------------------------------------------
> >> This SF.Net email is sponsored by the Moblin Your Move Developer's
> >> challenge
> >> Build the coolest Linux based applications with Moblin SDK & win great
> >> prizes
> >> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >> _______________________________________________
> >> WiX-users mailing list
> >> WiX-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wix-users
> >>
> >>
> >
> >
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to