APPDIR not set - which properties are set when? - Advanced Installer Community

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!

canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

APPDIR not set - which properties are set when?

Hello everyone.

I have the problem that I keep bumping into cases where properties aren't set, specifically APPDIR in InstallExecuteSequence/Begin.

Is there a table that lists which properties are available at which stage or similar?


With best regards

Clemens Anhuth
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: APPDIR not set - which properties are set when?

Hi Clemens,

APPDIR can be set through custom actions in two ways:
- with a "Property set with Formatted" custom action before the "CostFinalize" standard action
- with a "Directory set with Formatted" custom action after the "CostFinalize" standard action

If the problem persists, please send us the AIP you are using to support at advancedinstaller dot com so we can investigate it.
Is there a table that lists which properties are available at which stage or similar?
Please note that the installer properties are available during the entire installation process. However, custom actions have some limitations for accessing these properties.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Warrigal
Posts: 43
Joined: Thu Jun 26, 2008 8:20 am

Re: APPDIR not set - which properties are set when?

This has been causing me some grief too. Is there a table that lists which Advanced Installer properties are available at which stage and what they're used for? The online help doesn't cover this very well.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: APPDIR not set - which properties are set when?

Hi,
Is there a table that lists which Advanced Installer properties are available at which stage and what they're used for?
The Advanced Installer properties are mostly public properties. Therefore, they fall under the same limitations as all Windows Installer properties. Please note that another limitation is the fact that only Immediate custom actions can access installer properties.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: APPDIR not set - which properties are set when?

Hello everyone.

To find out which property gets set when I now use the following as the "Arguments" of an Uninstall shortcut:

/lav "[APPDIR]\..\dumpproperties_deinstall.log" /x [ProductCode]

And this as Media/Bootstrapper/MSI Commandline:

/lav dumpproperties_install.log

(See "msiexec /?" for further options.)

In the resulting logs (install log gets created where the installer resides, deinstall log gets created in parent directory of installation folder) one can look for (in case of APPDIR property):

PROPERTY CHANGE: Adding APPDIR property

Then one can look for the next actions by searching the next occurrences of this line:

Doing action: xyz

...until "xyz" is an action listed in AI. That's the first action that can access the property's "correct" value.



With best regards

Clemens Anhuth

Return to “Common Problems”