Deploying .NET 4.0.2

Got a problem you cannot solve? Try here.
pokr2
Posts: 17
Joined: Fri Feb 11, 2011 12:40 pm

Deploying .NET 4.0.2

Postby pokr2 » Wed Jan 25, 2012 6:07 pm

Hi,

We're studying the possibility of using the new SQL Server 2012 Express LocalDB local database engine (part of SQL Server 2012, announced for March 7th 2012) as the default database engine for our .NET application (which of course, we deploy using InstallAware :-)).
MS will supply out-of-the-box a single-file MSI executable for installing LocalDB. Also, .NET apps using LocalDB will need to work against .NET 4.0.2, so we would need to deploy the corresponding patch on top of .NET 4.0.
Does IA have any plans to supply runtimes for those technologies?

Thanks, regards,

Octavio

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Deploying .NET 4.0.2

Postby giaviv » Thu Jan 26, 2012 2:45 am

Dear Octavio,

It would actually not be complicated to extend the existing .NET 4 runtime script to install 4.02 as well.
First, download the .NET 4.02 update file and put it in the binary folder of the runtime (for example: \Program Files\InstallAware\InstallAware 2012\runtimes\netfx_core_x86).
Open the setup* script of your runtime and add the following code at the bottom:

Code: Select all

~InstallAware Clipboard Data~
~End~
~{D63721FF-72DF-4E50-B222-E447376CF8FE}~
~Terminate Install~
~{A3089332-4292-4CF2-956B-7183E33ABE54}~
~MessageBox~
~{628ABE53-7C82-401C-837F-FB8B5AEF9E50}~
~$TITLE$ Setup~
~Microsoft .NET Framework Client 4.0 could not be installed. $DOTNET40CLIENT_ERROR_X86$$NEWLINE$$NEWLINE$Please use Windows Update to manually install this update on your system.$NEWLINE$$NEWLINE$$TITLE$ Setup cannot continue.~
~3~
~1~
~~
~If~
~{20230913-FAA1-49F6-8F27-210015C5D9F8}~
~DOTNET40CLIENT_RESULT_X86~
~0~
~ERROR~
~FALSE~
~Run Program~
~{5DC0174F-6CF6-405C-8A69-009956FC05BA}~
~$DOTNET40CLIENT_FILEBAG_X86$\NDP40-KB2544514-x86-x64.exe~
~TRUE~
~/q~
~TRUE~
~DOTNET40CLIENT_RESULT_X86~
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

BenderSI
Posts: 2
Joined: Tue Aug 05, 2014 2:14 pm

Re: Deploying .NET 4.0.2

Postby BenderSI » Tue Aug 05, 2014 6:59 pm

Hi Giaviv,
Here we have same problem as described by Octavio. Your suggestion to extend existing .NET 4 runtime seem to be nice, but I think it's incomplete. (Correct me if I'm wrong)

These solution work perfectly when .NET framework 4 isn't already installed on the machine, but when framework 4 is already installed but not patched to KB2544514, we are striked... Have you any suggestion to work around this problem?

I'm very newbie with installaware and I hope you can help me. (We use Insallaware Express to deploy a .NET application with localDB)

Have a nice day!

Simon

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Deploying .NET 4.0.2

Postby FrancescoT » Thu Aug 07, 2014 4:26 am

Dear Simon,

the Giaviv workaround requires MSI script code capability that are not available with the Express edition (... which it seems you are using).

So my question is, how do you have integrated it with your project?

Anyway, you could try to execute the "KB2544514" via run program in silent mode and before the workaround gets executed.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

BenderSI
Posts: 2
Joined: Tue Aug 05, 2014 2:14 pm

Re: Deploying .NET 4.0.2

Postby BenderSI » Sun Aug 10, 2014 9:04 am

Hi Francesco,
Yes we use Installaware express. When I wrote my question about this workaround, I was only looking for a solution to resolve 4.0.2 framework patch problem. I had not tested the Giaviv work around at this time, but your suggestion to execute KB2544514 in silent mode seem to be a good alternative. I Try this ASAP. Thx!

Simon


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 65 guests