redistributable offline .NET Framework 3.5 installer for Windows 8 - windows-8

Our company was testing our product (compiled for .NET Framework 3.5) on Windows 8. We have discovered that there is no .NET Framework 3.5 on Windows 8 and there are two possibilities to resolve this issue:
online installation
install from Windows 8 installation DVD or ISO
But, we need to have redistributable offline installer for everyone without internet and without Windows installation DVD.
Is there a way how to resolve this issue?
Thanks.
UPDATE:
This should apply to Windows 10 as well.

Try this command:
Dism.exe /online /enable-feature /featurename:NetFX3 /Source:I:\Sources\sxs /LimitAccess
I: partition of your Windows DVD.

Looks like you need the package from the installation media if you're you're offline (located at D:\sources\sxs) You could copy this to each machine that you require .NET 3.5 on (so technically you only need the installation media once to get the package) and get each machine to run the command:
Dism.exe /online /enable-feature /featurename:NetFX3 /All
/Source:c:\dotnet35 /LimitAccess
There's a guide on MSDN.

After several month without real solution for this problem, I suppose that the best solution is to upgrade the application to .NET framework 4.0, which is supported by Windows 8, Windows 10 and Windows 2012 Server by default and it is still available as offline installation for Windows XP.

You don't have to copy everything to C:\dotnet35. Usually all the files are already copied to the folder C:\Windows\WinSxS. Then the command becomes (assuming Windows was installed to C:):
"Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:C:\Windows\WinSxS /LimitAccess"
If not you can also point the command to the DVD directly. Then the command becomes (assuming DVD is mounted to D:):
"Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess".

Microsoft .NET framework 3.5 can be installed on windows 10 without having installation media. The file you need is called microsoft-windows-netfx3-ondemand-package.cab. Just google it and you will get the download links.
After downloading it, copy that file to C:\dotnet35 and run the following command.
Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:c:\dotnet35 /LimitAccess
Tested and worked in Windows 10 without any issue.

Related

VB application built using visual studio 2015 installation to windows xp

I updated a vb windows forms application using visual studio 2015. I need to install this on a windows xp machine.
I updated my application to run using .net framework 4.0, the same as the one installed in the xp machine.
When I tried to install it the first time, it asked me to restart the machine, which I did. after restarting it gave me the error that installation is incomplete.
I have been researching all morning on how to fix it, i tried the dpca.dll solution, i tried restarting the windows installer service, i used msiexec to view the logs, and now it gives me the error that a dll required for this install to complete could not be run. I have no idea which dll, it doesn't say.
My application is fine. It builds and installs beautifully on windows 7 and above.
Please help me before I smash the windows xp machine into pieces.
I came across a comment that i can run the executable itself, just needed to copy all the dll files and put it in the same folder as the executable. So I just copied the whole folder and run the exe on the xp machine and it works.

How to automatically uninstall DirectX 9?

I am putting together a WiX installer that includes silently installing DirectX 9:
dxsetup.exe /silent
How do I tell WiX how to un-install DirectX? Is there another switch on the command line?
I need to be able to configure the installer to un-install DirectX automatically, else users complain if they can't uninstall.
For the DirectX End-User Runtime (aka DirectSetup or DXSETUP), it has long been recommended that you don't even try to uninstall it.
In any case, on most versions of Windows you can't 'uninstall' DirectX and running DXSETUP doesn't actually "Install DirectX" either as it's built into the OS. It can only be updated by installing a new version of the OS, installing a Service Pack, or applying a Windows Update. This applies to all versions of Windows starting with Windows XP Service Pack 2, Windows Server 2003 Service Pack 1, and Windows XP x64 Edition.
DXSETUP is still useful for deploying stuff like legacy D3DX9, D3DX10, D3DX11, XACTEngine, XAudio 2.7, XInput 1.3, D3DCompile #43 or earlier, etc. It just doesn't ever install "DirectX".
See No So Direct Setup. If after reading this article you still think you need to run DXSETUP as part of your deployment, you should pick up the latest version of DXSETUP to avoid some potential issues, and trim it down to just those CABs you actually use in your application.

Enable offline 'NetFx3' feature in Windows 8.1 OS

I am creating a installer with 'Windows 8.1' OS for my applications. I am using MSBUILD. By default 'Windows 8.1' OS contains .NET framework 4.5. But I need .NET framework 3.5 to run my applications.
First I install Windows OS using WinPE and then my applications on Windows - without user interfere.
I tried to enable 'NetFx3' feature (adding 'selection name="NetFx3" state="true"' in answer file) in windows image using Window SIM but as per Microsoft website it needs internet connection. I tried and it fails.
After windows install if I run DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs then it works fine on offline computer.
My other option is to run batch file with this command after windows install.
But I will prefer to install .NET framework through windows install. So my question is, how to make 'NetFx3' feature enabled in ISO itself (without internet connection), so that .NET framework 3.5 get installed during windows installation?
Thank you!
After some trial and errors, I found the solution -
First I mounted iso file in Build\WindowsMount directory.
Remember to use latest dism 6.3.x from Windows 8.1 ADK.
An finally enable feature using this command dism /image:Build\WindowsMount /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:Source\Windows\sxs
And finally save image.
Try followings
Add NET Framework 3.5 Features from "Windows Feature" in control panel
Run following command in command prompt as Administrator
dism /online /enable-feature /featurename:NetFx3
/source:d:\sources\sxs
Then try re-installing the sql again. It works for me. Check here more detail article

aspnet_regiis.exe -ir does not work on windows 8

I am trying to deploy an ASP.NET MVC3 app to my Windows 8 box with IIS8. When I try to route to the site I get the following error:
Pretty much everything I can find on this issue says to run:
aspnet_regiis.exe -ir
When I run this on my Windows 8 box, I get the following message:
Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.
C:\Users\Justin>C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe
-ir
Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation. All rights reserved.
Start installing ASP.NET (4.0.30319.17929) without changing existing web
applications to use this version of ASP.Net. This option is not supported on
this version of the operating system. Administrators should instead install /
uninstall ASP.NET 4.5 with IIS8 using the "Turn Windows Features On/Off" dialog,
the Server Manager management tool, or the dism.exe command line tool. For more
details please see http://go.microsoft.com/fwlink/?LinkID=216771.
Finished installing ASP.NET (4.0.30319.17929) without changing existing web
applications to use this version of ASP.Net.
ASP.NET 4.5 is already installed on my system.
My application runs correctly in Visual Studio, but I can not deploy it to save my life. I am completely at a loss on where to go from here. I have tried both integrated and classic pipeline modes for this site as well.
Run the following command, which will install and register ASP.NET 4.5 in IIS:
dism /online /enable-feature /featurename:IIS-ASPNET45 /all
I'm having the same problem. So far I only found this forum thread of which one of the answers states that installing via Web Platform Installer solved the problem, though this doesn't work for me. The IIS ASP.NET 4.5 feature is disabled as it is already installed.
UPDATE:
I got it to work finally.
Follow the instructions from this SO question to enable the wcf service in IIS:
WCF on IIS8; *.svc handler mapping doesn't work
Here is also some information about how to get the handler mapping installed
what worked for me is:
- unchecking the 4.5 and 3.5 in remove/add windows features
- restarted the computer
- checked the 4.5 and 3.5 in remove/add windows features.
And from that point it all worked again.

Wix error - Windows Installer Hot Fix 981669

We have an issue in our product installation in XP OS with Windows Installer 4.5 & it’s Hot Fix 981669. The installation is prematurely ending.
Error 1719: The Windows Installer Service could not be accessed.
Without that Hot Fix we are able to install the application.
There are several pages on the web talking about problems with the Windows Installer, but no real answers as to how to solve the problem. For example, here, in method 2 they are asking to reinstall windows installer. I suggested this as a workaround for the issue.
The Windows Installer Hot Fix 981669, is replacing two DLLs: msi.dll & Msihnd.dll.
After Windows Installer Hot Fix 981669:
msi.dll [version 4.5.6002.22362]
Msihnd.dll [version 4.5.6002.22193]
Before it was:
msi.dll [version 4.5.6001.22159]
Msihnd.dll [version 4.5.6001.22159]
With original versions of Windows Installer 4.5 DLLs (msi.dll [version 4.5.6001.22159] and Msihnd.dll [version 4.5.6001.22159]) we are able to install the product without any issues.
We are using WIX (Votive-2.0.5805.0.msi) application to create the product MSI.
If you have any idea about this issue please help.