Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2004
    Posts
    4

    Install file if I found a directory

    Hi.

    I need to install a file in "c:\example\pef" only if this directory exist. This directory is from another instalation, and I need to put some properties files in this directory BUT ONLY if the directory exist yet.

    Any ideas?

  2. #2
    SUF6NEWBIE Guest
    Hi there...A few thoughts..

    Some actions in the "on startup'

    Consider establishing if any file exist in your target folder
    use the file find action and use *.* as your search criteria

    create a variable to return the result of the file find eg: %TargetFolder%

    establish if returned true or not

    you could then assign a control install value for eg: %TargetExist% = true

    In your Build Environment "Install conditions" select your 'to install' files
    and assign the condition eg: if %TargetExist = true

    Sorry about the syntax , just look up the actions etc for correct syntax

    As long as you have established wether true or false in the BEFORE Installing sequence you should be good to go..

    Have a look at the "installfile" action...this is an alternate method which
    is essentially a copy file action but with more copy 'conditions' controls

    Hope Helps a little

  3. #3
    Join Date
    Sep 2004
    Posts
    4
    I was searching to do it with the conditions of a file...

    but finally I get with this "after installation" actions:

    Searchr for file ("%FileSearchResult%" = location of app.exe)
    IF (%FileSearchResult% <> "NOT FOUND")
    Copy Files (%AppDIR%\MyFile.txt -> c:\MyDir\MyFile.txt)
    END IF

    app.exe its then executable in "c:\MyDir" that I'm searching for, if I found the executable I copy my file in this directory

    Works fine
    Thnks

  4. #4
    SUF6NEWBIE Guest
    Good Job...glad you got it working.

Similar Threads

  1. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  2. HOWTO: Download and Install Files from the Web
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-23-2002, 01:16 PM
  3. HOWTO: Install Files to the Windows Directory
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-18-2002, 02:33 PM
  4. Can search allow manual browse even if file is found?
    By RichardShaw in forum Setup Factory 5.0
    Replies: 2
    Last Post: 08-28-2000, 06:08 PM
  5. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Posting Permissions

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