Community Forums
Results 1 to 4 of 4

Thread: Copy File Action question

  1. #1
    dmcelfci Guest

    Copy File Action question

    I'm trying to make my install ask the user for the location of a file and then copy that file to a directory I'm installing. I can make it work fine if I hardcode the file I want to be the source. When I try to use String Resolution to find my source file $W(, I get an exception.

    I've also tried passing it back as a Product Bean property which doesn't seem to work for me either. I know this must be a fairly common task and I am probably just missing something.

  2. #2
    Jeff Dillon Guest
    What exact values are you specifying for the properties of the Copy File bean?

  3. #3
    dmcelfci Guest
    Source = $W(OraclePanel.OracleDriver)
    * resolves to c:\temp\oracle.jar


    When I try this, I get the exception below(C:\installer is the directory I'm installing to).

    (May 20, 2003 11:12:04 AM), Install.product.install, com.installshield.product.actions.CopyFile, err, ProductException: (error code = 601; message="err"; additional data = [C:\installer\ is an existing file])
    ProductException: (error code = 601; message="err"; additional data = [C:\installer\ is an existing file])
    at com.installshield.product.actions.CopyFile.install(
    at com.installshield.product.actions.CopyFile.replace(
    at com.installshield.product.service.product.PureJavaProductServiceImpl.replaceProductAction(
    at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.getResultForReplaceProductAction(
    at com.installshield.product.service.product.InstallableObjectVisitor.replaceComponent(
    at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(
    at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(
    at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(
    at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(
    at Source)

  4. #4
    dmcelfci Guest
    Not sure what exactly I was doing wrong, but I have it working fine now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts