Search code examples
windows-installersetup-projectfile-exists

Windows Installer Folder Exists Property


I am creating a Windows Setup Project for a Windows Forms application. Typically our application gets deployed to two different clients, those with a specific Printer Driver, and those without. Our current installshield setup checks to see if the drivers exist based on whether or not a directory exists (i.e. C:\PrinterDriver). If the directory exists, the setup copies over the necessary files.

In the WindowsInstaller project's File System, I created the folder C:\MyProjectFiles\PrinterDriver. I want those files to be copied only if the directory C:\PrinterDriver exists. If the directory does NOT exist, the setup should still proceed without copying over the files, but not rollback. Any ideas on how to approach this?


Solution

  • Add a file search and use the property in the file condition.