Make Application Directory Shared (or Not) dependent upon In - 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!

dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Make Application Directory Shared (or Not) dependent upon In

Hi

AI 7.7
Client Server Build (of sorts)

I'm trying to amalgamate two installations, one for standalone client machines, and one for networks (which contains a seperate basic installer to create shortcuts on networked clients for gpo deployment) as it's much easier for the targeted end users to have every program variant on one cd. I have been able to configure just about every variable between the two types of installation bar one, namely the Application Directory properties.

If the installation is to be for a network then the application directory needs to be shared, if on the other hand it's for a client installation (as in a completely standalone machine) it doesn't.

There are two builds in the project and in most cases where there are decissions to be made about the installation there are options for either the client or server build. Needless to say there is no such option for setting the application directory properties. Am I missing something obvious or can't this be done?

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

Re: Make Application Directory Shared (or Not) dependent upon In

Hi Dom,

Unfortunately the shared folder option cannot be conditioned. However, you can try this approach:
- in "Install Parameters" page create a custom property which represents the client installation folder
- use this property for a property-based folder in "Files and Folders" page (it now represents the client installation folder)
- in "Custom Actions" page use a "Property set with formatted" action to set the property to a default path
- this action should be shared between "InstallUISequence" -> "Begin" and "InstallExecuteSequence" -> "Begin"
- create a custom dialog similar to FolderDlg and configure it to use your custom property instead of APPDIR
- condition this dialog with the installation type (client or server)

This way the client installation uses a separate folder with its own path dialog. Please note that dialog conditioning is easier in 8.0 version.

Another approach is to use a custom action to share the folder instead of using the Windows Installer support.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”