aliaslam
Posts: 1
Joined: Thu Feb 04, 2021 2:15 pm

Select Installation type on runtime

I need to create a dialog while installation that will represent these values
• Per-user only
• Per-user only (with administrator rights required)
• Per-machine only (fails if the user is not administrator)
• Per-machine if the user is an administrator, per-user otherwise

And my installation will proceed based on user feedback. Can we implement such dialog?
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: Select Installation type on runtime

Hello and welcome to our forums,

Those four values can actually be reduced to:

- per-user

- per-machine

Basically, a per-user installation can be performed whether the user is an administrator or not and a per-machine installation can only be performed if the user is administrator.

To achieve the above, please go to "Dialogs" page --> select the "WelcomeDlg" dialog --> "Add dialog" button from the toolbar and select the predefined "InstallTypeDlg" dialog.

This dialog will allow the user to choose where the application will be installed:

Local User - The application will be available only for the user who runs the installation package.
All Users - The application will be available for all users. For this type of installation, a user with administrator privileges is required.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”