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!

Joma

Custom actions, vbs

Hiya

Im trying to add a custom action that registers typelib files (dont think thats possible any other way?), but im running into some problems.

In my action im using Session.Property(..) to retrieve installtion location of the files i should register, but i need to register the property as a custom action "Property formatted", if i understand everything correctly. However that specific menu item is unselectable for me. The "Property source" is selectable, but thats not what i want (?).

As you can see im not really 100% sure if im doing things right here, so any input would be appreciated. What i want (if registration of .tlb files isnt available in other ways) is to know HOW to access installation paths in my VB script.

Regards
J Mattsson
Guest

Hi,

For a deffered custom action only a few properties are available but always is available a property named "CustomActionData". This property must be set by a custom action of type "Property Formatted" having as property name the exact name of the custom action in which you want to use it and the formatted text the value you need-in your case it might be [TARGETDIR].

Custom actions of type Property Formatted must be have immediate execution so that it is not posible to create them in "folders" where the default is of type defferred. If you schedule your custom action at install time create this custom action after ServiceInstall standard action.

Return to “Common Problems”