|
Nearly impossible and not a good idea.
You cannot prevent the installation from happening multiple times on multiple PC's unless each PC is connected to the Internet and the installer checks in with a licensing server to see if it's already been installed. If so, then the installer has to abort itself.
But, this is a bad idea. Why? Because what if the end user has to reinstall the software because of a system failure or some kind?? You just lost a customer by forcing them to jump through hoops to reinstall software they already had running.
|
|
|
|
|
Identify the system with any unique identifier like IP Address or MAC address or anything and check for it in a database you have created(the program adds the identification to it everytime it SUCCESSFULLY installs)
But this is not a good idea
|
|
|
|
|
I m having a visualstudio 2008 project all debug folder files. The exe runs well in winxp and window7 32 bit but problem arises when i try to run in window7 64 bit. Plz help me how to resolve this issue.
Any comments are welcome
|
|
|
|
|
Take a look at your Solution Platforms settings when you do a build. Try changing it to Any CPU and then recompile the solution.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
thankz. but i dont have sourcecode of that exe
|
|
|
|
|
Then you need to look at using corflags to set it to run as a 32 bit app (this is a .NET utility that has flags specifically for this).
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
thankz i will sure check corflags utility
|
|
|
|
|
Hello all,
I am totally perplexed as I have never seen this happen before, and I am not really sure where to turn (Google turned up nothing useful). Every time a url is requested on one website, a strange string is automatically appended to it like: http://www.dalegroup.com/about.aspx#axzz0purapSyA[^]. At first I thought I could have accidentally made the Session cookieless, but this string is different on every page, and even when refreshing the same page. Has anyone ever seen this before, and if so how do I get rid of it?
Thanks,
Shawn
|
|
|
|
|
From my observations:
I don't think there is reason to be alarmed; it is normal syntax to indicate an anchor within the page, which would cause scrolling until that anchor is visible, assuming it is defined with an <a ...> tag, which it isn't when checking the page source.
It probably is used to carry your session state from one page to the next; you can delete it in the browser's address bar, but as you discovered when absent a new one gets appended.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
It turns out that a script that I added to the site previously (though I never updated the live site) is causing this to happen. The Script is from tynt.com, and it is used for tracking what content on the site users are copy/pasting. Thanks for your help, I was perplexed there for a minute as I completely forgot about implementing that script.
Thanks,
Shawn
|
|
|
|
|
No problem.
BTW: are you sure you want an e-mail address as an account name, visible to everyone?
you could change it in your settings page...
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
Well... thats a really good point. Now to see if I can find a way to change that..
|
|
|
|
|
It turns out that a script from tynt is responsible for this. I completely forgot that I put the script on my site.
Thanks for everything,
Shawn
|
|
|
|
|
Hello. I'm a relative newbie to NET Framework programming and I have a problem I can't seem to get my head around. I have an application that I need to read in customer supplied string values that are paths to executable programs that open CAD drawings in the specified external program. I have read about the Configuration Manager classes and XML Document object and I'm not sure what the best method would be. I considered using the OpenMappedExeConfiguration() method to read in the values supplied by the customer but I'm not to versed on how the merging of configuration hiearchy occurs when the Configuration object is created. I want to keep the scope of the config file at the application level.
Alternatively, I am considering creating an external XML config file and using the XMLDocument class to read in these path string values and set the executable paths that way. This seems like a more direct way to control application scope for the configuration file and I believe the default values for the path strings could be set in the ApplicationSettingsBase Class under the My Namespace in the Settings.Designer file. Is that a correct assumption?
Unfortunately I'm not real savvy on creating XML documents and the related nodes. Any advice on the best methods for implementing this or information on resources I would GREATLY appreciate!
|
|
|
|
|
If the file is supplied by the customer then I doubt very much it would be in a format usable by ConfigurationManger. Your best bet would be to use XmlDcoument, or better yet XDocument if using 3.5 or higher.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Thanks for the input Mark. Yes, that's what I thought - the best way would be to read in config values as they would have to be serialized.
I had another thought - I could create a custom configuration class to read the config file at the configuration file path and create a custom configuration section that would allow the user with the proper access rights to make changes to the elements in the section. That way I believe the serialization is handled by the configuration class. Does that sound like I'm on the right track or do I still have a bit of reading and experimenting to do?
|
|
|
|
|
Stop even thinking about using the config file. App.config and web.config files have elements that should never be exposed to end users. For the application, as you have described it, it is not the best tool to use. Use an external file with a defined schema that you can serilaize of read with XmlDocument.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Dears,
Iam new to vb.net,please help me to pass parameter to for my VB.net project,
I want to pass @Ridfrom to SP:usp_Procedure and return value to @PidTo .
The below mentioned is my codings.can u susggest a way to solve the error
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
Dim combo As String
Dim SQLEV As SqlClient.SqlConnection = New SqlClient.SqlConnection
SQLEV.ConnectionString = "Persist Security Info=False;Integrated Security=SSPI;database=db_chart;server=nrppc-mis1\sqlexpress"
combo = ComboBox1.SelectedValue.ToString
Dim command As New SqlCommand("usp_Procedure", SQLEV)
Dim adapter As New SqlDataAdapter(command)
command.CommandType = CommandType.StoredProcedure
With command.Parameters
.Add(New SqlParameter("@Ridfrom", SqlDbType.NVarChar))
.Add(New SqlParameter("@PidTo", SqlDbType.Money)).Direction = ParameterDirection.Output
.Add(New SqlParameter("Returnvalue", SqlDbType.Int)).Direction = ParameterDirection.ReturnValue
End With
End Sub
this is my stored procedure
eg:If i pass @RidFrom=1 im getting Output value @pidTo=3
ALTER PROCEDURE usp_Procedure
@Ridfrom nVarChar(50),
@PidTo nVarchar(20) output
AS
SELECT @PidTo = ProcDetails.Procedure_ID
FROM ReportMaster INNER JOIN
ProcDetails ON ReportMaster.Procedure_ID = ProcDetails.Procedure_ID
WHERE ReportMaster.Report_ID = @Ridfrom
RETURN
|
|
|
|
|
Sabui wrote: can u susggest a way to solve the error
What error? You don't mention getting any errors.
@PidTo does not need to be an output parameter, the value of ProcDetails.Procedure_ID will be returned from the select statement.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Dear Mark,
thank you for your suggestion.
I tried in that way i was successful to ruen value from the SP.
but now the problem is im not able to pass and retrieve value to and from this SP.
@Ridfrom and return value is not changing.
please help me
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
Dim SQLEV As SqlClient.SqlConnection = New SqlClient.SqlConnection
SQLEV.ConnectionString = "Persist Security Info=False;Integrated Security=SSPI;database=db_chart;server=nrppc-mis1\sqlexpress"
Dim combo As String
combo = ComboBox1.SelectedValue.ToString
MsgBox(combo)
Dim command As New SqlCommand("usp_Procedure", SQLEV)
Dim adapter As New SqlDataAdapter(command)
command.CommandType = CommandType.StoredProcedure
'command.Parameters("@Ridfrom").Value = combo
With command.Parameters
.Add(New SqlParameter("@Ridfrom", SqlDbType.NVarChar))
.Add(New SqlParameter("Returnvalue", SqlDbType.Int)).Direction = ParameterDirection.ReturnValue
MsgBox(command.Parameters("@Ridfrom").Value)
MsgBox(command.Parameters("Returnvalue").Value)
End With
|
|
|
|
|
Are you expecting the values to be displayed in the messageboxes? Of course nothing has changed, you have not caused the command to execute yet.
Please read a book or article on ADO.NET before trying to work with it, you don't seeme to understand how it fuctions.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
hello,
I think you forgot to post the error or
problem you are facing...
Post the error or problem that you are facing,
so that it is easier to solve it.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
I installed some .net application on my machine ( lets say this is some exe ).
I double click on the file - and now there are two options
A. the exe file is ran once before this double click - and that mean that the IL code is compiled and the native code is exists => in this case the exe.
B. the exe file is running for the first time - and the IL is not compiled yet by the JIT compiler ==> that mean that now the IL code will compile and the native code will be stored at some place.
My question are
1. How the .net framework know if the code was compiled already ?
Is there some flag or some sign that can tell if the native code compiled already ?
2. Where the native code will be stored ?
Thanks for the help.
|
|
|
|
|
I think this might help you ^
|
|
|
|
|
The native code is not kept around beyond the execution of a process. Whenever the EXE starts it will gradually JIT-compile whatever classes/methods need executing.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|