Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Windows Forms installer , +
Hi everyone!
 
I am having trouble deploying a project that will be supported on Windows XP. It works on Windows 7 32-bit fine. Is there anything that I'm missing. I try changing the platform target from "any cpu" to "x86" in Visual Studio and it makes no difference in whether or not XP can handle it. Am I missing something obvious? I'm using Visual Studio 2012 and we want the deployment to support XP (it already works fine with 7). I'm using Install Shield to deploy the projects.
 
Thanks everyone!
Posted 2-Nov-12 11:31am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

If you are using dotNet4.5 in your application, then I think you'll be out of luck as Windows XP isn't supported by dotNet4.5. You might get away with targeting your application to 4.0, but there might be issues because of how 4.5 installs in place of 4.0.
  Permalink  
v2
Comments
joshrduncan2012 at 2-Nov-12 16:46pm
   
I'm targeting .NET 2.0 as the core for this project.
Marcus Kramer at 2-Nov-12 17:00pm
   
In that case, I would leave your platform target as "Any CPU" as this is the solid way to go. If you manually deploy the application without InstallShield, does it launch and run? If it even "sort-of" works like this, then perhaps the issue is with the InstallShield deployment and not your application itself.
joshrduncan2012 at 2-Nov-12 17:04pm
   
I can't get the .exe file to run at all in x86 or Any CPU mode on XP machines, the file that's in the bin directory of the project.
Marcus Kramer at 2-Nov-12 17:10pm
   
I know this question will sound really dumb, but I've learned over the years to ask it anyway: Are you sure you have dotNet2 installed on the XP machine?
joshrduncan2012 at 2-Nov-12 17:20pm
   
Yes, everything up to 3.5 is installed on the XP setup.
olyslappy at 15-Jul-13 16:08pm
   
I am in the same boat here. Did you ever find a solution for this?
 
I'm running VS2012 with Update 3 installed. I've migrated a solution with multiple VB projects from VS2005. Got everything dialed in except the installation. Targeted .Net version on all projects in setup is either 2.0 or 3.5. Targeted machine type ix x86. After installation on 32-bit XP machine, all executables throw an error when opened saying they're not valid 32 bit applications.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

under project properties/Compile/advanced compiler settings, uncheck remove integer overflow chicks and uncheck enable optimizations.
for generate debug info, choose pdb-only
compilation constants, check define debug constant and check define trace constant.
under generate serialization assemblies, choose auto.
click ok
now VB 2012 application deploys to XP and runs
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 555
1 Kornfeld Eliyahu Peter 409
2 Maciej Los 369
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,353
1 DamithSL 4,854
2 Maciej Los 4,466
3 Kornfeld Eliyahu Peter 4,058
4 Sergey Alexandrovich Kryukov 3,897


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 25 Nov 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100