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
FOLLOW US
Get the latest news in Application Packaging