|
You can't do this with an msi, as far as I know. You'd do better to just have your program ask them the first time it is run.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
OK. Thx. Just one simple question, I guess. If I want to have like a window what I need to run just the first time when the user will start the app, and after that to have the main window running, how I can do that, cause I haven't done anything similar so far. Thx in advance
|
|
|
|
|
hi
In Fact you can do some post/pre/during install operations when you are creating your MSI with visual studio (currently i have VS 2005)
It's called a Custom Action
You can call a custom action When Installing, Validating , Reparing installation or Uninstalling
So You can attach an executable file to do some work (e.g creating folder, cleaning etc.)
This is a sample from the msdn web site :
http://msdn.microsoft.com/en-us/library/9cdb5eda.aspx[^]
|
|
|
|
|
A custom action sounds like a good idea. The other way is to store something in the registry to tell you that you're been run and performed the action before.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
hi all...i have a hyperlink in a datagrid...the hyperlink navigate url is set in the code behind when a user clicks on a record in the datagrid...i want to know if there is a way to remove the redirect pages menubar and scrollbars from the navigate url?
living life on the flip side
|
|
|
|
|
I have an existing solution which I would like to add class files to or update the files.
The solution has numerous projects in it, and would like to add more classes to it as the code progresses, but use a code generator to do so (adding new tables and fields etc). Is this possible?
|
|
|
|
|
Of course. You can add code to your solution whenever you like, from what ever source you like.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Maybe I did not make myself clear.
I want to create a code generator, which will parse an existing solution, parse the projects and add or update a class in the project (such as to add fields from a database to a list of field constants in an existing class).
|
|
|
|
|
OK, sounds like a lot of work, I'd look into existing ORM frameworks, which do that stuff for you, and already exist.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
hi friends
i want to design an application that user can input his/her favorite c# commands and after press execute button his/her entered command(s) execute.
i dont want to design a c# compiler.
i have a form that on this form has one textbox and one button.
user input his/her c# command on textbox and press button. now i want to execute and compile his/her c# command dynamically.
i hope you understand what i need.
thank you
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
|
Have a look at Microsoft.CSharp.CSharpCodeProvider
----------------------------------
Be excellent to each other
|
|
|
|
|
There are basically two options that I think both previous responses have covered, and those are either:
a) Scripting, using a C#-like scripting implementation (I have heard of at least two, probably more)
b) Dynamic compilation, which allows you to actually use the built-in (and supported) C# compiler to compile true C# into miniature in-memory assemblies
And if you want to consider it a third, there is actually one of those scripting languages that compiles, combining the two ideas.
This is something I've been wanting to look into so I've been keeping my eye out for stuff, but haven't actually tried anything out yet.
Let me know how your search goes!
Logan
“Time and space can be a bitch.”
–Gushie, Quantum Leap
{o,o}.oO( Looking for a great RSS reader? Try FeedBeast! )
|)””’) Built with home-grown CodeProject components!
-”-”-
|
|
|
|
|
Hey guys...
I've got a problem, a few months back i wrote a console app to communicate with fingerprint scanners using the manufacturers SDK(C++ & .Net wrapper) for use with our older clarion software.
Its been live a while now and hasn't had any problems, until a customer with vista tried using it! I get the error "CLR error 80004005, Program will now terminate" on start up.
The OS is Vista Business, target framework is .Net 3.5(yes it is installed on that machine), build was release and not debug.
<update>
i tried recompiling the app to target .Net 2.0 and 3.0 and the problem persists. From what ive read on the net vista is shipped with .Net 2.0 and 3.0 built in, so somehow this must be screwing around.
ive also tried sfc /scannow from cmd running as admin which scanned the system and found no problems.
im at a loss, i dont know what else to try accept install my dev environment on that machine, but it that somehow fixes the problem im screwd cuz i cant go around installing VS2008 on client machines.
</update<
Any ideas how this can be fixed?
Thanx
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
modified on Wednesday, August 20, 2008 8:23 AM
|
|
|
|
|
From a search from Google, it may appear there are some beta software left over.
Do you get any more info? Can you attach a debugger to the app?
|
|
|
|
|
what do you mean by beta software?
i get nothing else than CLR error 80004005, i also googled and saw there might be compatibility mode issues.I disabled it, tried Win 98, XP sp2, server 2003 compatibility but still getting the same thing. Tried running as admin aswell.
im going to install my dev stuff(VS 2008 etc) on that machine now and see if i can debug it...
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
suppose i have a range of 3*3 cells then in only two cells have data, is there any method in vsto using c# such that out of the 9 cells the method returns only 2 cells which have data in an array.
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
hello,
I just want to use datagridviewlinkcolumn in datagridview for edit ,dalete but there i can't find the event for this . what can i do for this please give me solution for this problem..
|
|
|
|
|
|
Hi,
Is there a possibility to add in a setup the instalation of the .net framework if needed.
If yes, how can I do this?
thanks,
|
|
|
|
|
Have a look at it[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi,
I am using .net 3.5 clickonce.
I would like to add an xml file to the setup so that it gets installed along with other default files.
How do I add an xml file to the clickonce please?
Thanks
|
|
|
|
|
does anyone know how to select one item at a time from checkboxlist control. if one item is selected and i select a second item i want the first one to be deselected.
|
|
|
|
|
you have to check it at run time, whether another checkbox is checked or not, If any one is checked just Unchecked it by changing its value.
Regards,
Atul Rane
modified on Wednesday, August 20, 2008 3:14 AM
|
|
|
|
|
Hello !
There is an enum type property in CheckedListBox control :
'SelectionMode'
You have to set it to 'One'
But You have to think about usability!
When we say a CheckedListBox, user have in mind that he can check more than one item! (CheckBox vs RadioButton)
You will have user frustration as a result
The best control to use in this case is a simple ListBox.
|
|
|
|