Rami
Posts: 2
Joined: Mon Aug 19, 2019 8:45 pm

Custom Property not getting resolved at the time of installation.

Hi,

I created a custom property as shown below.

Name : TestProp
Value : [|ProgramFilesFolder]Temp

When I ran the MSI generated with log (/L*V "example.log"), I see below generated value.

TestProp = Temp

I do not see C:\Program Files (x86)\Temp

My requirement is to set the custom property with a specific path. Assign this property to the External File ShortCut's Working Directory.
Please let me know a possible solution. If possible, let me know an alternate solution to set the working directory of a external file shortcut (shortcut file is not in the APPDIR).

Thanks,
Rami.
Rami
Posts: 2
Joined: Mon Aug 19, 2019 8:45 pm

Re: Custom Property not getting resolved at the time of installation.

I was able to solve this issue by using Set Installer Property custom action. Then the property was resolved properly which I used to set the Working Directory of External File Shortcut.
PS. The initial value of the property (in Install Parameters) is set to a valid directory.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Custom Property not getting resolved at the time of installation.

Hello Rami and welcome to our forums,

Thank you for your follow up on this. I can confirm you that you cannot use a pseudo-formatted reference of "ProgramFilesFolder" property in the value field of your property defined in "Install Parameters" page.

Using a "Set Installer Property" custom action is the right approach to fulfill your requirement.

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

Return to “Common Problems”