Silent install to non-standard folder - 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!

dlorde
Posts: 31
Joined: Tue Feb 13, 2007 3:19 pm
Location: London, UK
Contact: Website

Silent install to non-standard folder

Our network team wants a scripted MSI installer for our Java product that silently (no dialogs) installs to a non-standard program files directory (for some reason they don't want to use the default C:\Program Files directory, but one on another drive (N:\Program Files).

I can hard-code the path they require into the Install Parameters/Installation Folders/Application Folder field, e.g. N:\Program Files\[Manufacturer]\[ProductName], but I can't find a way to put the ancilliary files onto the N:\Program Files\Common\[Manufacturer]\[ProductName] folder. The Files and Folders panel won't let me create a custom folder in the Target Computer tree.

It might help if I could create a User Property for N:\Program Files, but I can't find how to do that.

Any ideas?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
but I can't find a way to put the ancilliary files onto the N:\Program Files\Common\[Manufacturer]\[ProductName] folder
I don't consider using an hard coded path for a folder is a good practice. However here is how you can do that: create a property in the "Install Parameters" page. Switch to "Files and Folders" page and create a "New Folder->Property Based" and select the property created below.

Now switch to "Custom Actions" page and create a "Property Set With Formatted" custom action under "InstallUISequence->Begin" and use following options:
Property Name: the property created above (this property must be in upper cases - public property)
Formatted Text: N:\Program Files\Common\[Manufacturer]\[ProductName]

Now drag this custom action (while shift key is pressed) to "InstallExecuteSequence->Begin" standard action.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
dlorde
Posts: 31
Joined: Tue Feb 13, 2007 3:19 pm
Location: London, UK
Contact: Website

Thanks gigi, I'll have a play with that.

I agree that using a hard-coded path is undesirable, but this is a special case for CITRIX installations, and apparently the Windows system program files directory has been reserved for system tools, so application files go elsewhere.

I did eventually manage to get the application program files and common files to go to the right paths by creating a property for each path and creating property-based folders under the Target Computer - then just moved the files from the standard folders into the new ones - and it worked... not sure if there may be any problems doing it this way. Maybe your way is best.

My problem now is to get a silent (no dialogs) install... Is it possible to disable all the dialogs?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
My problem now is to get a silent (no dialogs) install... Is it possible to disable all the dialogs?
Use "Limit to basic user interface..." option from the "Install Parameters" page.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
dlorde
Posts: 31
Joined: Tue Feb 13, 2007 3:19 pm
Location: London, UK
Contact: Website

Excellent! It's all working just how we wanted.

Thanks very much gigi - I'm continually amazed how easy and stable Advanced Installer is... we used to struggle with InstallShield just to get it to build a basic install (which took much longer), and most of the time what it produced would fail to install properly, if at all.

As a software developer myself, may I congratulate the Caphyon team on a really good quality piece of software that's a pleasure to use :-)

Return to “Common Problems”