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!

GenericUsername
Posts: 1
Joined: Wed Mar 23, 2016 2:32 pm

Remove property based folder based on Searching registry

Hello,

I have a problem which I cannot seem to find an answer to and decided to ask these forums for some insight into my problem.
My problem is that when im creating an installer I like to use the search and scan the registry for installation paths (primarily of Office products) and then create a new property based folder. The problem im having is that if a search for a registry key cannot be found the property based folder is still created in the root directory ( C:\ ).

Is there any way to stop the folder from being created (or delete it) if a search cannot retrive a value?

Any help with this problem is apprenciated, thank you for reading.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Remove property based folder based on Searching registry

Hello and welcome to Advanced Installer forums,

In order to condition the property based folder creation you can condition the installation of the component that has been assigned. You can condition the component installation through the property that has been assigned to the search operation.

So, to condition the component that has been assigned to the property based folder, please proceed as follow:
  • Select the property based folder in the Files and Folders view
  • Use the F8 keyboard shortcut or the Go to Component option from the toolbar view
  • You will be redirected to the component properties from the Organization view
  • Add the property that has been assigned to the search operation in the Condition field of the related component.
In the condition field, you can add a Windows Installer condition which is evaluated and the result determines the component's installation. If the condition is null (the property assigned of the search operation is empty) or is evaluated to false, the component is not installed.

Please let me know if everything is working as expected.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”