zidane
Posts: 4
Joined: Thu Nov 07, 2024 10:16 am

Use APPDIR in Search

How i can use APPDIR property in Extended Search?
I want to obtain the file version from the directory that the user selects during the setup process
Catalin
Posts: 7030
Joined: Wed Jun 13, 2018 7:49 am

Re: Use APPDIR in Search

Hello and welcome to our forums,

Not quite sure I fully understand your question here.

If possible, could you please provide some more deatils so I can better assist?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zidane
Posts: 4
Joined: Thu Nov 07, 2024 10:16 am

Re: Use APPDIR in Search

Thank you.
I want to retrieve the version of a file in the path chosen by the user (APPDIR) and display a message to the user before starting the installation.
Catalin
Posts: 7030
Joined: Wed Jun 13, 2018 7:49 am

Re: Use APPDIR in Search

Hello,

I'm afraid that might not be possible, because both the installation folder (APPDIR) and the EXE file inside it do not exist at that point (before the installation is started).

Achieving what you want might be possible by also adding your EXE as a temporary file and then checking its' version using a custom action.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zidane
Posts: 4
Joined: Thu Nov 07, 2024 10:16 am

Re: Use APPDIR in Search

thank you for your answer. I want to use the setup as an update (without uninstalling) that just copies files and performs some checks on the old files. In this case, the old executable file exists inside the application directory.
zidane
Posts: 4
Joined: Thu Nov 07, 2024 10:16 am

Re: Use APPDIR in Search

Finally, I solved this problem by calling the DLL in Custom Action.
Catalin
Posts: 7030
Joined: Wed Jun 13, 2018 7:49 am

Re: Use APPDIR in Search

Hello,

Thank you for your followup on this!

I am glad to hear you managed to get this to work.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”