View Full Version : .NET Framework 4 in Windows 2003
NewsArchive
10-03-2012, 07:06 AM
Hello,
according to Microsoft
http://msdn.microsoft.com/en-us/library/5a4x27ek(v=vs.100).aspx,
in Windows 2003 we need to install WIC (Windows Imaging Component)
before launch .NET Framework 4 Setup.
How can we accomplish this in SetupBuilder?
We don't see no "WIC" option in Core Prerequisites", so if we enable
".NET Framework 4 Core Prerequisite", the install of .NET Framewrok
fails silently.
Best regards
Vittorio Cicognani
NewsArchive
10-03-2012, 07:06 AM
Vittorio,
Absolutely no problem. Just download the required redistributable(s) from
Microsoft:
For x86:
http://go.microsoft.com/fwlink/?LinkID=162643
For x64:
http://go.microsoft.com/fwlink/?LinkID=162644
Package the redistributables into your setup.exe and launch it (only on
required systems!!) in silent mode before your .NET Framework 4 is
installed. On x64 versions of 2003 make sure that you launch the 64-bit
version instead of the 32-bit one!
You can use this to check for 2003 Server systems:
If %WINVER% Equals "$WIN_SERVERFAMILY$" Then
! Yada
End
And the following to check for a 64-bit OS:
Set Variable %IS_64BIT% to FUNCTION:Get System Info(WOW64 Status)
If %IS_64BIT% Equals "1" Then
! Yada
End
Hope this helps.
Friedrich
NewsArchive
10-03-2012, 09:37 AM
Hello Friedrich,
please, can you provide a sample project for 32 bit to clarify?
Best regards
Vittorio Cicognani
NewsArchive
10-03-2012, 09:37 AM
Vittorio,
Pseudo code is this:
1. Detect Server 2003.
2. If Server 2003, detect 64-bit mode.
3. If Server 2003 and 32-bit, install "wic_x86_enu.exe" to the temporary
Windows folder (%TMPDIR%) and launch it silently (with "wait for
termination" enabled) from within your setup.
4. If Server 2003 and 64-bit, install "wic_x64_enu.exe" to the temporary
Windows folder (%TMPDIR%) and launch it silently (with "wait for
termination" enabled) from within your setup.
Note: in most cases (but it always depends on the specific redistributable),
the Microsoft redistributables need the following command line option to
execute in silent mode: /q /r:n
5. Remove wic_x86_enu.exe or wic_x64_enu.exe from the temporary folder and
continue with the installation process.
Does this help?
Friedrich
NewsArchive
10-03-2012, 09:38 AM
Hello Friedrich,
I have understood this, but have you seen what happens if I set ".NET
Framework 4" in CorePrerequisites?
The .NET Framewrok installer is launched BEFORE the "pseudo Code" that
you send me...I can't see this CorePrerequisite launch command in
"ScriptEditor"..
Does I disable the .NET Framework 4 CorePrerequisite Check ,and must I
include the .NET Framework Redistributable Package into my setup?
Thank you
Regards
Vittorio
NewsArchive
10-03-2012, 09:39 AM
Vittorio,
> I have understood this, but have you seen what happens if I set ".NET
> Framework 4" in CorePrerequisites?
> The .NET Framewrok installer is launched BEFORE the "pseudo Code" that
> you send me...I can't see this CorePrerequisite launch command in
> "ScriptEditor"..
> Does I disable the .NET Framework 4 CorePrerequisite Check ,and must I
> include the .NET Framework Redistributable Package into my setup?
I am afraid I don't understand. Why is the .NET Framework installer
launched BEFORE the "pseudo code"? You only have to add the code (or your
own WIC include script) before you install the .NET Framework. See attached
screenshot.
That's why I said in my first post: "...in silent mode before your .NET
Framework 4 is installed...".
Does this help?
Friedrich
NewsArchive
10-03-2012, 09:39 AM
Similar to this (see attached screenshot).
Pseudo-code converted to SetupScript, but not tested.
Friedrich
NewsArchive
10-04-2012, 12:22 AM
Just a quick thought: it's a good idea to add some detection code to find an
already installed "Windows Imaging Component" (there should be something in
the registry to detect WIC). Otherwise, the redistributable will always be
launched (even if it already exists). And a user friendly "Would you like
to install Windows Imaging Component" YES/NO message box in case it's not
already there.
Friedrich
NewsArchive
10-18-2012, 12:12 PM
We'll provide a "wic_x86_x64.sbi" include script for SetupBuilder 8 to
redistribute the "Windows Imaging Component".
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
--Helping You Build Better Installations
--SetupBuilder "point. click. ship"
--Create Windows 8 ready installations in minutes
--Official Comodo Code Signing and SSL Certificate Partner
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.