|
All,
I updated the scripts using (nearly) all suggestions from the comments below, and fixed the compilation errors on newer versions of Inno Setup (including the Unicode related errors).
Also added support and a sample for installing .NET 4.0 (not from the comments below, but close), and VC++2010 for both x86 and x64 OS's, and MS-SQL Server Express 2008 R2. Then also fixed the download for MS-SQL Express 2005 to grab the SP3 release that will install on Windows Vista and later.
My blog can be found here: tonaday.blogspot.com[^] (use the label InnoSetup if it's out of sight).
HTH,
Ton
|
|
|
|
|
The current version of the script fails to compile. Could anybody please reproduce this issue?
Thanks
Mike
|
|
|
|
|
i get the following when compiling with Inno 5.4.2(a) on Win 7 64bit
Compile started: Monday, Jul 25 2011 at 05:40 PM<br />
---<br />
Compiling script with Inno Setup 5.4.2 (a)<br />
---<br />
[ISPP] Preprocessing.<br />
[ISPP] Preprocessed.<br />
Parsing [Setup] section, line 42<br />
Parsing [Setup] section, line 43<br />
Parsing [Setup] section, line 44<br />
Parsing [Setup] section, line 45<br />
Parsing [Setup] section, line 46<br />
Parsing [Setup] section, line 47<br />
Parsing [Setup] section, line 48<br />
Parsing [Setup] section, line 52<br />
Parsing [Setup] section, line 53<br />
Parsing [Setup] section, line 54<br />
Parsing [Setup] section, line 55<br />
Parsing [Setup] section, line 56<br />
Parsing [Setup] section, line 57<br />
Parsing [Setup] section, line 58<br />
Parsing [Setup] section, line 59<br />
Parsing [Setup] section, line 60<br />
Parsing [Setup] section, line 61<br />
Parsing [Setup] section, line 62<br />
Parsing [Setup] section, line 63<br />
Parsing [Setup] section, line 64<br />
Parsing [Setup] section, line 65<br />
Parsing [Setup] section, line 66<br />
Parsing [Setup] section, line 67<br />
Parsing [Setup] section, line 68<br />
Parsing [Setup] section, line 69<br />
Parsing [Setup] section, line 71<br />
Parsing [Setup] section, line 72<br />
Parsing [Setup] section, line 73<br />
Parsing [Setup] section, line 74<br />
Reading file (WizardImageFile)<br />
File: C:\Program Files (x86)\Inno Setup 5\WIZMODERNIMAGE.BMP<br />
Reading file (WizardSmallImageFile)<br />
File: C:\Program Files (x86)\Inno Setup 5\WIZMODERNSMALLIMAGE.BMP<br />
Preparing Setup program executable<br />
Reading default messages from Default.isl<br />
Parsing [Languages] section, line 77<br />
File: C:\Program Files (x86)\Inno Setup 5\Default.isl<br />
Parsing [Languages] section, line 78<br />
File: C:\Program Files (x86)\Inno Setup 5\Languages\German.isl<br />
Parsing [LangOptions], [Messages], and [CustomMessages] sections<br />
Messages in script file<br />
Reading [Code] section<br />
Parsing [Tasks] section, line 81<br />
Parsing [Tasks] section, line 82<br />
Parsing [Icons] section, line 90<br />
Parsing [Icons] section, line 91<br />
Parsing [Icons] section, line 92<br />
Parsing [Icons] section, line 93<br />
Parsing [Run] section, line 96<br />
Parsing [Files] section, line 2 of O:\Install\InnoSetup\dotnetsetup\scripts\isxdl\isxdl.iss<br />
Reading version info: O:\Install\InnoSetup\dotnetsetup\scripts\isxdl\isxdl.dll<br />
Parsing [Files] section, line 34 of O:\Install\InnoSetup\dotnetsetup\scripts\products.iss<br />
Reading version info: O:\Install\InnoSetup\dotnetsetup\scripts\isxdl\german2.ini<br />
Parsing [Files] section, line 85<br />
Reading version info: O:\Install\InnoSetup\dotnetsetup\src\MyProgram-x64.exe<br />
Parsing [Files] section, line 86<br />
Reading version info: O:\Install\InnoSetup\dotnetsetup\src\MyProgram-IA64.exe<br />
Parsing [Files] section, line 87<br />
Reading version info: O:\Install\InnoSetup\dotnetsetup\src\MyProgram.exe<br />
Compiling [Code] section<br />
---------------------<br />
Compile Error!<br />
File: O:\Install\InnoSetup\dotnetsetup\scripts\products.iss<br />
Line: 114<br />
Error: Column 10:<br />
Invalid prototype for 'PrepareToInstall'
|
|
|
|
|
If there are some componets added to install script then on 'ready to install' page all tasks displayed are multiplaying by nrOfComponents+1.
I tried to find the reson in products.iss with no luck (I'm fresh to this).
Anyone got idea?
Extremely useful article!
modified on Wednesday, December 15, 2010 5:31 PM
|
|
|
|
|
I found the problem, flag 'Check: InitializeSetup;' in [TYPES] caused this issue.
|
|
|
|
|
how to show .net framework intsall progress (like 52% ) in main installer .
|
|
|
|
|
I also want to know how to change the script to show the installation progress (not the downloading progress).
|
|
|
|
|
How i install the XP Service Pack 2 automatic?
Download and install..
|
|
|
|
|
Hi,
How to select/add in dotnetfx40client.iss the right link to download the Framework in French or English (in my case) according the selected language in InnoSetup or Windows regional settings?
any idea?
Thanks in advance.
|
|
|
|
|
Is there any way to run a procedure from a downloaded dependency?
I have a dependency that needs some actions done to it, before another dependency is completed.
I need to run a procedure that takes care of it, as soon as the install for the dependency is completed, before another one starts.
Is this possible ?
Thanks in Advance.
|
|
|
|
|
Hello everyone.
I'm trying and trying to do an universal installer just for all the .NET Frameworks (including 4.0) but something is failing all the time. Recently I'm strugling with the parameters for Exec method for installing .NET 4.0. It seems that something is wrong with it, because .NET (after innosetup installer finishes) is installed correctly, but error code is returned and installer prompts up with error.
Any ideas how to fix it?
Atm it's like this:
[CustomMessages]
dotnetfx40_title=.NET Framework 4.0
polish.dotnetfx40_size=48.1 MB
[Code]
const
dotnetfx40_url = 'http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe';
procedure dotnetfx40();
var
version: cardinal;
begin
RegQueryDWordValue(HKLM, 'Software\Microsoft\NET Framework Setup\NDP\v4\Full', 'Install', version);
if version <> 1 then
AddProduct('dotNetFx40_Full_x86_x64.exe',
'/q:a /t:' + ExpandConstant('{tmp}{\}') + 'dotNetFx40_Full_x86_x64.exe /c:"install /qb /l"',
CustomMessage('dotnetfx40_title'),
CustomMessage('dotnetfx40_size'),
dotnetfx40_url);
end;
Maybe someone has done already a full installer for this. I know there were several posts about this, but still.. something is missing.
Maybe a new version of whole project here on CodeProject?
best wishes,
xagon
|
|
|
|
|
the problem is that dotnet4 framework exit with errorcode 3010 if the setup is successful but a restart is necessary after the setup..
Use the Script http://www.codeproject.com/Messages/3514789/Some-Enhancements.aspx[^]
and it will work fine!
PS: .net Framework need installed WIC (Windows Image Component), on System where .NET 3 is installed or on XP SP3 PC's WIC is installed already... but on other situations it can be missing ( Windows 2003 server.... without other .NET )
so include the attached wic.iss and it works!
[CustomMessages]
wic_title=Windows Imaging Component
en.wic_size=1.2 MB
de.wic_size=1.2 MB
const
wic_url = 'http://download.microsoft.com/download/f/f/1/ff178bb1-da91-48ed-89e5-478a99387d4f/wic_x86_enu.exe';
procedure wic();
var
installed: boolean;
begin
installed := FileExists(GetEnv('windir') + '\system32\windowscodecs.dll');
if not installed then begin
AddProduct('wic_x86_enu.exe',
'/q',
CustomMessage('wic_title'),
CustomMessage('wic_size'),
wic_url,
false,
false);
end;
end;
modified on Tuesday, October 26, 2010 4:16 AM
|
|
|
|
|
Perfect solution !!
|
|
|
|
|
Hi I want to use it both as an online Version and as an Offline Version what i have to change that the script use the already downloaded files
to install dotnet.
mfg
Travian
|
|
|
|
|
|
Thanks for the nice work,
im using dotnetfx35 installation and all works fine, but i use
AlwaysRestart=yes to show restart application screen once installation is done and it does not work because of
/norestart and
NeedsRestart codes. How to prompt a application restart at end of installation even if the dotnetfx35 is installed or not.
|
|
|
|
|
I included the .net 4.0 installation module. My setup installs MSI 3.1, WIC (windows imaging component) both prerrequisites for .net 4.0.
Everything works great on windows xp.
However on windows vista and seven, the installation freezes when .net 4.0 is 99% downloaded... before moving on to the next step, a time out message pops up saying "error reading URL, the operation timed out". It's strange... internet connection is OK, the file gets 99% downloaded, the URL is ok.. this only happens on vista and seven.
Any help will be very apreciated. Thanks.
modified on Friday, September 24, 2010 12:51 AM
|
|
|
|
|
The solution that I found was to install .net 4.0 from the "web installer" instead of the standalone setup. I works great on any operating system.
|
|
|
|
|
In this procedure AddProduct has a variable called "Parameters" and files dotnetfx .. exists that this parameter -> '/ q: a / c: "install / qb / l"'
This was done only to create the folder on silent! "
Because I'm trying to do that..
procedure dotnetfx11();<br />
var<br />
version: cardinal;<br />
Path, Dir, FileName: string;<br />
begin<br />
FileName := 'dotnetfx11.exe';<br />
Dir := ExpandConstant('{app}{\}');<br />
Path := ExpandConstant('{app}{\}') + FileName;<br />
<br />
RegQueryDWordValue(HKLM, 'Software\Microsoft\NET Framework Setup\NDP\v1.1.4322', 'Install', version);<br />
if version <> 1 then<br />
AddProduct('dotnetfx11.exe',<br />
Dir,<br />
CustomMessage('dotnetfx11_title'),<br />
CustomMessage('dotnetfx11_size'),<br />
Path);<br />
end;
This folder and the file was created in the Path setup.iss, i am trying to charge us dotnetfx..
|
|
|
|
|
http://pipiscrew.com/
Freewares 4 Developers
>Inno Helper
Is initial release.. and only for NET developers!
|
|
|
|
|
it did not compile in windows vista sp2
|
|
|
|
|
Hi,
How to have the same WizardSmallImageFile during the framework download like the rest of my Setup Wizard?
I tried to add "WizardSmallImageFile = images\logo3.bmp" in products.iss. But when I generate I have the following error : "Already WizardSmallImageFile specified"
Thanks in advance.
modified on Thursday, July 29, 2010 8:14 AM
|
|
|
|
|
I found it! I changed WizardSmallImageFile in the c++ sources. That working now!
bye.
|
|
|
|
|
What C++ sources did you change?
I cant find any of the source files and I kinda need that same thing.
Anthony
|
|
|
|
|
Hi,
I uploaded the code here
You need C++ 2010 and WTL 8.0
The maximum size of the bitmap (WizModernSmallImage) is 55x58 pixels.
You just replace WizModernSmallImage.bmp file in 'source' directory with yours and re-build the solution.
I hope this will help!
Bye
neojudgment
|
|
|
|
|