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!

Ruben
Posts: 57
Joined: Fri Apr 10, 2015 2:35 pm

Can I use a Property based folder, when the property comes from a Search Operation and can be null?

We copy a file from a directory path which is found in the registry. The path may not exist; in this case the copy operation simply is omitted.

One solution is:
  • 1. Use a Search operation of type "The value contains path to a file". The Search reads the Registry and fills a property MYPATH.
    2. Define two property based folders (source and destination). The source depends on the property MYPATH.
    3. Use a File Copy operation between these folders.
Unfortunately, property based folders require their property to be a valid directory path - while MYPATH may be null.
=> Is that solution impossible ?

Thank you!
Ruben
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Can I use a Property based folder, when the property comes from a Search Operation and can be null?

Hi Ruben,

I'm afraid that a property based folder cannot have a null path. In order to avoid this you can set a default path for its related property in the "Install Parameters" page (i.e. [WindowsVolume]). If the file you want to copy will not be found at that path, the operation will not be performed anymore.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”