|
two options:
1) change the version number to one greater than what you have and rebuild
2) use Windows "Add/Remove Programs" to remove the product that's currently installed and then reinstall the new version
The problem is that windows caches the installer somewhere in it's bowels when you run it. Then when you go back into the project, make changes and rebuild there are now two distinct copies of the installer: the one that windows cached when you last successfully ran it and the new one that you just built in your DEBUG (or Release) folder. Both installers have the same product name and version number so when you try to run the new installer that you just built windows looks and sees that the product that you're trying to install is already there. Then you get the error message that you're seeing.
One way to fix the problem is to used the installer that windows cached when it was to run to remove your product. To do this go through Windows "Add/Remove Programs" and remove it from there.
To change the version number select the Setup Project's project file in the Solution Explorer and look at the Properties tab. One of the Properties is the version number.
|
|
|
|
|
Thanks for that - it's very helpful.
However... I am feeling very stupid as I cannot find a version number on the form that opens when I select Project / [ApplicationName] Properties... within the setup and deployment project.
Am I missing something?
Continuous effort - not strength or intelligence - is the key to unlocking our potential.(Winston Churchill)
|
|
|
|
|
It's not you, it's Microsoft hiding stuff from you
Select [ View -> Solution Explorer ] when that comes up highlight the project file and then select [ View -> Properties Window ]. There's lot's of good stuff in there including the Version Number
|
|
|
|
|
Thanks - for some reason I'm still not seeing it - thanks for your help I will plug away until I find it (there may be some setting somewhere hiding this information)
Continuous effort - not strength or intelligence - is the key to unlocking our potential.(Winston Churchill)
|
|
|
|
|
|
Phew - got there eventually.
You definitely deserve a 5 star for being so patient and helpful.
I'd also say have a beer on me if I was able to buy you one. Thanks
I figured out I had to press the F4 key when the solution was highlighted as menu opened another window.
Continuous effort - not strength or intelligence - is the key to unlocking our potential.(Winston Churchill)
|
|
|
|
|
glad to help
|
|
|
|
|
Hi. I want to do this:
<br />
fileWatcher.Created += new FileSystemEventHandler(fileWatcher_Created(ref extra_parameter));<br />
<br />
void fileWatcher_Created(object sender, FileSystemEventArgs e, ref TYPE extra_parameter)<br />
{..}<br />
How can I do this?
|
|
|
|
|
Impossible. Can't be done. If you can take control of the code sending the event, you could do it, but it would make more sense to have a new event args that contains your extra info. Unless you write the code that sends the event, you plainly can't change what it sends.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You need to create a new class which inherits from the FileWatcher, than catch the Created event and raise your own event. You can pass as many parameters as you want, or even change the EventArguments and add new properties to that which would be neater in my opinion...
|
|
|
|
|
Hi,
How can i read data (data sent to printer port from notepad or any other application) from printer port before printing based on printer port and ip adress (in case of network printer) or any other way in C#
This is very very urgent for me
Thanks in advance
--Krishna
Krishna Prasad RVS
Microsoft Certified Application Developer (MCAD)
modified on Tuesday, May 6, 2008 7:54 AM
|
|
|
|
|
Printing jobs go to the print spooler, do you want to watch that somehow ? Not sure if you can in C#, without using p/invoke to get C++ to do the heavy lifting. Even then, I am not sure of the details, just thought I could point you in the right direction....
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello,
I was wondering how can I build a custom install that would show the user a list of optional applications, and the user will be able to choose which he wants ? (like the custom insatllation of office/windows)
I have tried to go over the standard dialog of the "setup project" in visual, but didn't find anything suitable ?
On the same subject, what are the merge modules, and what are they good for ?
thanks,
berlus
|
|
|
|
|
merge modules allow you to merge code into your install, such as runtime libraries, etc.
The list of optional applications - I dunno what you can do with VS but with www.advancedinstaller.com, I can set up files to be installed, make them part of groups, then have the user select which groups to install. The Office etc stuff is more complex again, I doubt they use the standard MSI format for that.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi i´m try to add a backgroundimage at the tab(top button)(no icon) but i can´t,and i would like to do that the backcolor of the tab is same at the tab page.thanks.
this link is similar but this link don´t paint the top button (tap).
http://www.codeproject.com/KB/tabs/GradientTabControlPackage.aspx"
|
|
|
|
|
You need to make it owner drawn and write your own code to draw the bitmap
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
yes i maked my code is this:
private void RepaintControls())
{
foreach (TabPage ctl in this.TabPages)
{
System.Drawing.Drawing2D.LinearGradientBrush gradBrush;
gradBrush = new System.Drawing.Drawing2D.LinearGradientBrush(new
Point(0, 0),
new Point(ctl.Width, ctl.Height), PageStartColor, PageEndColor);
Bitmap bmp = new Bitmap(ctl.Width, ctl.Height);
Graphics g = Graphics.FromImage(bmp);
g.FillRectangle(gradBrush, new Rectangle(0, 0, ctl.Width,
ctl.Height));
ctl.BackgroundImage = bmp;
ctl.BackgroundImageLayout = ImageLayout.Stretch;
}
}
is the same code to //www.codeproject.com/KB/tabs/GradientTabControlPackage.aspx
but i would add a backgroundimage at the top or the bitmap is same that the page color.how to ..?
|
|
|
|
|
I want to make a windows forms application(which would run on a client) which would contain a web browser, and this would link to some url(from a server) and load the page from there...
The page would contain some buttons and listboxes etc and when the user clicks on this, some processing should occur on the client side..
How can I do this?
For example suppose that the page to be displayed in the web browser from the server contains a textbox and two buttons (Get Machine Name) and (Submit)..
When the client clicks the Get Machine Name, the machine name of the client is fetched and put in the textbox in the web browser and when the client hits the Submit button, the text is forwarded to the server..
Can all this implemented???
|
|
|
|
|
Erhm, you can use the webbrowser control, drag it onto your form and use it's navigate() method to navigate to a certain webpage.
I think it's easier to fetch the machine name from code and pass it to the webpage using a querystring rather then trying to fetch the machine name from your webpage. You can insert the name as value of the textbox so users only need to hit the submit button...
|
|
|
|
|
That question was just a short example to know whether I can perform client side processing and send them along with the web browser..
Can we access the controls inside the web browser in the client side?
The textbox for example?
|
|
|
|
|
Not easily, but yes. You can inject javascript into the page, and interact with it, you can access and change the HTML using the DOM.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You can access C# methods with JScript that are in a class which you set to com visible and point the Web Browser's ObjectForScripting Property[^]
-Spacix
All your skynet questions[ ^] belong to solved
I dislike the black-and-white voting system on questions/answers.
|
|
|
|
|
i have created a setup wizarad project............Setup file is working good..... But when we run it on a system that dont have >net Framework 2.0...... it asks for download.... i have added in dependencies of Setup project..... But asks download
What should i do to avoid download...... What i need is Framework should be install automatically
What should i do..
Thanks
|
|
|
|
|
Right Click on Setup Project -> Click on Prerequietic Button
Now check the Framework that is as dependency
Now , there should have three option button for Installing Framework
you can choose any one of theme.
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
Hello,
there is a c# method perfoming some operations:
protected override bool checkDatalinkEntry(PlausicheckKernel.Datalink.DatalinkEntry entry, ref string msgReason, ref string msgReasonShort)
{
bool retValue;
Thread.CurrentThread.CurrentCulture.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Sunday;
return retValue;
}
In addition, there is a unit test method which calls checkDatalinkEntry.
Calling the test method from main will work, but calling the test via nunit gui, System.InvalidOperationException is thrown (instance is write protected) at setting FirstDayOfWeek property.
Any idea on how to fix this? I don't want to modify my businesslogic (checkDatalinkEntry) for nunit..
thanks in advance
|
|
|
|