cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dmetzler
Level 6

MoveFiles table entries

In the MoveFiles table, I want to set the SourceFolder to the location where the .msi is located when it is run, and the DestFolder to the location [ProgramFilesFolder]MyProgram\Data.

1) Is there a variable to determine where the source .msi is located?

2) The MoveFiles table does not allow the '[' or ']' character. How can I set the DestFolder to the path: [ProgramFilesFolder]MyProgram\Data ?

Thanks,

Don Metzler
Labels (1)
0 Kudos
(4) Replies
dan_galender
Level 10

1. Look at the SourceDir property.

2. Use the "Browse, Create, or Modify a directory entry..." in a component's Destination property or create the folder structure in the Files and Folders view to create a directory entry and set the Directory Identifier to that folder. Use that identifier name in the MoveFiles table.
0 Kudos
dmetzler
Level 6

Thanks. This is working (and sorry for the LATE reply).

Now one final step. The files installed from the MoveFile table: I want to delete these files on uninstall. How can I create a custom uninstall step to delete files in \Program Files\Company\Program folder? It looks as if I can create a New InstallScript Custom Action. How/where can I add the code for this custom action?

Thanks,

Don
0 Kudos
dan_galender
Level 10

Take a look at the RemoveFile table. Avoid the custom action route if you can.
0 Kudos
dmetzler
Level 6

DanGalender wrote:
Take a look at the RemoveFile table. Avoid the custom action route if you can.


That did it - thanks.

Don
0 Kudos