|
Yes i thought like this whatever u have told.........but how to set registry key and where it is to be set......plz help me it is very urgent.
|
|
|
|
|
Hi ... You can do so using the properties of the setup project ... there is a property called DetectNewerInstalledVersion which will check if a newer version is already installed on the machine and aborts the installation if there is one, and this also includes the same version as well, the default value for it is false so set it to true, but you have to make sure that the version of the product is set to 1.0.0 and above ... this property will not work on lower versions as i think (e.g 0.0.5 )
Give it a shot ... and you might wanna take a look at another property in the setup project which is RemovePreviousVersions
I hope this helps ...
Sincerely Samer Abu Rabie
Note: Please remember to rate this post to help others whom reading it.
|
|
|
|
|
I think you are not get correctly to my question--I want to install my project only once at client location..if the client make copy to my exe files and try to install in other systems(means if the client will want to make duplicate copies of my project and try to cash my project) it should say 'this application is not permitted to install more than once and even it has to be give like alreday it was installed by some client ".
|
|
|
|
|
I hope I got you correctly this time, You want you application to only be installed once on one machine, and whatever the client do to install it on another machine he shall fail ! Well ... I could think of two ways to help you out:
- Generate some kind of license and whenever the application is installed he should communicate a server for that license to validate it, if its good then complete it or run the application, other wise it will fail.
- You can build your application to that specific client machine, by checking the partition serial number or some hard disk info or even reading a unique registry key, where its only unique to that machine.
Sincerely Samer Abu Rabie
Note: Please remember to rate this post to help others whom reading it.
|
|
|
|
|
Yes now you got it...but how to set registry keys and i don't know plz help me how to crack this problem i.e very important to my project......
can u plz give settings or solution for that...........
|
|
|
|
|
A registry would only work on one machine, the original, installing a registry would not prevent them from installing it on another machine because it would not be present on that machine, a better solution would be to make a custom serial key as was said earlier, for that comp and it only, mabe with its IP address if the computer is never moved or other computer info, talk with the client first, and get the info, or hard code it into the code for custom perchases. Thats just one idea, if you can get the server varification of a one-time-use serial number that would be best, if you MUST stick with registry keys this:
http://www.codeproject.com/KB/system/modifyregistry.aspx[^]
might help... best of luck!
|
|
|
|
|
Hi All,(Windows Application using C#.net in vs2008)
I am developed one small project on school,now I've a small problem is -how to get a window(small window like vs 2008,sqlserver2005 their own teplates) after deploying(install) the application.I mean that when we're try to open sql server it is give a small size window(like microsoft sqlserver 2005 for couple of seconds) b4 launching a sql server management studio,same like that i want to see my own school template b4 launching of my school project.I think you're cleared about my doubt.
-----Is there any chance to set in click once deployment.
|
|
|
|
|
What you are looking for is called splash screen. There are several implantations available here at codeproject so a simple search should be able to find them.
|
|
|
|
|
|
Glad to help you
|
|
|
|
|
|
and the question would be ......???
|
|
|
|
|
It was some kind of text histogram problem that is commonly encountered in a beginner programming class.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I recognized the project, it's just that he never said what the problem was.
|
|
|
|
|
Now, that I think of it, there was no indication of what the problem was the OP was having. Sounds like it was here's some code I hacked up, can you clean it up for me, so I can turn it in kind of thing.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Afternoon all !
I have an application that has a panel with a picturebox within it.
Can anyone enlighten me as to how i code to move the pictureBox from one panel to another.
Thanks in advance
Neil
|
|
|
|
|
You could try setting the Parent property of the PictureBox to the new Panel.
|
|
|
|
|
Hi all,
I am using C#.Net 2008.
I am using following code to varify proper format (udp ip:port i.e "225.1.1.1:3000") of input string.
But it is not working properly.
System.Text.RegularExpressions.Regex regStr = new System.Text.RegularExpressions.Regex(@"\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}:\d{1,5}");
bool b;
b = regStr.IsMatch("225.1.1.1:3000"); //return true
b = regStr.IsMatch("2225.1.1.1:3000"); //return true. should return false
Anybody knows proper regular expression for ip:port format?
Can anyone give me good links for using Regex , regular expression in C#.
Thanks in advance.
Regards,
Aniket A. Salunkhe
|
|
|
|
|
This behavior is correct, because the regexp you wrote checks for matches contained in the input string.
If you want to match the whole string only, you must add ^ at the begin and $ at the end of your regex.
For Example: "^\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}:\d{1,5}$"
|
|
|
|
|
Mirko1980 wrote: For Example: "^\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}:\d{1,5}$"
Wrong, try again.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
It wasn't that wrong. I have to be honest I missed the unescaped . and thought of the other half of the problem (^,$ to match beginning and end)
|
|
|
|
|
J4amieC wrote: It wasn't that wrong.
Yes, it was. Input 123a123b123c123, then it is completely wrong
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
You need to escape the '.' else it will match anything.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
That is true, too. You must also replace all the . with \.
So, the regex is "^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d{1,5}$"
Take in mind that also the above regex is not absolutely correct. For example, it matches also 999.999.999.999:3000.
|
|
|
|
|
Mirko1980 wrote: "^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d{1,5}$"
Thanks. It's working to check proper format of string.
Still I am working to check proper formt of string with correct ip address & port.
Thanks & Regards,
Aniket A. Salunkhe
|
|
|
|