Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inno Setup - allowing user to choose "just me" or "anyone using this computer"

Some installers I come across give me the choice of installing the app "just for me" or "for "anyone who uses this computer".

How can I get my Inno Setup script to present the user with this choice, so that I can then change what the installer does according to how they answer?

like image 891
rossmcm Avatar asked Apr 08 '11 13:04

rossmcm


People also ask

How do I set up Inno Setup?

Go to Menu, Project, then Compile to compile and create the setup file. This will create a complete installer. Run the Setup and your application will be installed correctly. Innosetup offers an awesome alternative to create great looking Installers for free.

How do I create a desktop shortcut for Inno?

In [Files] section, you install your giotto. ico to the application folder (you may want to install the icon only when the desktopicon task is selected). In [Icons] section, you create the desktop icon using the installed giotto. ico (when the desktopicon task is selected).


1 Answers

There's a lot of ways to interpret the answer to the "just me" vs. "all users" question. Just a few aspects off the top of my head:

  • The most common approach appears to be to simply control whether shortcuts (start menu, desktop, quicklaunch) are placed in the current user's profile or in the "All users" profile (which I personally find rather silly - what if I want more than one user - but not all - to use the app?).

  • Is the app itself installed into the user profile (Google Chrome-style) or to {programfiles}?

  • Are settings stored in the current user's profile or the All Users profile? Or maybe even directly inside the program folder (don't!)?

If you want to know how to create a wizard page with radio buttons to control this, check the section on using Custom Wizard pages in the InnoSetup help file. Look for the CreateInputOptionPage function and then use the returned TInputOptionWizardPage's Add method to add the radio buttons.

like image 171
Oliver Giesen Avatar answered Oct 30 '22 16:10

Oliver Giesen