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?
inno-setup
SBK
source share