Error -6003 on building setup with installshield 2010 - c#

I want to create a setup with InstallShield 2010 for my winform application.
I have created an InstallScript MSI Project and add all files and folders of my application to it.Also i have set Microsoft .net framework 4 full and Microsoft SQL Server 2008 Express as Prerequisites.
Note: Microsoft OLE 2.40 for windows NT and windows 95 and Microsoft GDI+ are checked as default Prerequisites too.
But i receive these following errors when i want to build the setup :
Error -6003: An error occurred streaming 'C:\Program Files\InstallShield\2010\SetupPrerequisites\WindowsImagingComponent\x86\wic_x86_enu.exe' into setup.exe
Error -6003: An error occurred streaming 'C:\Program Files\InstallShield\2010\SetupPrerequisites\WindowsImagingComponent\x64\wic_x64_enu.exe' into setup.exe
Error -6003: An error occurred streaming 'C:\Program Files\InstallShield\2010\SetupPrerequisites\Windows Installer\3.1\x86\WindowsServer2003-KB898715-x86-enu.exe' into setup.exe
and some other errors like above.

You can solve this problem by installing the redistributables in your computer.
In your installer project go to 2.Specify Application Data ->Redistributables.
In the list, you may have some elemetns selected. They will be shown in the Location file "Needs to be downloaded". Make right click over the element and select "Download selected Item".

Related

Add Microsoft.ACE.OLEDB.12.0 as reference/include in deployment? [duplicate]

I am getting error "The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine." on my testing servers. So My Question is :
i) Can i add reference for "'Microsoft.ACE.Oledb.12.0.dll'" to project it self?
ii) Is it safe?
iii) How to do this?
Every thing is working on my local machine since i have latest version of office install in my machine. As soon as i am deploying my code to testing servers i am getting above error. I might not be able to install Office on testing servers (Due to some reason). So is it possible to put all require dll in project itself and deploy that to testing servers too ?
Thanks in advance.
In order to use "Microsoft.ACE.OLEDB.12" you need to install the "Microsoft Access Database Engine 2010 Redistributable"
The information page for this is here:
http://www.microsoft.com/en-us/download/details.aspx?id=13255
And as #user1297578 quite rightly noted the actual download is here:
http://www.microsoft.com/en-in/download/confirmation.aspx?id=13255
Once you have installed that, the actual assembly is called ACEOLEDB.DLL, the following command at a Command Prompt will find it for you on your system:
C:\>DIR /s/b c:\ACEOLEDB.DLL
c:\Program Files\Common Files\Microsoft Shared\OFFICE14\ACEOLEDB.DLL
For reference, the following is the error message I received from a program until I installed the above redistributable:
Connection Failed.
Error from IDataInitialize::GetDataSource
with connectionString=Data Source=C:\MyFileName.mdb;Mode=Share Deny Write;Provider=Microsoft.ACE.OLEDB.12.0;User Id=admin
OLE DB Error Report:
ErrorRecord:
Hresult=80040154
Description: Class not registered
SQLErrorInfo: No error info available
Source: Microsoft OLE DB Service Components
You can get around your problem by adding Microsoft Access Database Engine 2010 as prerequisites in Setup project, The following link shows you how to do so, but be careful, if you use VS2017 then the path is different, the path for VS2017 is:
"C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages"
not
"C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages"
Also I noticed that in some cases you have to install "AccessDatabaseEngine.exe" not "AccessDatabaseEngine_X64.exe" on user's machine, even if it is a 64-bit windows!!!
Here is the article including a video showing how to do all this in a step by step:
https://csharp-tutorials1.blogspot.com/2017/12/add-microsoft-access-engine-2010-as.html
Best regards
If you want use AccessDatabaseEngine 64 and IIS 64 bit (example windows 2012 64bit), then follow
You must add role asp.net 4.0, .net 4.0 on IIS
Open IIS Manager
Open your site's application pool's advenced setting
Enable 32-bit Applications set to False (must do this, or not iis set to 32 bit engine)
if your site use .net 4.0, then .NET Framework version set to exactly version
6. [this is keypoint!!!] Managed Pipeline Mode set to "Classic"
good luck :)

Error in installing the C# Windows Application build

I have created a C# Windows Application project build and selected Prerequisites as Microsoft .net framework 4.5(x86 and x64), Microsoft Report Viewer 2012 Runtime, Microsoft System CLR Types for Sql Server 2012 (x64) and selected the option Download Prerequisites from the same location as my application.The build is created successfully.
But when i try to install the build in Client computer the following error message occurs "An error occurred while installing system components for 'Application name' setup cannot continue until all system components have been successfully installed ".
When i checked the install file it says - Verifying file integrity of ReportViewer.msi. WinVerifyTrust returned -2146762486. file not trusted
The Application installs without any problem if i connect to internet and install the application. But i want it to work without internet connection.
Thanks in advance.

Setup could not install following component: Microsoft Application Error Reporting [duplicate]

This question already has an answer here:
Error during visual studio 2010 installation
(1 answer)
Closed 9 years ago.
I was running Microsoft Visual C# 2010 Express Setup on my Windows 7. But I am unable to complete the setup, due to the following error
I didn't cancel the installation any time. I am the administrator of this machine. I also tried few things by referring sites like - http://social.msdn.microsoft.com/Forums/en-US/Vsexpressinstall/thread/a8da8e97-e4e2-416a-97f1-636c2dc1d4c1/
Any idea, what could be wrong?
My installation log is reporting the following error:
[12/10/12,19:14:39] Microsoft Application Error Reporting: [2] CMsiComponent::Install() expects the setup file for Microsoft Application Error Reporting, but the file failed verification. [12/10/12,19:14:39] setup.exe: [2] ISetupComponent::Pre/Post/Install() failed in ISetupManager::InternalInstallManager() with HRESULT -2147467259. [12/10/12,19:14:40] ExpressUI: [2] DepCheck indicates Microsoft Application Error Reporting is not installed.
I have checked your installation logs, and find the error message below:
[04/25/11,10:00:53] InstallReturnValue: GFN_MID Microsoft Application Error Reporting, 0x641
[04/25/11,10:00:53] Microsoft Application Error Reporting: ERRORLOG EVENT : Error: Installation failed for component Microsoft Application Error Reporting. MSI returned error code 1601
For the error code hex 0x641 / decimal 1601, it means ERROR_INSTALL_SERVICE_FAILURE, which translate to "The Windows Installer Service could not be accessed. This can occur if you are running Windows in safe mode, or if the Windows Installer is not correctly installed".
According to the error message, this issue should be related with your Windows Installer service.
Would you please help to check that the Windows Installer service is set to manual but not disable via the following steps:
Click Start menu, click Run, type services.msc in the Open text box, and then click OK.
In the Services (Local) list, right-click Windows Installer, and then click Properties.
If the Startup type drop-down list is set to a value of Disable, select the Manual option from the Startup type drop-down list, and then click OK.
Click the File menu, and then click Exit.
You can try download and install the latest Windows Installer 4.5 Redistributable
ALso, please refer the below link in the Windows installer issues section to know more about fixing some issues related with the service.
http://support.microsoft.com/kb/2438651
http://support.microsoft.com/kb/315346
Additionally, I've noticed that you have some removable devices connect to your computer while installing, please also remove them during the installation.
If there are any updates, please feel free to let me know.

Visual Studio ClickOnce, .NET and Mixed Case

I'm trying to publish a .NET 4.0 application to a web server using Visual Studio 2010 ClickOnce deployment. The actual application is published successfully, but if I start the installation from a machine without .NET 4.0 already installed, setup fails: When I click the download link, I'm getting the following error message:
An error occurred downloading the following resource:
http://server/app/DotNetFX40/dotNetFx40_Full_x86_x64.exe
A look at the published folder shows that Visual Studio created three folders there, next to setup.exe: Application Files, dotnetfx40 and windowsinstaller3_1.
If I change the actual directory name from dotnetfx40 to DotNetFX40, it works.
My "Publishing Folder Location" is a file path (\\\server\c$\... etc.), the "Installation Folder URL" is http://server/app.
I was surprised that I didn't find anything on this online; am I missing something obvious?
If your web server is a *NIX machine, then file names are case sensitive. This means that dotnetfx40 and DotNetFX40 are different files, which would explain why you got an error trying to download one (that didn't exist), and why the other worked.
Workaround: we switched over to copying the binaries from our build machine to the destination instead of deploying from dev machines.

WebDev.Webserver40.exe error (not a valid win32 application) - can't compile in Visual Studio 2010

Everytime I try to compile in Visual Studio 2010 I get the error
Unable to launch the ASP.NET Development server. Unable to start program 'C\path.......\Webdev.Webserver40.exe
I also tried to execute this file (Webdev.Webserver40.exe) and I get this error:
WebDev.WebServer40.exe is not a valid win32 application
I already turned off every firewall I have, and I already tried changing the .NET framework of any project, changed to different speceific ports and it's still failing...
What could be happening?
I have Windows XP SP3
I went through the same error. Seems like somehow the webserver embebbed in VS2010 got corrupted.
If you try to Debug a WebSite, the error is "Unable to launch ASP.NET Development Server".
If you try to Debug a Web Application, the error message points to the path of the server.
It's installed under this folder:
C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0
The two executables WebDev.WebServer20.EXE and WebDev.WebServer40.EXE were really corrupted (getting error "not a valid win32 application" when try to run).
I had to go to instalation DVD and selected "Change or Remove Microsoft Visual Studio 2010" in the Main Menu.
After that:
Add or Remove features
Uninstall Web Developer
When the uninstalling is complete, do it again:
Add or Remove features
Install Web Developer
Now everything works just fine.
I hope the same resolve to you.

Categories