## Step 4: Installation directory |
previous | up | next

In this step of the Windows media wizard you define options for the installer.

| In the `Installation directory` section of this step you determine how the installer will suggest an installation directory to the user: Installation directory Enter a simple directory name (without backslashes). The standard location for applications will we prepended to this directory name. In other words: do not enter `C:\Program Files\MyApplication` but only `MyApplication`. The installer will find out the correct equivalent for `C:\Program Files` at runtime. By default, install4j will suggest the short name you have entered in the general application options. It is also possible to enter a composite relative directory like `My Corp\MyApplication`. Use custom installation base directory If you do not want to install your application to the standard application directory, you can enter a custom base directory here. This is useful for internal deployments with non-standard directory policies. The installation directory entered above will be appended to the custom base directory. For example, if the application should be installed in `D:\apps\MyApplication`, check the custom installation base option, enter `D:\apps` in the text field below it and enter `MyApplication` in the installation directory text field above.

| In the `Privileges` option you can prevent non-admin users to perform the installation by checking the `require admin privileges` checkbox. If a user does not have admin privileges ("root" on Unix platforms), a corresponding warning message will be displayed and the installer will be terminated.

| In the `Finish options` section of this step you can allow the user to select an action after the installer has finished: No action The installer will finish without offering any options. Ask user to reboot The installer will ask the user to reboot the computer. If the user approves, the computer will be rebooted automatically. For unattended installations, this reboot will be performed without prompting the user. Note that you can also influence the reboot behavior in custom install actions and custom screens by invoking `rebootAfterFinish()` on the context. Please see the API documentation for more information. Allow user to start launcher On the finish step, the installer will include an option to start a launcher after the installation wizard is closed. If you choose this option, you have to select one of the launchers from the adjacent drop down list.

| Click [Next] to proceed to the next step or [Cancel] to leave the Windows media wizard without applying any changes.