cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
khansen
Level 5

Code or variable to get file name

If one was to write a custom code rule to be applied against a file in the install phase, is it possible to get the file name and/or path either from a variable or with custom code?
Labels (1)
0 Kudos
(3) Replies
qqqqqq
Level 7

com.installshield.wizard.service.file.FileService is this of any use to you?:confused:
0 Kudos
RobertDickau
Flexera Alumni

Could you post an example of how the rule would be applied to a particular file?
0 Kudos
khansen
Level 5

For example, if I want to write a custom code rule to get the version of a specific file in the install phase, it would be great if I could get the name and path from InstallAnywhere to use in that rule. If I have to check a bunch of files it becomes painful to have to set my own variable with the file name and path to pass into the rule.

There is some correlation between the "Check if File/Folder Exists" and the "Compare File Modification Timestamp" rules and the file they are applied to. You don't need to specify the file name or path.
0 Kudos