Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
systems:innosetup_installer [2011/04/05 12:24] smayr [Detected .NET Framework] |
systems:innosetup_installer [2020/08/26 12:06] (current) ajdavis |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | == InnoSetup Installer | + | = InnoSetup Installer = |
- | === Detected .NET Framework | + | == Detected .NET Framework == |
Source: [[http:// | Source: [[http:// | ||
Line 109: | Line 109: | ||
function isxdl_SetOption(Option, | function isxdl_SetOption(Option, | ||
external ' | external ' | ||
- | |||
const | const | ||
Line 192: | Line 191: | ||
</ | </ | ||
- | === Tips === | + | == Detecting .NET 4.0 Framework & Installing It If Missing |
- | ==== Restart Computer | + | |
- | When an installer, after its installation, | + | === Method 1 === |
+ | Source: http:// | ||
+ | |||
+ | <code inno> | ||
+ | [CustomMessages] | ||
+ | dotnetmissing=This application requires Microsoft Framework 4.0 which is not yet installed on this computer. Would you like to download it now? | ||
+ | |||
+ | . . . | ||
+ | |||
+ | [Code] | ||
+ | function InitializeSetup(): | ||
+ | var | ||
+ | ErrorCode: Integer; | ||
+ | netFrameWorkInstalled : Boolean; | ||
+ | isInstalled: | ||
+ | begin | ||
+ | result := true; | ||
+ | |||
+ | // Check for the .Net 4.0 framework | ||
+ | isInstalled := 0; | ||
+ | netFrameworkInstalled := RegQueryDWordValue(HKLM, | ||
+ | if ((netFrameworkInstalled) and (isInstalled <> 1)) then begin | ||
+ | netFrameworkInstalled := false; | ||
+ | end; | ||
+ | |||
+ | if netFrameworkInstalled = false then begin | ||
+ | if (MsgBox(ExpandConstant(' | ||
+ | begin | ||
+ | ShellExec(' | ||
+ | ' | ||
+ | '','', | ||
+ | end; | ||
+ | result := false; | ||
+ | end; | ||
+ | |||
+ | end; | ||
+ | </ | ||
+ | |||
+ | === Method 2 === | ||
+ | Source: http:// | ||
+ | |||
+ | This code checks, downloads and installs it if needed. Verify the file '' | ||
+ | |||
+ | <code inno> | ||
+ | [CustomMessages] | ||
+ | dotnetfx40_title=.NET Framework 4.0 | ||
+ | dotnetfx40_size=48.1 MB | ||
+ | |||
+ | . . . | ||
+ | |||
+ | [Code] | ||
+ | const | ||
+ | dotnetfx40_url = ' | ||
+ | |||
+ | procedure dotnetfx40(); | ||
+ | var | ||
+ | version: cardinal; | ||
+ | begin | ||
+ | RegQueryDWordValue(HKLM, | ||
+ | if version <> 1 then begin | ||
+ | AddProduct(' | ||
+ | '/q / | ||
+ | CustomMessage(' | ||
+ | CustomMessage(' | ||
+ | dotnetfx40_url); | ||
+ | end; | ||
+ | end; | ||
+ | </ | ||
+ | |||
+ | == Installer Tips == | ||
+ | === Restart Computer === | ||
+ | When an installer, after its installation, | ||
< | < | ||
- | ==== Blue Screen of Death ==== | + | === Blue Screen of Death === |
Issue: A "Blue Screen of Death" shows up when trying to start the installer. | Issue: A "Blue Screen of Death" shows up when trying to start the installer. | ||
> He starts the setup and a a random point it gets killed (not an normal stop).... | > He starts the setup and a a random point it gets killed (not an normal stop).... | ||
Line 208: | Line 278: | ||
------------------------------------------------------------------ | ------------------------------------------------------------------ | ||
- | ===== How To Do A Clean Boot Using the System Configuration Utility | + | ==== How To Do A Clean Boot Using the System Configuration Utility ==== |
- | 1. Click " | + | # |
- | 2. In " | + | # In " |
- | 3. Click " | + | # Click " |
- | 4. Click " | + | # Click " |
- | 5. Click " | + | # Click " |
- | 6. Click " | + | # Click " |
- | 7. Restart computer | + | # Restart computer |
- | 8. Insert the < | + | # Insert the < |
When the installation is complete you must restore your computer from a clean boot. | When the installation is complete you must restore your computer from a clean boot. | ||
- | 1. Click " | + | # |
- | Note: you can choose to do the following steps or just click " | + | # In " |
- | 2. In " | + | # Click " |
- | 3. Click " | + | # Click " |
- | 4. Click " | + | # Click " |
- | 5. Click " | + | # Restart computer |
- | 6. Restart computer | + | |
------------------------------------------------------------------ | ------------------------------------------------------------------ | ||
Line 235: | Line 304: | ||
> With a customer we run in to the following problem. | > With a customer we run in to the following problem. | ||
> | > | ||
- | > He starts the setup and a a random point it gets killed (not an normal | + | > He starts the setup and at a random point it gets killed (not an normal |
> stop).... | > stop).... | ||
> | > | ||
- | > Weh I use the /LOG option the log also just stops at a point en no | + | > When I use the /LOG option, the log also just stops at a point and no |
- | > closing/ | + | > closing/ |
- | > folders are still there. This suggest that (probebly | + | > folders are still there. This suggest that (probably |
> aka virusscanner) is killing the installer process... | > aka virusscanner) is killing the installer process... | ||
+ | == Plugin: File Downloader IDP == | ||
+ | |||
+ | * Download: [[https:// | ||
+ | * Uses: FTP, HTTP and HTTPS protocols | ||
+ | |||
+ | Example: | ||
+ | <code inno> | ||
+ | #include < | ||
+ | |||
+ | [Files] | ||
+ | Source: " | ||
+ | Source: " | ||
+ | Source: " | ||
+ | |||
+ | [Icons] | ||
+ | Name: " | ||
+ | |||
+ | [Code] | ||
+ | procedure InitializeWizard(); | ||
+ | begin | ||
+ | idpAddFileSize(' | ||
+ | idpAddFileSize(' | ||
+ | idpAddFileSize(' | ||
+ | |||
+ | idpDownloadAfter(wpReady); | ||
+ | end. | ||
+ | </ |