Search for [APPDIR] returns C:\ - 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!

bjk68
Posts: 55
Joined: Tue Dec 01, 2009 12:45 pm

Search for [APPDIR] returns C:\

I need to test for the existence of the [APPDIR] folder, because I want to make an xcopy backup of it, if it exists.
I defined a new Search and added a Location with the following Directory Path: [APPDIR]

My [APPDIR] variable translates to "D:\applications\myapp". This folder exists, but when I click on "Test Search", the result is "C:\". :o

This look like a bug, or am I doing something wrong.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Search for [APPDIR] returns C:\

Hello,

This is not a bug. I am afraid Windows Installer does not directly support this behavior. You will have to use a custom action to determine the existence of the APPDIR folder.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”