|
Eddy Vluggen wrote: Once in a while, you get a sincere "thank you"-post though.
Where the hell was I for these??
|
|
|
|
|
EliottA wrote: Where the hell was I for these??
Maybe you were too giddy to notice.
|
|
|
|
|
EliottA wrote: does anyone else still get giddy when they see "urgent" as the thread topic?
"Giddy" isn't a word to use to describe what I feel when I see that.
|
|
|
|
|
Hi Friends
i have created new project it's working well and i would like to deploy the project when i install the deployed setup that time it should create the key value in registry(regedit). is it possible if possible how can i do that.
Thank you in advance
Regards
K. Rajesh Kumar
i am a fresher in software development i have so many doubts in .net so i need to ca
|
|
|
|
|
What do you use to deploy your application? Most installers provide functionality to modify the registry on install
If you have no experience with installers, try searching for "InnoSetup" and/or "InstallShield".
I are troll
|
|
|
|
|
Hi Eddy
Thanks for replay, yes i dont have experience in deployment am using for deployment what we have in visual studio 2005. there where i have to get it.
i am a fresher in software development i have so many doubts in .net so i need to ca
|
|
|
|
|
Hi Rajesh ,
Most of the installer allow you to edit the registry , but if you want to write registry value from a application you can use the following code , in the following code i have used the 'Microsoft.Win32' , which makes our job of writing or registry value easy , the you can add the following code on load event of your main form , the code will try to read a value if not present it will create a key , also if some one goes and change the value , the application will not start net time , saying "This Application is not installed properly" , i hope this solves your problem , the entry is created under
HKEY_LOCAL_MACHINE\SOFTWARE\
Dim regKey As Microsoft.Win32.RegistryKey
Dim ver As String
regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\MyApp", True)
If regKey Is Nothing Then
regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE", True)
regKey.CreateSubKey("MyApp")
regKey.Close()
regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\MyApp", True)
ver = regKey.GetValue("InstallKey", "")
If ver <> "TestInstallKey" Then
regKey.SetValue("InstallKey", "TestInstallKey")
End If
regKey.Close()
Else
ver = regKey.GetValue("InstallKey", "")
If ver <> "TestInstallKey" Then
regKey.SetValue("InstallKey", "TestInstallKey")
MsgBox("This Application is not installed properly")
End
End If
regKey.Close()
End If
Just let me know , if this solves your problem ....
Have a nice day
-Regards
Bharat Jain
bharat.jain.nagpur@gmail.com
|
|
|
|
|
Hi Bharat Jain
I would like to say thanks for your replay. i had seen your code it's ok but i need to create the register value in regedit when we run the setup or end of the installation. is this possible.
Regards
K. Rajesh Kumar
i am a fresher in software development i have so many doubts in .net so i need to ca
|
|
|
|
|
Ya it is possible , which program are you using to create your installer ?
-Regards
Bharat Jain
bharat.jain.nagpur@gmail.com
|
|
|
|
|
Hi Bharat
Am using to create the installer what we have in visual studio 2005
(Deployment)
Regards
K. Rajesh Kumar
i am a fresher in software development i have so many doubts in .net so i need to ca
|
|
|
|
|
Hi All,
Here i am using listview,it displays the listviewitems along with three dots at the end of every item. Is it possible to remove these dots? if yes,how can it be done? can you guide me please...
Thank you..
|
|
|
|
|
I guess that there is more text in the item than will fit in the ListView? You could consider shortening the text in the ListViewItem, or use owner-drawing
I are troll
|
|
|
|
|
Thanks Eddy..
|
|
|
|
|
Hi to all Experts,
I have a MS access database (.mdb) in a server, which I am going to access from several clients( VB application )(for each clients the operation are just opening it reading/updating it, and closing it quickly).
So, when i access it simultaneously, i wonder,
1. is there any chances my database will crash?, If so, what is the solution to avoid it?
2. or does MS access has its own solution to concurrency problem or does it have any locking mechanism, to avoid crashing?
Thanks in advance :
|
|
|
|
|
Member 4250705 wrote: 1. is there any chances my database will crash?, If so, what is the solution to avoid it?
There is no chance of system crash.
Member 4250705 wrote: or does MS access has its own solution to concurrency problem or does it have any locking mechanism, to avoid crashing?
MS Access has it own locking mechanism
|
|
|
|
|
thanks aman,
So I need not to think for any synchronization or locking mechanism right?
Also could you please tell me, what about the running a single file(ppt) as like the same above, ie. am trying to run a ppt file from all client simultaneously using new processes for all of them separately ie
on buttonClick i wrote the following code::
dim p as process
p.startinfo.filename="//server/c:/path/filename.ppt"
p.start()
|
|
|
|
|
Member 4250705 wrote: So I need not to think for any synchronization or locking mechanism right?
Depends if you are using a disconnected DataSet or not. If you are then you will need to handle updates in some form or other.
Access will only lock the record for as long as the connection remainds open.
Member 4250705 wrote: p.startinfo.filename="//server/c:/path/filename.ppt"
The file path is wrong, but the logic is sound.
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Member 4250705 wrote: 1. is there any chances my database will crash?, If so, what is the solution to avoid it?
There is no easy solution. If there were, Microsoft would have added it to Access itself. Your database will not crash, but data may be lost.
Member 4250705 wrote: 2. or does MS access has its own solution to concurrency problem or does it have any locking mechanism, to avoid crashing?
Access is not a server-technology. I believe that Access uses optimistic locking, and it gets very slow once there's a lot of data.
You can easily upgrade your MS-Access database to a complete SQL-Server database. There's a free version of SQL Server called "SQL Server Express", and you can use the Wizard in Access to convert your database to a "real" server-database.
Hope this helps,
I are troll
|
|
|
|
|
Member 4250705 wrote: is there any chances my database will crash?, If so, what is the solution to avoid it
The database won't crash if it's used simultaneously. It's designed for that. One possible reason when Access db could crash is that you have several clients using the database with different versions of drivers (odbc, jet, whatever you use). Sometimes different versions are not compatible with each other and this can lead to problems and corruptions.
Also the database itself cannot crash since there actually is no true database, just a file and a driver at client side. But still the file may corrupt.
Member 4250705 wrote: or does MS access has its own solution to concurrency problem or does it have any locking mechanism, to avoid crashing
Again no crashing will occur if several users update the same data. When exactly the same data is updated by 2 users at the same time, the first one who finishes the operation gets his data into the database and the second one gets an error message to the client saying that someone has already modified the data. This behaviour happens if the record locking is set to No locks (optimistic).
If the record locking is set to Edited records, then pessimistic locking is used. Now with the same example if the first user starts to edit the row, the second user cannot edit the row until the first one has finished the operation.
As Eddy Vluggen said, you can migrate to SQL Server Express Edition in order to use a true relational database instead of a 'flat-file' storage (Access). For more info: http://www.microsoft.com/express/sql/default.aspx[^]
|
|
|
|
|
guys,
Sincere thanks to all of you for your valuable reply.
Thanks a lot again
|
|
|
|
|
Hi All,
How can i hide process of my application from Task manager.
Pls help it's needful.
Thanks
Anubhava Dimri
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
The answer hasn't changed since you asked this the last time.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I guess you can use showInTaskbar method
eg:
to hide a form,
me.showInTaskbar=false
I think that will work fine
|
|
|
|
|
I am saying abount Process of Application not about Application Task.
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
Hi,
I have tried this n VB (not in .net) by taking a help of an article on code guru , follow the link for the article
http://www.codeguru.com/forum/showthread.php?t=406555[^]
I worked in my case , hope this helps you too.
-Regards
Bharat Jain
bharat.jain.nagpur@gmail.com
|
|
|
|