Portalman66
Posts: 8
Joined: Thu Jan 23, 2025 9:55 am

Installer property in organization condition

Hello,

I want to install some files only if their folder on the target system is not yet existing. If the folder is already existing, the files should not be installed. So I made a powershell inline script (immediate execution time) and placed it in the Install Execution Stage after Preparing to check if the folder exists and if it does not exist I set a installer property DO_COPY_FILES to "TRUE". If the folder exists the property is not defined. It is also not defined in the "Properties" page list. When I check the property value in a following powershell script I get the expected behaviour ("TRUE" if the folder does not exist, empty if the folder exists).
But when I use the property as a condition in the organization page for the component of the files (I just added the property name to the condition field) the files are never installed, even when the folder exists and the property DO_COPY_FILES is "TRUE".

Where is my error? Can you please help me?

Greetings,
Portalman
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Installer property in organization condition

Hello Portalman,

Can you try with the "DO_COPY_FILES = "TRUE"" condition? If you have a default value, it is not enough to just add the property name.

If that does not help, can you please send us the .AIP (setup project) file by email to support at advancedinstaller dot com so we can further test and investigate this?

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”