Installation 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!

rpmoves
Posts: 1
Joined: Mon Nov 10, 2008 6:32 pm

Installation Folder

Hi,

How do you create a msi that will not give the user the option to choose where to install the file. Currently I have people who do not install the file where they normally should (the Program Files folder.) I would like to create future MSIs to skip over the part giving the user the option to choose where they can install the file. Instead just let them know it is going to be installed in the Program files folder.

Could you please provide me with some guidance as to how I can do this?

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

Re: Installation Folder

Hi,

The easiest way of making sure that the installation folder is not changed is to remove the "FolderDlg" dialog in the "Dialogs" page. However, this approach will not let the user know where the application was installed. This can be fixed in multiple ways:
1) For a Professional and Java Application project you can create a "ScriptInline" custom action which informs the user about the installation folder. The Script Text can be set to:

Code: Select all

MsgBox "The application will be installed in the " & Session.Property("APPDIR") & " folder"
Please note that APPDIR is the property which contains the path of "Application Folder" from the "Files and Folders" page. This custom action can be scheduled under "InstallUISequence" -> "UIStarting" (you can show it by using the "Show Standard Action" button on the toolbar). This custom action can also be used in Enterprise projects.

2) For an Enterprise project you can try this:
- select the Path Edit control on "FolderDlg"
- in the Properties pane set the "Enabled" flag to "False"
- delete the "Browse" button

or you can:
- remove "FolderDlg"
- add a static text control on another dialog which tells the user where the application is installed

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

Return to “Common Problems”