I'am Working On windows forms application now i want to create single EXE File that includes my application EXE and also the prerequisites for my application.
i.e
my application has .net framework and sql sever express 2008 as prerequisites.now i want to install .net framework followed by sql sever followed by my application all the exe's need to package in single EXE file(sql server need to install only after successful instalation of .net framework).
please help how can i achieve this.
thanks
I have used this in the past to install my prerequisites.
http://dblock.github.io/dotnetinstaller/
Related
I'm trying to deploy my console application which mainly creates xml files from oracle tables. When I'm running the app on my machine (Windows 7 64-bit) through Visual Studio 2012, there is no problem.
My app is meant to run on a server which is using Windows Server 2008 R2 64-bit. So, I copied the .exe, the config file, the Entity Framework dll and the config file from the bin\Debug project folder.
When I'm running the .exe, I got that error message :
The specified store provider cannot be found in the configuration or is not valid
Could someone help me on this?
Actually, the problem was solved by targeting the Framework 4.0 instead of the 4.5 one (Right-Click on my project in the Solution Explorer, then properties to do that). Didn't know that my prod machine wasn't able to run 4.5 .NET app.
I'm working on a C# project for windows mobile 6.5 and as of this morning I'm getting "Reference package not found. Device Connectivity Component" whenever I try to deploy.
It builds without errors and was working up until today. I did a bit of looking around and only found dead ends online. As far as I can see there are no clues about that component or package this is a reference to. I think it may be related to Windows CE SQL Compact but that's based on nothing. I've rolled back to an earlier version of my code and cleaned a few times. I'm stumped.
I would greatly appreciate any help even diagnosing this a bit further. I'm using Visual Studio 2008 3.5 SP1
Update: When I disable "Deploy latest version of the .NET Compact Framework (including Service Packs)" it does deploy but then throws errors related to the SQL database which worked previously. assumedly because it doesn't have access to the correct SQL packages.
Update: I also get the same error with the emulator, it builds, the emulator starts but can't deploy, giving the same error.
Update: I think this might have something to do with it. Note the double slashes in the path. I keep removing them. It keeps coming back.
Update/Correction: I can now deploy to the emulator, I had a problem before but it seems to be ok now. I still can't beploy to the device, same error.
For anyone who was pulling their hair out like me. I couldn't figure out what was wrong although I still suspect it was something to do with the .NET compact package. Eventually I created a new project, set up the references and copied and pasted the code over. It's not a nice solution but it worked after days of being stuck.
HA! I found it! This may not be your solution, but this was how I did it.
See this REF: http://msdn.microsoft.com/en-us/library/aa983326(v=vs.90).aspx
Since Microsoft is bad about deleting their old info, I'm going to post it here, too. But basically, if you select a Private Deployment, then Microsoft Updates will not influence your project or update your 3.5 databases to ...whatever the newest stuff from Microsoft is.
How to: Deploy a SQL Server Compact 3.5 Database with an Application
You have two deployment options for applications that contain SQL Server Compact 3.5 databases. The method of deployment you choose depends on the servicing requirements of your application and whether your users will need administrative credentials on the computer on which the application will be installed.
Following are the deployment options for SQL Server Compact 3.5 databases:
Traditional Microsoft Windows Installer (Microsoft setup technology)
Users need administrative credentials to install the application.
SQL Server Compact 3.5 will be serviced by Microsoft Update.
Can use ClickOnce deployment.
-or-
Private file–based deployment (deploying the SQL Server Compact 3.5 DLLs as part of the project)
Users do not need administrative credentials to install the application.
SQL Server Compact 3.5 will not be serviced by Microsoft Update.
Can also use ClickOnce deployment.
Traditional Windows Installer
Traditional Windows Installer technology is used in both standard Setup and Deployment projects and in ClickOnce deployment. When you deploy a SQL Server Compact 3.5 database, ClickOnce deployment provides an option that automatically installs SQL Server Compact 3.5 if it is not detected on the target computer. For this reason, ClickOnce is the preferred method of deployment for applications that include SQL Server Compact 3.5 databases (as opposed to creating a custom action in a Setup and Deployment project).
ClickOnce deployment has been updated so that it automatically includes the SQL Server Compact 3.5 runtime as a prerequisite for applications that include SQL Server Compact 3.5 databases. It also recognizes .sdf files as data files and sets these to the correct publish status.
Creating a ClickOnce deployment for an application that contains a SQL Server Compact 3.5 database consists of configuring the proper publish information in the Project Designer.
To use Windows Installer technology for ClickOnce deployment of an application that contains a SQL Server Compact 3.5 database
To open the Project Designer, in Solution Explorer/Database Explorer, double-click My Project if you are working on a Visual Basic project (or Properties if you are working on a C# project).
Click the Publish tab.
Click Application Files and set the .sdf file to Data File (Auto). (This setting notifies the installer to treat this as a local data file and to put it in the Data Directory.)
Click Prerequisites and select SQL Server Compact 3.5. (This setting notifies the installer to check whether the SQL Server Compact 3.5 runtime exists and to install it from the Internet if it is not found.)
Creating the Installer After the publish information is configured, create the installer.
To create the installer
In the Publishing Location box, type the Web site, FTP server, or file path to publish the installer to.
Click Publish Now to create the installer.
The application is ready to be installed. Go to the location you published to, and install the application to verify.
Private File-Based Deployment
Private file–based deployment refers to the process of including the required SQL Server Compact 3.5 DLLs as files in the project (as opposed to a reference to DLLs already on the target computer). If you include the necessary DLLs with the application, the requirement to install SQL Server Compact 3.5 is removed. Therefore, the administrative credentials are no longer needed.
You can use ClickOnce deployment technology for private file–based deployment. If you do, you must remember to clear the SQL Server Compact 3.5 prerequisite so that the Setup program does not install it.
To deploy a SQL Server Compact 3.5 database by using private file–based deployment
To open the Project Designer, in Solution Explorer/Database Explorer, double-click My Project if you are working on a Visual Basic project (or Properties if you are working on a C# project).
Click the Publish tab.
Click Prerequisites and then clear the check box for SQL Server Compact 3.5.
Close the Project Designer.
Go to the directory that contains the SQL Server Compact 3.5 DLLs. These are located in C:\Program Files\Microsoft SQL Server Compact Edition\v3.5.
Select the seven SQL Server Compact 3.5 DLLs and copy them:
sqlceca35.dll
sqlcecompact35.dll
sqlceer35EN.dll
sqlceme35.dll
sqlceoledb35.dll
sqlceqp35.dll
sqlcese35.dll
Paste the DLLs into the project in Solution Explorer/Database Explorer.
Select all seven DLLs in Solution Explorer/Database Explorer and open the Properties window.
Set the Copy to Output Directory property to Copy if newer. (This will replace any earlier DLLs in an existing application with the newer ones if the application is updated.)
Click the Show All Files button in Solution Explorer/Database Explorer.
Expand the References node.
Select System.Data.SqlServerCe.
Set the Copy Local property to True. (Because your development computer has the SqlServerCe DLLs in the global assembly cache, you must configure the application to use the DLLs in the output directory.)
Right-click the project in Solution Explorer/Database Explorer and select Publish to open the Publish Wizard.
Complete the wizard to publish the application.
The application is ready to be installed. Go to the location you published to, and install the application to verify.
I had the same problem. I got it to work by closing visual studio, renaming the directory:
C:\Documents and Settings\\Local Settings\Application
Data\Microsoft\CoreCon
Then reopening visual studio and the deploy worked.
Information
I'm using VS 2012 to develop a desktop WPF application (should run on win 7 and 8 later it will get a win 8 app),
with an embedded Firebird server,
and communicate with entity framework.
I'm using win 7/8 for development both with VS2012.
Problem
The application should work with embedded firebird at customer PC (no installation of FB).
I did Install the DDEX Provider for Visual Studio(3.0.0.0), as far it worked. I could add a new firebird connection (but getting error fbembed.dll not found). so i cant create the edmx file.
Do i need to install the firebird server(Superclassic/Classic or Superserver) or is it enough to just use Embedded server on my developer PC? if embedded is enough do i need to register the firebird client on gac?
as far i didn't found any useful information how to install and use it, and how to deploy it. do you guys have some good information links?
For embedded server you just have to deploy the Firebird files along with your application and put the dll file somewhere accessible for it, for example, in the same folder.
The minimum files you have to deploy to get Firebird working is:
FbEmbed.dll
icudt30.dll
icuin30.dll
icuuc30.dll
firebird.msg
firebird.conf
This information, along with more usage instructions, is available in the file doc\README_embedded.txt.
USAGE
Just copy fbembed.dll, icudt30.dll, icuin30.dll and
icuuc30.dll into the directory with your application.
Then rename fbembed.dll to either fbclient.dll or
gds32.dll depending on your database connectivity software.
Then start your application and it will use the embedded
server as a client library and will be able to access
local datasases. You should also copy firebird.msg and
firebird.conf (if necessary) to the same directory.
If external libraries are required for your application,
then you should have them separately. Most probably, it
will be INTL support (fbintl.dll and fbintl.conf) or UDF
libraries. To be able to use them, you should place them
into the directory tree which emulates the Firebird server
one, i.e. has subdirectories like /intl or /udf:
This is my first windows application. I have published my project and here are few questions.
Now I have two files - a Setup.exe file and a ClickOnce Application Deployment Manifest file. However both install my application in the machine. What is the right file I should be relying on while installing at the client's place? What is the difference between these two?
Should my application be installed at each client machine? Or would it work if I install my application in the server and try to access the shortcut from a client machine (through LAN)? Would it work? If it is running over LAN, should the client machine have .NET framework installed?
Any input is highly appreciated.
See your question contains some answers.
Ans 1. Setup.exe and ClickOnce Application Deployment Manifest file both will install your application but when u run setup.exe it will install all requirements that your app require.
Lets say your app uses .Net Framework 4.0 and Crystal Reports. Then in the setup project(i hope u r using Setup and deployment project of Visual Studio) rightclick on project and click on properties
Then click on prerequisites... It will show u list of prerequisites available. Check on .Net Framework 4.0 and Crystal Reports and compile your project.
Now when u run setup.exe it will first search for .Net 4.0 Framework and crystal report. If not found it will install them and then proceed for your software installation
OR
if already installed then will directly jump for your software installation.
This will not happen if you directly install your software from ClickOnce Application Deployment Manifest file.
Ans 2. U have to install your software on each client for if there is not framework. it will not run your app.
If you are deploying using ClickOnce you will be installing it on each client machine (this is fine) and the relevant .NET framework(s) installed on each client - these can be installed as a pre-requisite of the application install by configuring the ClickOnce settings.
For ClickOnce the main setup file is setup.exe but it relies on the other files in the deploy package, so asking which specific file is most important isn't really relevant.
If there is a reason you don't want to install the application on each client then you may want to look into developing an IIS (web) application or using a product like Citrix to enable access to the application from the server.
i have a same type of windows application.
currently this application is in use.
if you don't want to install with client PC now you do not have to create the windows application you have to create web application because in windows application you have to install your setup.exe in each client PC.You can not access windows application without install in client PC.
I have a windows mobile 6 application.For Application installation,Device require sql server ce and .net framework to run Application on the device...If a device has these Prerequisited Softwares already...the application will work.
If a device has no these Prerequisited Softwares [Sql server ce or dotnet framework to run the App] it wont work. So i need to install this also at the time of Application installation along with the cab.
How to Pack these Preqrequist Softwares with the cab file????
Or Any Other Solution to this...please help me on this...
I have added an image as i have in my application as of now....
The best way to try to include SqlServer CE and your .NET Framework files in your project is to mark your Application Project so that it includes all dependencies and include those files in your Setup Project.
That said, sometimes the installs work and sometimes they require a lot of debugging to make them work.