hide application files in setup file in visual studio 2013 - c#

I have created a setup file using install shield limited edition for visual studio 2013. and its working. my problem is that, when my customer install the application on his machine he will be able to see the whole source code. as i saw in other application installed in windows there isn't any source code in , just a .exe file and some dll's. how couild i overcome this problem and how application that use only dll files work ?
this is my destination folder :

Related

SAP Crystal Reports v13 runtime not installing on local computer

I am running VS professional 2015 on my Windows 10 professional, and I needed to install the Crystal Reports runtime on my computer so I can build projects with CrystalDecisions.CrystalReports.Engine and CrystalDecisions.Shared, version 13.0.2000.0.
I also currently have Crystal Reports 2008, version 12.0.0.683 installed on my computer to create reports outside VS 2015.
On our company server, there was a .msi file and a .exe file. Like an idiot, I ran the .msi file without knowing:
To integrate "SAP Crystal Reports, developer version for Microsoft Visual Studio" into VS 2010 or 2012 (SP 7 and higher) or VS 2013 (SP 9 or higher) or VS 2015 RC (SP14) - VS 2015 (fully - SP 15), you must run the Install Executable. Running the MSI will not fully integrate Crystal Reports into VS. MSI files by definition are for runtime distribution only.
So after running the .msi file and realizing my mistake, I ran the "Uninstall" option from the .msi file and checked my GAC. The CrystalDecisions has been uninstalled from my "GAC_32" and "GAC_64" folders. However, the strange part is that in my "GAC_MSIL" folder, it has the CrystalDecisions version 12.0.2000.0.
GAC_MSIL folder - but no CrystalDecisions folders in GAC_32 or GAC_64
I checked my Control Panel -> Programs -> Programs and Features and nowhere can I find "SAP Crystal Reports runtime engine for .NET Framework (64-bit)" and "SAP Crystal Reports, version for Microsoft Visual Studio", so I figured the uninstall was successful.
When I try to run the .exe file this time, I get an error saying that it cannot run the installation due to the following error:
SAP Crystal Reports runtime installation error window
So I checked EventViewer -> Windows Logs -> Application, and the error log said it was an error at installation 1603 and "Product: SAP Crystal Reports, version for Microsoft Visual Studio -- You must already have Visual Studio 2010 or Visual Studio 2012 installed to proceed with this installation."
I talked with my boss and he said he doubts I need VS 2012 and it does not make sense to have both VS 2012 and 2015 on my computer. Unfortunately, I cannot build projects using CrystalDecisions v.13 like our production server, and building the project using the CrystalDecisions v.12 on my computer will cause the project to fail if I release it to production.
I checked other questions on StackOverflow, and I saw some solutions:
Install VS 2012 - not an option unless a last resort; we have VS 2015 only - unless if installing a "community" version of VS 2012 would do the trick.
Do a system restore - one person suggested because I ran the .msi file instead of the .exe, it messed up my assembly, so doing a system restore before I ran the .msi file could fix it and allow me to install CR runtime correctly, but again, my boss says he wouldn't recommend it
Try running the CR runtime setup from the SAP website with a newer version other than v.13 for my x64 bit machine that will integrate with VS 2015 without needing VS 2012 - then the newer version of my CR runtime when I build my projects will be different from the CR runtime on the production server and there will be conflicts when I release my project on the production server.
Alter/delete my assembly files because running the .msi file screwed up my assembly cache - Really risky; I don't know the first thing about assembly files and I could mess up my computer. And would deleting manually the "CrystalDecisions" folders from my "GAC_MSIL" folder even work if the GAC_32 and GAC_64 folders do not have "CrystalDecisions"?
None of these solutions are preferable, so does anyone have any other solutions I cannot see that work?
Thank you for your patience. I could just bash my head against the desk because I ran the .msi file instead of reading the directions carefully. I feel like an idiot...
To all those who are wondering, my boss and I fixed the issue and it was incredibly simple!
It turns out that we needed some Visual Studio 2012 tools installed on the computer before running the executable. We needed to install those SDK libraries in Visual Studio 2015 before running the installation of the "CRforVS_13_0_6.exe" file.
So I went to "Control Panel" -> "Programs and Features" -> selected Visual Studio Professional 2015 and clicked the "Change" button to go to the following menu:
Installing new Visual Studio 2015 SDK Features
We checked the "Windows 8.1 and Windows Phone 8.0/8.1 Tools" and made sure "Tools and Windows SDKs" was checked.
After updating, I restarted my computer and tried to run the Crystal Reports v13 for Visual Studio .exe again.
It worked!
So it looks like my boss's doubt was incorrect; you do need some VS 2012 components to run the CR v13 installation for Visual Studio!
Putting this here for future reference!

Is the XAP file from Visual Studio 2010 a valid App?

The .xap that has been generated in Visual Studio 2010(Windows SDK 7.8) seems to have the one mentioned in the wiki (http://msdn.microsoft.com/en-us/library/windows/apps/br211475.aspx) which is for Visual Studio 2012.
If I submit the app will Microsoft process the xap or not ?
If you build that xap file using the Release build and if you correctly fill all info, your app can be submitted to the store.

How to create EXE setup file for windows service created in visual studio 2012

I have a windows service to detect desktop lock and unlock. I tried to create an EXE setup file (myapp.exe) for my windows service. the service detects lock/unlock event and writes it in a text file.
I was able to do this in visual studio 2010, but i don't find any documents as how to create this exe setup file using visual studio 2012. I found some videos in youtube which shows creating exe setup file but when i tried i don't find my service installed as a windows service. It is installing like normal application.
Good article explaining how to create a windows service installer with Visual Studio and WiX is available here.
With Visual Studio 2012 you will need a third party tool to create setups. I would suggest WiX. There is good information on installing and starting Windows Services using WiX here although you will probably need to read some beginners tutorials first.
The alternative is to load your project in VS2010 and add a setup project there. You will need to perform the build in VS2010. VS2012 will still load your solution, but it will ignore (unload) your setup project. The same .sln will open up fine in VS2010 and VS2012.

how to run visual studio project in other computer which does not have visual studio installed in it

i have made a visual studio project which is quite small. i want that it should be deployed in the customer's PC so i want to make a exe file of that. so that it should be installed and used correctly. how can i make an .exe or .msi file. i have just heard it some where i dont know how to. because i am a newbie i dont know much about visual studio i thougt it will help me to make exe file but after production i got i cant deploy my project as i have .cs files of forms. i am using visual studio 2010 ultimate and building project on c# language can i make .msi or .exe file so that it can be run in other computer also? and if yess then whats procedure
When you compile your project, you will find .exe and (probably) .dll files in bin\Debug and bin\Release.
You can copy those files to a different computer and run the program, as long as it has the correct version of the .Net framework installed.
Install database on client computer.
Install your project on computer.
Make ODBC on computer.
a. make DNS with sql server.
b. make microsoft access driver.

Visual Studio Add-in - How do I create an Installer?

I have made a Visual Studio Add-in as part of a project I'm working on using web services.
When I created the new Add-in project in visual studio it generated all the code required and installed the blank add-in on my pc (I assume).
Since this is a large project we are using svn to manage the code base and once I had done some of the work on the Add-in I commited it, then checked it out on a different pc and attempted to run it.
However on the other pc when I run the add-in in debug mode, the tools entry for the add-in is not present and I can't run the add-in.
Am I right in assuming that when I created the project on the other pc it installed the plugin as well? And does that mean that I will need to create an installer for any other pcs I wish to use?
Obviously at some point I intend on making an installer anyway but not untill after the development of the addin is complete.
Ok so I fixed my issue.
after doing some googling into a different issue I was having I stumbled apon the answer to my installer issue.
When the visual studio Add-in wizard creates your blank add-in it creates two xml files with the .Addin extension.
One of these is saved locally along with your project the other is copied to whatever path that copy of visual studio uses for its add-in folder.
So by copying the .addin file to the correct location on my other pc I can now run the Addin in both locations.

Categories