Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
GeneralRe: Image minus image Pin
pancakeleh21-Nov-10 18:42
pancakeleh21-Nov-10 18:42 
GeneralRe: Image minus image Pin
JF201521-Nov-10 18:45
JF201521-Nov-10 18:45 
GeneralRe: Image minus image Pin
Alan Balkany23-Nov-10 3:51
Alan Balkany23-Nov-10 3:51 
QuestionCreate installers dynamically Pin
Jacob D Dixon21-Nov-10 7:05
Jacob D Dixon21-Nov-10 7:05 
AnswerRe: Create installers dynamically [modified] Pin
Richard Andrew x6421-Nov-10 10:12
professionalRichard Andrew x6421-Nov-10 10:12 
GeneralvRe: Create installers dynamically [modified] Pin
Jacob D Dixon21-Nov-10 12:23
Jacob D Dixon21-Nov-10 12:23 
GeneralRe: vRe: Create installers dynamically Pin
Not Active21-Nov-10 12:37
mentorNot Active21-Nov-10 12:37 
GeneralRe: vRe: Create installers dynamically Pin
Jacob D Dixon21-Nov-10 15:46
Jacob D Dixon21-Nov-10 15:46 
Ahh I was thinking since it was talking about a MSI installer it only did MSI. I don't really have any code. I used reflector to look at the code to see what they were doing. I can try to explain this..

Ok there are agents and each agent have a "location" (city, town, etc). Now there are templates assigned to each location. These templates can contain stuff such as the server address, port, location id, tray icon file, etc. So in the control center application you create your locations and pick the template that goes with them. When you create a location and set the template it creates a link on the webpage for that installer (so it automatically creates a custom installer)

So on the web interface where you download the agent EXE file, it is going to a Deployment.aspx page and is passed the LocationID as a query string. You download the EXE file, install it, and now your computer shows up automatically under the correct location.

So after digging around in reflector I noticed that the installer is default for all of them. The only thing that changes is the embedded resource Template.xml. So what I think is happening is the Deployment.aspx page is querying the database for the locationid template information and creating a new Template.xml file. It is then replacing the Template.xml that is already in the agent installer with this new Template.xml. So when you install it, it is setting all the information in the template.

So my question is if I have a EXE that I created, how do I replace the embedded resource with a updated file? This means I would have to open the EXE file and somehow figure out where the embedded resource file is and replace it programmically.
AnswerRe: Create installers dynamically Pin
Mirko198022-Nov-10 2:14
Mirko198022-Nov-10 2:14 
GeneralRe: Create installers dynamically [modified] Pin
Jacob D Dixon22-Nov-10 11:33
Jacob D Dixon22-Nov-10 11:33 
QuestionConverting an particular color in an image to another color Pin
pancakeleh21-Nov-10 4:41
pancakeleh21-Nov-10 4:41 
AnswerRe: Converting color in an image [modified] Pin
Manfred Rudolf Bihy21-Nov-10 4:50
professionalManfred Rudolf Bihy21-Nov-10 4:50 
AnswerRe: Converting color in an image Pin
Richard Andrew x6421-Nov-10 4:51
professionalRichard Andrew x6421-Nov-10 4:51 
AnswerRe: Converting an particular color in an image to another color Pin
pancakeleh21-Nov-10 5:15
pancakeleh21-Nov-10 5:15 
GeneralRe: Converting an particular color in an image to another color Pin
_Erik_22-Nov-10 6:13
_Erik_22-Nov-10 6:13 
QuestionGot a 512 error on calling acmStreamOpen() in c# Pin
Alegria_Lee20-Nov-10 14:30
Alegria_Lee20-Nov-10 14:30 
AnswerRe: Got a 512 error on calling acmStreamOpen() in c# Pin
Luc Pattyn20-Nov-10 16:36
sitebuilderLuc Pattyn20-Nov-10 16:36 
AnswerRe: Got a 512 error on calling acmStreamOpen() in c# Pin
Bernhard Hiller21-Nov-10 23:00
Bernhard Hiller21-Nov-10 23:00 
GeneralRe: Got a 512 error on calling acmStreamOpen() in c# Pin
Alegria_Lee22-Nov-10 1:11
Alegria_Lee22-Nov-10 1:11 
Questionheeeelp: saving and reading image C# and mySQL Pin
Jassim Rahma19-Nov-10 23:45
Jassim Rahma19-Nov-10 23:45 
AnswerRe: heeeelp: saving and reading image C# and mySQL Pin
thatraja20-Nov-10 1:34
professionalthatraja20-Nov-10 1:34 
AnswerRe: heeeelp: saving and reading image C# and mySQL Pin
Abhinav S20-Nov-10 1:53
Abhinav S20-Nov-10 1:53 
Questionget min and max from histogram [modified] Pin
pancakeleh19-Nov-10 22:35
pancakeleh19-Nov-10 22:35 
QuestionGhostScript Pin
Kevin Marois19-Nov-10 12:08
professionalKevin Marois19-Nov-10 12:08 
AnswerRe: GhostScript Pin
Keith Barrow21-Nov-10 1:06
professionalKeith Barrow21-Nov-10 1:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.