[WIP] installer: Update InnoSetup from 5.6.1 to 6.1.2#327
[WIP] installer: Update InnoSetup from 5.6.1 to 6.1.2#327dennisameling wants to merge 2 commits into
Conversation
a35fb77 to
50f7788
Compare
| WizardImageFile={#SourcePath}\git.bmp | ||
| WizardSmallImageFile={#SourcePath}\gitsmall.bmp | ||
| MinVersion=0,5.01sp3 | ||
| MinVersion=6.0 |
There was a problem hiding this comment.
Bumped the MinVersion to 6.0 (Vista)
There was a problem hiding this comment.
I guess that means we could drop our own check wether we're running on vista or later.
There was a problem hiding this comment.
It needs to stay there, otherwise InnoSetup will default to 6.1sp1:
Change in default behavior: Starting with Inno Setup 6.1 the [Setup] section directive MinVersion defaults to 6.1sp1, so by default Setup will not run on Windows Vista or on versions of Windows 7 and Windows Server 2008 R2 which have not been updated. Setting MinVersion to 6.0 to allow Setup to run on Windows Vista is supported but not recommended: Windows Vista doesn't support some of Setup's security measures against potential DLL preloading attacks so these have to be removed by the compiler if MinVersion is below 6.1 making your installer less secure on all versions of Windows.
There was a problem hiding this comment.
No, i meant since InnoSetups requirement and this MinVersion=6.0 check are in place, we don't need this check anymore:
build-extra/installer/install.iss
Lines 1000 to 1006 in dbd9c2c
| Form.Caption:='Git Uninstall: Removing in-use files'; | ||
| Form.ClientWidth:=ScaleX(500); | ||
| Form.ClientHeight:=ScaleY(256); | ||
| Form.Center; |
There was a problem hiding this comment.
Had to remove this due to the following error:
Launching Inno Setup compiler ...
Error on line 3369 in C:\git-sdk-32\usr\src\build-extra\installer\install.iss: Column 14:
Unknown identifier 'CENTER'
|
|
||
| # Download the most recent Inno Setup version. | ||
| installer="is-unicode.exe" | ||
| installer="is.exe" |
There was a problem hiding this comment.
There's no longer an is-unicode.exe file. Details:
Change in default behavior: Starting with Inno Setup 6 there's only one version available: Unicode Inno Setup. Unicode Inno Setup has been available for 9 years but in case you have not yet updated to it: please see the Unicode Inno Setup topic in the help file for more information. Basically, unless you're using [Code] to make DLL calls with string parameters you shouldn't have to make any changes to your script.
There was a problem hiding this comment.
I did the same in dscho/build-extra@commit 114305f, and I also added //CURRENTUSER, no idea why, I forgot the details (probably because it's been over a year that I dabbled with the InnoSetup upgrade).
Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
50f7788 to
dbd9c2c
Compare
Seems like we can't detect .NET Framework 4.5.1 or newer build-extra/installer/install.iss Lines 1083 to 1090 in dbd9c2c build-extra/installer/install.iss Lines 2172 to 2179 in dbd9c2c |
|
@rimrul thanks for that info! I just checked and this is the reason it fails: x64 machine 32-bit: ARM64 machine 32-bit: InnoSetup will attempt to access the 64-bit registry in 64-bit mode, so it makes sense that the value isn't found. .NET Framework is installed on ARM64 though, only the 32-bit version. To keep things clean, it might be an option to separate this PR into two:
Otherwise it might become a bit challenging to review this PR. What do you think? |
I think that it's a fine plan to split this work up into two separate PRs. |
|
Closing this PR as it's superseded by #327. Decided to just close this PR rather than force-push commits here, so that we'll keep the comment history here 👍🏼 |
#326 installs Git for Windows in the 32-bit Program Files folder (
C:\Program Files (x86)), but InnoSetup 6 added support for installing in the 64-bit folder for Windows on ARM:While not a hard requirement, it would be nice to have future versions of Git for Windows on ARM64 install in the 64-bit app directory by default.
They also bumped the minimal Windows version to Vista, but that should be fine given the fact that Git for Windows also requires Vista or later.
Most important changes are listed at https://jrsoftware.org/isdl.php#stable, and the full changelog is listed at https://jrsoftware.org/files/is6-whatsnew.htm
Testing on Windows on ARM
After applying this PR and building the installer, Git will be installed to
C:\Program Files\Gitinstead ofC:\Program Files (x86)\Giton Windows on ARM:One thing I noticed is that on Windows on ARM, both Git Credential Manager options are greyed out: