Inno Setup: Get 'Don't create a start menu folder' option

Tobi

I'm working on a Inno Setup script which should check if a start menu entry with the given name already exists. The script below checks if the directory exists. The problem is that it also checks the existence even if the 'Don't create a start menu folder' option is selected and I have no idea how to get this information.

function NextButtonClick(CurPageID: Integer): Boolean;
begin
  if CurPageID = wpSelectProgramGroup then
  begin
    if DirExists(ExpandConstant('{group}')) then { if the directory is not empty }
    begin   
      { I have no idea how to get the info if the user has selected }
      { the create start menu folder option or not }
      if { USER DID NOT SELECT THE 'Don't create a Start menu folder' OPTION } then
      begin
        MsgBox('Directory already exists. Please choose a different one.',
               mbConfirmation, MB_OK);
        Result := False;
      end
        else
      begin
        Result := True;
      end; 
    end
      else
    begin
      Result := True;
    end; 
  end { wpSelectProgramGroup }
    else
  begin
    Result := True;
  end; 
end;
Martin Prikryl

Query NoIconsCheck checkbox directly:

if not WizardForm.NoIconsCheck.Checked then

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Inno Setup: Get 'Don't create a start menu folder' option

From Dev

Inno setup: don't show option if it is not checked

From Dev

Inno setup: don't show option if it is not checked

From Dev

Inno Setup CreateInputDirPage but don't check for folder existence

From Dev

Inno Setup - Get a path to parent folder

From Dev

inno setup need help about icon group under start menu

From Dev

How do I create a folder in start menu?

From Dev

Windows 10 start menu don't work

From Dev

Create a hardlink with Inno Setup

From Dev

Project setup don't create service

From Dev

Inno Setup - BorderIcons dropdown menu

From Dev

Inno Setup: restart during setup process won't start after reboot

From Dev

Inno Setup: Create simplified ComponentsList

From Dev

FullCalendar .start don't get properly hour

From Dev

Inno Setup - Create a dynamic list of components/types from external source (file or folder contents)

From Dev

The Windows start menu items don't expand unless I click on it

From Dev

How to delete a nonempty folder in inno setup

From Dev

Inno Setup: pack folder with all subfolders

From Dev

Inno Setup: Delete folder with Task function

From Dev

Inno Setup - How to set permissions of installation folder

From Dev

Creating shortcut in startup folder using Inno setup

From Dev

Inno Setup shortcuts for folder are not opening in Windows 10

From Dev

Inno Setup - Wait for Postgres database to start

From Dev

Don't create view folder on rails generate controller

From Dev

Create a Pure CSS Dropdown Menu - Children nodes don't appear

From Dev

Create a Pure CSS Dropdown Menu - Children nodes don't appear

From Dev

Inno Setup - How to instal many fonts before setup start?

From Dev

weblogic.Server to create domain but don't start it (Chef cookbook)

From Dev

Why don't I get Unity as an option when logging in?

Related Related

  1. 1

    Inno Setup: Get 'Don't create a start menu folder' option

  2. 2

    Inno setup: don't show option if it is not checked

  3. 3

    Inno setup: don't show option if it is not checked

  4. 4

    Inno Setup CreateInputDirPage but don't check for folder existence

  5. 5

    Inno Setup - Get a path to parent folder

  6. 6

    inno setup need help about icon group under start menu

  7. 7

    How do I create a folder in start menu?

  8. 8

    Windows 10 start menu don't work

  9. 9

    Create a hardlink with Inno Setup

  10. 10

    Project setup don't create service

  11. 11

    Inno Setup - BorderIcons dropdown menu

  12. 12

    Inno Setup: restart during setup process won't start after reboot

  13. 13

    Inno Setup: Create simplified ComponentsList

  14. 14

    FullCalendar .start don't get properly hour

  15. 15

    Inno Setup - Create a dynamic list of components/types from external source (file or folder contents)

  16. 16

    The Windows start menu items don't expand unless I click on it

  17. 17

    How to delete a nonempty folder in inno setup

  18. 18

    Inno Setup: pack folder with all subfolders

  19. 19

    Inno Setup: Delete folder with Task function

  20. 20

    Inno Setup - How to set permissions of installation folder

  21. 21

    Creating shortcut in startup folder using Inno setup

  22. 22

    Inno Setup shortcuts for folder are not opening in Windows 10

  23. 23

    Inno Setup - Wait for Postgres database to start

  24. 24

    Don't create view folder on rails generate controller

  25. 25

    Create a Pure CSS Dropdown Menu - Children nodes don't appear

  26. 26

    Create a Pure CSS Dropdown Menu - Children nodes don't appear

  27. 27

    Inno Setup - How to instal many fonts before setup start?

  28. 28

    weblogic.Server to create domain but don't start it (Chef cookbook)

  29. 29

    Why don't I get Unity as an option when logging in?

HotTag

Archive