Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I have a problem with my app; When I make the normal debug inside Visual Studio it goes well, when I build the solution it also works well too, now, the problem is, when I build the setup file, I install it on my own computer, when I run it for first time it goes as well as debug mode, but after 20 minutes or more time without opening it, then it says: "C:/Users/myusername/Documents/Visual Studio 2013/Projects/myProjectname/project_SETUP/debug/myApp_SETUP.exe is not a valid win32 application".

I've been one whole week trying to solve this problem and nothing happens 'til today.

Additional Info.:

Made with C# in Visual Studio 2013, .NET Framework 4.5, Debug in Any CPU(also tryed just for x86)
My computer is a 32-bit OS (x86) with NET Frw 4.5, 4.0, 3.5, 3.0 installed.

PLEASE HELP ME!!!!!!

Thanks in advance...

[SOLUTION]

Well, thanks for all the people that helped me with this problem, though I finally ended with the conclusion of just copying and pasting my Project's Release Folder in the Program Files folder of another computer and it worked nicely and properly!!
Posted
Updated 26-Nov-14 11:38am
v2
Comments
PIEBALDconsult 17-Nov-14 19:50pm    
Didn't you ask that yesterday?
ChrisCreateBoss 17-Nov-14 21:07pm    
nope. I saw a person who asked a similar question but it wasn't me.
Sergey Alexandrovich Kryukov 17-Nov-14 20:27pm    
What do you mean by "Debug in Any CPU"? What do you deploy, targeted to AnyCPU or not? How is the development system different from target system?
Does the installation work for the development system?
—SA
ChrisCreateBoss 17-Nov-14 21:06pm    
Yes, it is targeted to Any CPU on both development system and target system.
Sergey Alexandrovich Kryukov 17-Nov-14 21:21pm    
Not a correct answer. What could it possibly mean "targeted to Any CPU on both development system and target system"? You either deploy one version of another one. "Target" is the property of the project, or its build...
This small element of doubt, even if it's just your phrasing, leave me unsure.
—SA

Try to install your application on a "clean" system you control - do you have a vm-infrastructure for testing? From all that comments and your explainations it seems your system itself is somehow missbehaving - I would rule that out as a next step by doing the install (and if that doesn't help) also the build on a "fresh" reference system. Do you have a build-server (or a coworkers pc) you could use?
 
Share this answer
 
Comments
ChrisCreateBoss 19-Nov-14 11:33am    
Yes, I have VMWare Fusion with Windows 8 on an Apple Computer. I will try to make that. Thanks for your help.
ChrisCreateBoss wrote:

But I have a more efficient idea, I will delete the setup project from my solution, now, give me the instruction on how to make an installer with WiX.
Using Wix is much better idea than Visual Studio Setup project template. I tried to explain it in my past answers:
Custom setup project[^],
How to conditionally install components based on processor architecture type (32-bit or 64-bit)?[^],
installshield and Visual Studio 2012[^].

—SA
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900