installing only if APPDIR does not exist - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

attila.gymolnar
Posts: 4
Joined: Wed Aug 29, 2012 4:00 pm

installing only if APPDIR does not exist

Hi,
I would change our install package, to add the restriction:
install into APPDIR if only if directory does not exist

If this fails, the install shall abort with a standard error message, with all the translations.
I guess this is trivial, but I have not found it in the menu.

version AIP 7.3.1

thanks a lot,
Attila
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: installing only if APPDIR does not exist

Hello Attila and welcome to Advanced Installer forums,

In order to achieve what you want you can use a custom launch condition which will check if your installation folder already exists on target machine or not.

Here's the step to proceed:
- Go to "Search" page and add a new search (i.e. MY_SEARCH) using "New Search" context menu option.
- Select the added search and from its context menu option choose "Add Location -> Folder". Set the "Path" field, from "Directory Properties" right pane, with the path which is set in the "Application Folder" field from "Install Parameters" page (i.e. [ProgramFilesFolder][Manufacturer]\[ProductName]).
- Go to "Launch Conditions -> Custom" tab ( or "Prerequisites -> Custom Launch Conditions" tab if you are using version 7.3.1 of Advenaced Installer) and add a new launch condition like this:
  • Condition: NOT (MY_SEARCH)
    Description: Desired description
- Build and run your project.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”