Installed Inno Setup installer does not display the Select Destination page on some systems

I create my application with py2exe and pack it into the exe installer using Inno Setup on Windows 7. The installer created in this way can be installed on both Windows 7 and Windows 10. When it works, the installer displays the following screens in sequence:

  • Welcome screen
  • EULA Screen
  • The default location (or previous installation), allowing the user to select a new installation location,
  • Confirmation of installation location and
  • conventional installation screens.

This is the behavior that I get with Inno Setup 5.5.5 or lower.

With Inno Setup 5.5.7 and higher (I didn’t try to run 5.5.6), the installer is created normally and can be configured as described above in Windows 7. However, the same installer cannot show screens 1 and 3 from the list above when configured in Windows 10: Setup starts directly from the EULA screen and then proceeds to confirm the installation location. The confirmation screen does not even display the directory in which the installation will be performed.

Continuation allows you to perform installation in the default location, and the application works fine. Ignorance of the installation site is very annoying and undesirable.

The .iss file I use (see below) is identical in the different versions of Inno Setup that I tried. The DefaultDirName file DefaultDirName set explicitly (based on the version of the application).

 ; WARNING: This script has been created by py2exe. Changes to this script ; will be overwritten the next time py2exe is run! [Setup] AppName=MyApp AppVersion=2.0.1 AppVerName=MyApp 2.0.1 AppPublisher=Company, Inc. AppPublisherURL=www.company.com AppContact=support@company.com AppCopyright=Copyright (C) 2010-2016, Company, Inc. LicenseFile=license\MyAppEULA.rtf SetupIconFile=icons\CompanyScreeningProgram.ico WizardImageFile=icons\MyAppImage.bmp WizardSmallImageFile=icons\MyAppSmallImage.bmp DefaultDirName=C:\MyApp_v2.0.1 DefaultGroupName=MyApp Compression=lzma OutputDir=F:\Python\dist\ OutputBaseFilename=MyApp_2.0.1_Setup [Files] Source: "MyApp_main.exe"; DestDir: "{app}\"; Flags: ignoreversion Source: "lib\_bsddb.pyd"; DestDir: "{app}\lib"; Flags: ignoreversion ;. ;. ;. 600 lines of Source: Source: "mpl-data\stylelib\grayscale.mplstyle"; DestDir: "{app}\mpl-data\stylelib"; Flags: ignoreversion 

I also tried packing the installer using Inno Setup (5.5.7 and 5.5.9) on Windows 10, but it had the same behavior.

I was wondering if I need to set additional parameters for the installer to work correctly in Windows 10 and for newer versions of Inno Setup?

+7
inno-setup
source share
2 answers

Indicate change history for Inno Setup 5.5.7 :

As recommended by the Microsoft Desktop Application DisableWelcomePage , DisableWelcomePage now defaults to yes . Additionally, DisableDirPage and DisableProgramGroupPage now auto by default. By default in all previous versions is not no .


Output:

  • By default, this welcome page no longer displays. To enable it, set DisableWelcomePage :

     DisableWelcomePage=no 

    I do not think that you are right in your statement that the page is displayed in Windows 7.

  • The "Select Destination" page is displayed only for fresh installations, not for "updates." So this has nothing to do with Windows 7 and Windows 10. The difference is probably that you have the application installed on Windows 10; and you don’t have it on Windows 7.

    To always show the page, set DisableDirPage :

     DisableDirPage=no 

The thought mentioned in the above quote is recommended by default, so you should follow it.

+13
source share

I found other options that affect it.

 CreateAppDir=no 

CreateAppDir says:

If it is set to no, the directory for the application will not be created, the destination wizard page will not be displayed, and the directory constant {app} is equivalent to the directory constant {win}. If the uninstall function is enabled when CreateAppDir is not, uninstall data files are created in the Windows system directory.

+2
source share

All Articles