1

I'm working on a program that allows users to remove files to replace with their own files (sound or image files). In the event the user uninstalls and re-installs the program, the files that were replaced by the user should be preserved and not replaced.

I've done a bit of reading and trial and failure on using the Search Target Machine part of the Setup and Deployment project and it has failed every single time.

My current method is the one prescribed here: (But this is for VS 2008, not 2010 the one I am using): Visual Studio Setup Project conditional if File Exists This is exactly what I'm doing:(Except for instead of or (The Files Name), I'm using the actual file name or property.

Search Target Machine:
    <Search Item>
        Depth (1) (It's kept in a subfolder)
        FileName (The Files Name)
        Folder [TARGETDIR]
        MaxDate through MinVersion are kept blank
        Property: <FILENAMEEXISTS>

And for the file itself:

 Condition: NOT <FILENAMEEXISTS> (Exactly like that, case and everything).

What am I doing wrong here?

Community
  • 1
  • 1
Will
  • 3,413
  • 7
  • 50
  • 107

0 Answers0