cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
AnthonyS
Level 2

To copy a file to the folder containing a file

I only want installer to search all hard drives to find folder with file called "somefile.dot" in it (it's six folders and subfolders deep), and then to copy my file, called "mytemplate.dot," in that same folder.

I am new to InstallShield. How do I do that?

(It would be nice if it could also run mytemplate.dot after it's copied there, and after user pressed "Finish.")
Labels (1)
0 Kudos
(1) Reply
MichaelU
Level 12 Flexeran
Level 12 Flexeran

Assuming you're using a Basic MSI project, you can do the first with a System Search (see the help for more details). Pair it with an entry in the DuplicateFiles table, and it will be copied.

The launching is easiest if you know the exe to launch, but can be done with a Custom Action either way. You can launch the custom action from a DoAction event on the dialog, and it can either be an EXE custom action, or some code you write in e.g., a DLL custom action.
0 Kudos