Is there any way by which we can get the path of the source file in [file] section be made available in [code] section. I need to have the full path as been given in the source. I need to check it with the content of a file and if the path is present in the file, then only i need to copy that particular file. I am using Check: in the file section and need to have the whole path of file made available in code section for comparison.
Share
To get the chosen install folder from pascal script, you can use either
ExpandConstant('{app}')orWizardDirValue(). Note that I don’t think the returned path contains a trailing backslash.This would simply check a file existence:
If it’s an ini file, you can use this code to retrieve the data of certain keys inside it:
(example using
WizardDirValue())