Hello,
I want to check if a file exists in APPDIR before installing my program.
My event is the last one in InstallDlg
Please note that the property assigned to the search operation (in your case
GTA property ) will be set with the full path to the .EXE file (e.g. C:\Program Files (x86)\GTA\GTA5.exe) if the file can be found on the target machine, otherwise the property will be empty.
AdvancedInstaller dosen't check if the file exists or not in APPDIR, it goes straight for the install anyway. How can I get this to work?
Note that the APPDIR is set after the
AppSearch standard action. The search operations defined in the
Search view are performed by the
AppSearch standard action. This is why you cannot use APPDIR as specific search folder location.
However, you can try to search for the .EXE file either on all fixed drivers (if you don't know a specific folder e.g. [ProgramFilesFolder]) and increase the deep in the directory structure where the search should go.
By the way, have you checked to see if there is any registry entry that contains the install path of GTA?
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging