Error -3204:Cannot extract icon with index 0 from file - c#

In building an installer for my application,i repeatedly getting an error:
Error -3204: Cannot extract icon with index 0 from file C:\Users\....
A quick google search got me here (where the issue isn't resolved) and following step by step procedure here enabled me to add C:\Windows\system32\shell32.dll everytime i build my project, then selecting icon:2 .A setup.exe is created despite an error
and installs app for me but with no trace in Add/Remove programs in Control Panel.
How to get that icon in Add/Remove Add/Remove programs in Control Panel.
EDIT: if there's any other software for windows installer for VS2013 such as SetupProject with the previous releases of VS 2xxx please suggest me

You should change the method of creating the setup file. See the link below :
Clike Here
Update :
Here are two other setup applications which can make setup of your application.
QSetup
and Centurion Setup
You can try them to make setup for your application.

<ISProductFolder>\redist\Language Independent\OS Independent\setupicon.ico
When I used the file path above in the project assistant --> application shortcuts section --> use alternate shortcut icon, the basic icon showed up and allowed me to select the icon. Now my project builds without this error. (the icon looks bad but it works.....)
IconShow

Related

Build Error C00CE014 due to 200+ resources in AppxManifest.xml

I'm building a UWP application and I'm getting a build error when the number of resources is 200+ with Visual Studio Community 2017 Version 15.9.4. If I reduce the number of resources below 200 then it builds just fine. Is this a limitation for the Community version? I intend to submit the app to the Microsoft Store and unless I limit the markets the app will fail because it doesn't support all of the required language codes which are included as resource files.
I've tried building a project from scratch...steps to reproduce detailed below. I've reduced the resource list but now I'm faced with denying my app to some markets because I believe the Microsoft Store won't accept my app for that market unless it supports the language for that market.
Start Microsoft Visual Studio Community 2017 Version 15.9.4 with Microsoft.NETCore.UniversalWindowsPlatform v6.2.3 NuGet package (and no other NuGet packages) if that makes any difference.
Click and Select File=>New=>Project from main menu.
Select Windows Universal=>Blank App (Universal Windows) then click OK.
Select Target version 17763 and Min version 16299 then Click OK (but the same error occurs with other version settings).
Select Project=>Store=>Create App Packages.
Select "I want to create packages for sideloading" (but the same error occurs with a Store App) then click Next.
Click Create to accept the defaults.
Click OK to close the popup indicating that the package was created.
Click Build Solution or press F6.
Right click on the app project and select New Folder then rename it Localization.
Right-click on the Localization folder and select New Folder.
Name the folder using one of the Supported Language Codes listed on https://learn.microsoft.com/en-us/windows/uwp/publish/supported-languages.
Right click on the new folder and select Add=>New Item.
Select XAML=>Resources File (.resw) then click Add.
Enter any value, for example String1, for the String1 Name and save it.
Create additional sub folders for all supported language codes and copy the same resource file into those folders.
Add those resource files to the project.
Try to build the project.
Result:
Error Validation error. error C00CE014: App manifest validation error: The app manifest must be valid as per schema: Line 223, Column 6, Reason: Element '{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Resource' is unexpected according to content model of parent element '{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Resources'. App1 C:\Users\Steve\Documents\Visual Studio 2017\Projects\UWP\App1\App1\bin\x86\Debug\AppxManifest.xml
Note: Line 223 is the line where the 200th resource line: <Resource Language="LT" /> is located. However, the error goes away if Resources.resw files are removed from the project until there are 202 or less localization resources in the project. This error is preventing my UWP applications from being available to all supported markets.

How To Fix Icon For InstallShield

I used to be able to create a setup project in Visual Studio, but now Microsoft has "improved" it and I'm wasting hours trying to get a simple project to someone else in my company. They need to upgrade their version of .NET or I wouldn't even use a setup. So after going through the pain of downloading their "improved" InstallShield and going through the pain of watching a video and setting all the parameters I tried to build the Setup project and it says the icon isn't valid. "Screw the icon. Let me deploy my project." The actual error message is "Cannot extract icon with index 0 from file ..." It doesn't matter to me if this uses a standard icon or no icon, I just want the user to be able to test this project.
So, what is the easiest way to get this setup project in the hands of my user?
I solved this problem by adding a new icon to the project and re-compiling. You can do this by right-clicking on the project and selecting Add -> New Item -> Icon File. Then assign that icon file under the Project -> Properties menu item.
Simple Solution:
At the time of Installation Wizard, while missing the reselection of
the Image / Icon for shortcut after we have browsed the resource path.
Missing this causes this index error (please refer screenshot). after
re-selection rebuild is required this solves problem.
Simple way to fix this error :
Right click on your project- go to properties-application tab-in application tab set icon to your project in Icon & Manifest option

Web Form doesn't allow me to add standard toolbox elements

I have a .Net Framework 4 Web Project which works properly before I add a webservice into it. Then I created a Web Form with Master Page but I can't see the asp:Content section in the Design Mode. There was no available Standard toolbox items in the toolbox as you can see in the picture: Image1 (Can't add images because of lack of reputation)
Then I tried a create a fresh new Web Form for getting rid of and master page related errors but Standard toolbox items were not visible again.
Things I've tried so far:
Removed the web service
Undo pending changes
Created a new web form which don't use a master page
Created a fresh web project
Resetted settings via Tools > Import and Export Settings
Resetted via command line devenv /ResetSettings, devenv /ResetSkipPkgs
Repaired Visual Studio via installation .iso
UPDATE 1 I've also tried to add a label from source view as mentioned in this
question. When I switched to design mode it throwed an error: "Error creating control" Image2
I think this is a project related problem but I'm not sure. The weird thing is some of the old items like an ascx control allow me to add Standard toolbox items but nothing newly created items are allowed me to do this. How can i resolve this issue?
Thanks in advance,
After a long time googling , and mostly all answers - revolving around
Reset Toolbar
Delete .tbd files from C:\Users(your user)\AppData\Local\Microsoft\VisualStudio\11.0
Using devenv.exe /SafeMode & devenv.exe /ResetSettings.
None of them working out for me, making me more sick.
There is something I did which worked and thought it's worth sharing if it helps someone.
I followed all of the above steps, failing . I did Step 1 & 2 with my project (in VS 2012) open and
Right Click on Toolbox > Choose Items > Pressed Reset > ok.
Then again, Right Click on Toolbox > Add Tab > 'gave it some name' > then again
Reset Toolbox
There was some screen flash/flickering - some loading .
And to my surprise the Grey life ( grey controls ) were now available .
Hope this helps someone like me! :)
in the image, the General tab is open, not the HTML tab. try clicking the HTML tab.
1 - Right click – your web application project and select Properties -> Web
2- in the server section choose Use IIS Web Server -> then click Create Virtual.
3- Clean your project from any DDLs that was previously complied and compile your project again.
ALSO
http://support.microsoft.com/kb/2933779/en

How to implement Setup and Deployment project with Custom Actions

My Setup and Deployment project will copy both MyClient.exe, MyClient.Config files to the appropriate directories using the Setup.msi file.
I am trying to enhance the Setup.msi project so that user can enter the configuration values at run time and the setup program can update the file MyClient.Config. I have created a new project and added a windows Form in it with edit boxes. The project will create an application named Helper.exe
I followed the below link and implemented the Custom Actions functionality.
link
But the issue is Setup.msi is always starting the MyClient.exe instead of Helper.exe during the deployment.
Thanks in advance for your help
I'd suggest either using a different tool (this project type is removed from VS2012 and exposes very little of Windows Installer) or move the requirement from the installer to the application (first run configuration).

InstallShield: cannot extract icon with index 0 (for dummies)

Yes I did my homework first. And I'm still stuck. First let me express my irritation at Microsoft for deprecating the Installer project type. Shame on them.
Back to my issue, Here is the error:
Error 3 -3204: Cannot extract icon with index 0 from file <some_path>\obj\Debug\MyProject.Gui.exe.
Attempt #1: InstallShield: cannot extract icon with index 0 vb.net
-- The answer says to include an object of type icon in my exe and rebuild. To do this, I tried the following:
right clicked on my windows forms project, add new item, icon, save all
open the icon file in step 1, draw some text in it, save all
right click the project and select rebuild (no errors, looks good)
left click on 'Specify Application Data'->'Files', select the *.ico in the project (Note: I can see it clearly listed, and it appears in the dialog as index0)
left click on 'General Information'-> 'Display Icon' -> browse for the *.ico (located in project folder for MyProject.Gui.exe)
save all and rebuild all
...I still get the same error message.
How does one "Recompile your EXE to include an icon and the message will go away"?
I had the same issue. Your problem is because you need to embed the icon into your executable. The way you do this is in Project Properties window in Visual Studio (Alt-Enter or right click ->properties for project root in solution explorer).
In the project properties under Application, there's a group box called Resources. Add your icon as shown below and install shield will build fine.
Hope that helps.
I was getting this problem, I try a lot of solutions on the web, but the only way that works for me:
Expand the deploy solution (+) on the right panel (Solution Explorer)
Expand the menu "Configure the target system"
Double click on Shortcuts folder
Here you will find 2 output you set up in the project wizard.
Select one of them, and find the property Icon, click to (...) to browse the propertly icon.
Do the same with the second one output built solution.
Rebuild your project!
Regards,
You need to copy the icon file to the debug folder of your windows application to successfully compile.
Go to Shortcuts/Folders under configure the Target System.
Select your application from the tree.
Select the icon and change the index to 2 (or something other than 0)
Build it.
If the problem is that you associated the icon with the installer and you embedded it into your application but you are still getting this error, try adding a folder exception to your antivirus software. The exception should be the folder where your source is located and the executable is output.
The symptom is that you randomly get this error during a build. It is caused by your antivirus software preventing the installshield icon extractor from accessing your application executable.
This happened with me also. My application runs in the background so I didn't create an Icon for it. When this error occurred I assigned an icon and everything built okay.

Categories

Resources