This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Code or variable to get file name
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 10, 2008
04:03 PM
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?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 11, 2008
02:44 AM
com.installshield.wizard.service.file.FileService is this of any use to you?:confused:
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 11, 2008
10:33 AM
Could you post an example of how the rule would be applied to a particular file?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 12, 2008
11:03 AM
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.
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.