Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I used Visual Studio 2013 and InstallShield Limited Edition to make an install exe file for my Windows Form program. But when I install it on my own computer, and then, in the installation directory(e.g. "C:\\Program Files (x86)\AppName\"), all .cs files are not compiled and can be opened with notepad and all my source code is there! How do I stop .cs files from showing itself?

Screenshot of Installation Directory

What I have tried:

I have absolutely no idea how to do this. I did a lot of searching, but with no avail.
Posted
Updated 29-Sep-17 2:14am
v3
Comments
Richard MacCutchan 29-Sep-17 5:13am    
It sounds like your InstallShield script is set to package all the source code of your project instead of the executable. I suggest you check your setup parameters.
WhatsYourIdea 29-Sep-17 6:51am    
How do I access the InstallShield Limited Edition setup parameters in Visual Studio?

1 solution

You have probably selected the wrong files to be packed in your setup executable.

See Simple Steps to Create Setup File Using InstallShield LE From VS 2012[^] for a step-by-step guide. It is for VS 2012 but should cover VS 2013 too.

See there Step 4: Application Files. If there are no special dependencies, just activate the Add Project Outputs button and select Primary output.
 
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