Set-up Wizard - some of the image cannot load

I have created a window application in C# with a lot of hardcode images. 
Next, i created a set up wizard. (So the exe can contain all the files needed Eg, Application files)
However, when view, some of the image cannpt be load. Is it because there are too many images? How can i solve it? 

I have created a window application in C# with a lot of hardcode images. 
Next, i created a set up wizard. (So the exe can contain all the files needed Eg, Application files)
However, when view, some of the image cannpt be load. Is it because there are too many images? How can i solve it? 
Hello,
>>Next, i created a set up wizard. (So the exe can contain all the files needed Eg, Application files)
Did you mean the steps below shared by Bob Wu? If so, whether the
"alwayscreate" property was set to true?
Hi srm_2010,
The steps depends on the way your use these files.
If these files are resource files and the code read/write these files by using ResourceManager, then you don’t need to do anything.
If these files are locate in a folder and you use the file by file path, for example, Image img = Image.FromFile("C:\\LocalImages\\alligator.ico"); or , Image img = Image.FromFile(".\\LocalImages\\alligator.ico"); //relative path
, then you need to include the file in the “File System on Target Machine” with the right place.
For example, you read the image by the following code,
Image img = Image.FromFile(".\\LocalImages\\alligator.ico");
Then create a folder named LocalImages and include the file alligator.ico in it.
For more details, see File Installation Management in Deployment
Here is the
entire code, please check it.
If there is anything unclear, please let us know.
Best Regards,
Bob Wu [MSFT]
MSDN Community Support | Feedback to us
>>However, when view, some of the image cannpt be load.
Did you mean it is the time when you execute the application installed by that setup project?
What is the meaning of " the image cannpt be load", the application will not show that image or these images are not copyed to target machine?
If these files are not copyed into target machine, you could check the following way and keep each file's
Copy to Output Directory to "Copy always".
Hi srm_2010,
Here is one more.
If these files are added into the project, then you can set the Build Action to Content, set Copy to Output Directory to “Copy always”, rebuild the project ,right click the setup project, click add, select project, select “Content Files” in the Add Project
OutputGroup dialog, and then click Ok.
If there is anything unclear, please let me know.
Best Regards,
Bob Wu [MSFT]
MSDN Community Support | Feedback to us
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

Maybe you are looking for

  • I have a problem in creating a Process Chain(PC).

    Hi GURU's I have a problem in creating a Process Chain(PC). The PC should run on first 3 business days of the month for six times i,e 6am, 7am,8am, 9am,10am,11am. For this i have created 3 PC like BD1, BD2, BD3, and i selected the Factory calender pr

  • Activating C&V Profile in Controlling Area Error URGENT

    Hi Experts, I'm having problems in activating C&V Profile. I have done all the set up in FI, CO, and PCA. They are all consistent but when i am activating it says the following errors: Create a results analysis version for valuation view ID01 Version

  • License error connecting to Sap BW from BO InfoView

    We installed succesfully the Sap Integration Kit Xi R2 , and the created the universe to connect to Sap BW. But when we try to access from the BO InfoView to the Sap BW with a proper Sap user we recive an error like that  : "...Unknow user: all the 0

  • Bug only in PRD, fine in QAS & DEV

    Mods, Please move this to the right forum if needed. Thanks Hi all, we are stuck here with a difficult issue. In our business, a user creates an Engineering Change Order (ECO) through a ztcode. A workflow is then triggered which takes care of mails t

  • IsCellEditable() to disable cell editing for specific columns

    Hello experts: My SSCCE for this question is at the below link: http://forum.java.sun.com/thread.jspa?threadID=5293914&messageID=10244030#10244030 My question is how do I disable cell editing for all but the "Price" column of my table in the SSCCE. I