KRedman
Posts: 6
Joined: Tue Jun 18, 2013 3:53 pm
Location: Indiana
Contact: Website

Use a property from prerequisite in main installer?

I am working on a basic web application installer, and am including a Pre-Install package that creates a windows user so that I can add it to folder permissions and application pool settings in the main installer.

Initially, I've hard-coded the UserName and Group, but have been asked to provide the ability to customize the UserName in the setup dialog. If I do this, can I access the newly created UserName property in the main installation file? I see the 'Register prerequisite with Advanced Installer', but am unclear as to what that does.

Thanks.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Use a property from prerequisite in main installer?

Hello,

Unfortunately, you can not pass through a property, from a pre-install package in the main installation package a value.

As a workaround, after the prerequisite is installed , in your main package you can use a custom search, where the object of your search can be a registry key containing the user which just has been created. You must create the registry entry in the pre-install package.

In order to search for a registry entrance you can go in the “Search” page and use the [New Search Wizard] toolbar button and follow step-by-step wizard directions. The result of your search will be stored in a public property(e.g. USER_SEARCH_RESULT ).

You can further use this property to add its value to the folder permissions and application pool settings.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
KRedman
Posts: 6
Joined: Tue Jun 18, 2013 3:53 pm
Location: Indiana
Contact: Website

Re: Use a property from prerequisite in main installer?

Sounds like a plan. Thanks Dan.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Use a property from prerequisite in main installer?

Hello,

You're welcome!

If you have any more question just let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”