Inno Setup is a free, feature-packed installation builder. The application's features include a Windows 2000-style wizard interface; the ability to create a. Inno Setup is a free, feature-packed installation builder. The application's features include a Windows 2000-style wizard interface; the ability to create a. Inno Setup is a free installer for Windows programs. First introduced in 1997, Inno Setup today rivals and even surpasses many commercial installers in feature set and stability. We don't have any change log information yet for version 5.6.1 of Inno Setup. Sometimes publishers take a little while to.
Active2 months ago
I have a question similar to Inno Setup: Verify that .NET 4.0 is installed, but it seems to be slightly different.
As you can see, I'm trying to register a file with the GAC. Unfortunately on some machines it's possible that the .NET framework is not installed. So I need to install it first. Is there anyway that I can force an installation of the .NET runtime before I try to register my files?
Martin Prikryl
103k2727 gold badges216216 silver badges458458 bronze badges
Wayne WernerWayne Werner
29.2k1616 gold badges132132 silver badges215215 bronze badges
4 Answers
Since the
[Run] section is processed after the [Files] section, it is naturally impossible to do it with the script you've shown (hence your question). There are few ways where the one I would recommend is to execute the .NET setup from the AfterInstall parameter function of the setup entry itself. So you would remove your current [Run] section and write a script like this:
The process is easy, if the
Check function of the .NET setup entry of the [Files] section evaluates to True (FrameworkIsNotInstalled ), the entry is processed, which copies the setup binary into the Inno Setup's temporary folder and if that succeeds, the AfterInstall function InstallFramework is called immediately after. Inside of this function, the .NET setup is manually executed by calling Exec function.
And finally, if all of that succeeds, the installation continues to process the next
[Files] section entry, which is your assembly that is going to be registered. Now, with the installed .NET framework. So as you can see, the order of the [Files] section entries is crucial here.
You've additionally asked in your comment, how to show to the user some progress, since executing the .NET setup in the way I've posted here blocks the
[Files] entry, which leads to showing the stopped progress bar and text about extracting files. Since it wouldn't be easy to get the .NET setup's installation progress, I would simply show to the user endless marquee progress bar during that setup execution. Windvd 5 free.
https://renewplanet684.weebly.com/farm-craft-2-free-download.html. Easeus data recovery wizard crack full version. To do this wrap that setup execution into a code like this:
This is how the wizard form looks like during that .NET setup execution (the progress bar is animated):
Community♦
TLama
Inno Installer Windows 10TLama
66.3k1515 gold badges171171 silver badges309309 bronze badges
I just want to add something to @TLama: The close when the setup fails.It's not so easy because Martin Prikryl
WizardForm.Close; just invokes the cancel-button which can be aborted by the user. Skype for laptop windows 8. Finally, the code can look like that:
103k2727 gold badges216216 silver badges458458 bronze badges
SnickerSnicker
just my 2 cents on checking for .NET Framework 4.7, fits right in with @Snicker's answer:
BananaAcidBananaAcid
You can also set it up to download the web bootstrapper and run it if you don't want to package in the very heavy full .NET installer. I have written a blog post on how to do that with Inno Download Plugin.
Inno Setup CompilerRandomEngyHow To Download Inno Setup CompilerRandomEngy
11.5k55 gold badges5252 silver badges101101 bronze badges
Not the answer you're looking for? Browse other questions tagged .netinno-setup or ask your own question.How To Download Inno Setup PreprocessorFrom Jordan Russell:Inno Setup Download File
Inno Setup is a free, feature-packed installation builder. The application's features include a Windows 2000-style wizard interface; the ability to create a single EXE for easy online distribution; support for disk spanning; and full uninstall capabilities. The program also includes customizable setup types, integrated LZMA file compression, support for installing shared files and OCXs, and the creation of Start menu icons, INI entries, and registry entries. Full Delphi source code is available on the author's Web site.
Free Software Setup DownloadWhat do you need to know about free software?From Jordan Russell:
Inno Setup is a free, feature-packed installation builder. The application's features include a Windows 2000-style wizard interface; the ability to create a single EXE for easy online distribution; support for disk spanning; and full uninstall capabilities. The program also includes customizable setup types, integrated LZMA file compression, support for installing shared files and OCXs, and the creation of Start menu icons, INI entries, and registry entries. Full Delphi source code is available on the author's Web site.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2021
Categories |