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!

dmcmeans
Posts: 3
Joined: Mon Aug 14, 2006 5:59 pm

PseudoFormatted field in Install Parameters not working

I'm setting a Property on the Install Parameters page as

OracleFolder =
[|CommonAppDataFolder]USAF\AMJAMS\bin\Ora10\

I read in the help that the Install Parameter Properties are PseudoFormatted types:

"The Advanced Installer PseudoFormatted data type is a string which can contain references to Properties. At build time the property references are
replaced with the value of the respective properties."

So, this won't work (it isn't working) because I need the [CommonAppDataFolder] property to be resolved and install time, not build time, yes?

OK. Is there a way to use a install-time folder reference in a custom property?

I need a way to easily move the installation location of a component (the Oracle files). As it is, I have to scour my installation package for all references and chances are I'm going to miss one.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
So, this won't work (it isn't working) because I need the [CommonAppDataFolder] property to be resolved and install time, not build time, yes?
PseudoFormatted fields are resolved at build time and the CommonAppDataFolder property is resolved at install time. You cannot use properties that are resolved at install time in the PseudoFormatted fields.
OK. Is there a way to use a install-time folder reference in a custom property?
Create a "Property Set with Formatted" custom action under "InstallUISequence->Begin" section. Use following options for this custom action:
1. Property Name: ORACLEFOLDER (public property defined in the "InstallParameters" page)
2. Formatted Text: [CommonAppDataFolder]USAF\AMJAMS\bin\Ora10
3. Execution Condition: empty

Now drag & drop (while shift key is pressed) this custom action to "InstallExecutesSequence->Begin".

Let me know if you encounter any problems.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”