I have created a c# application using visual studio 2012 and uses a 4.5 framework.I created an Installer using NSIS(HM-NIS-EDIT Wizard).The installer works fine on windows 7 32 and 64 bit.But when I tried running the installer on windows Xp, it gave me an error saying not a valid win32 application.I want that it should work on windows XP as well.

I wanted to know what the possible reason could be.

1)Should I change the framework to 3.0 or 3.5?

2)Or do i have to change the code in NSIS.

Please suggest

Link of my installer https://www.dropbox.com/s/zrxp4fswnqydu9t/Usm.exe

Thanks,

有帮助吗?

解决方案

.NET 4.5 is not supported on Windows XP. There's no way to go around this. .NET 4.0 is the last version that supported Windows XP SP3. You can add many 4.5 features using NuGet packages like Microsoft.Bcl.Async for async/await support and Microsoft.Net.Http for HttpClient.

其他提示

I think your installer is not created with NSIS but with Advanced Installer. I tried to run it on Win7 Pro 64bit and the result is "The system could not find the file specified.".

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top