Hi all :wave:
In the development of VB.NET Project I add two folder in it, I want to share that folder so what is the best solution.
Thanks
Printable View
Hi all :wave:
In the development of VB.NET Project I add two folder in it, I want to share that folder so what is the best solution.
Thanks
You will need to write some code to create the share for that folder and run that code after the installation is complete.
The best place for an apps shared folder(s) would be to install them in the All Users Shared folder in 2000/XP or C:\Users\Public in Vista.
I was thinking he was talking about Network share.
Maybe not...
Oh yes, that could be another situation.
Shakti, please clarify.
soory sir for late reply :)
I was busy in other problem
Actually i want to share my database folder so the other user can use the server database on LAN
Thanks
Just right click on the folder and select Sharing and Security > select "Share this folder" > enter in a name if you want it named something different > click Permissions button > select the level of access which should be Read and Modify permissions at a minimum.
I think he wants to automate it.
Sir this is manually but can we do it automatically means when I install the set up then it automatically share the database folder with all permission.
Thanks
I believe you will need the MS Network SDK to perfom that task.
I'm guessing that it would require the use of the Windows API to perfrom the actual sharing, but as for where and when to do it, I'd suggest adding an InstallerClass to your project, handling it's AfterInstall event and doing it there. You'd then add that InstallerClass as a Custom Action to your Setup project.
But sir main basic question in my mind is that VS.NET setup project is able to share the folder or not, that is added in it.
Or instead of it we run other code for sharing the folder on the network, because in VB I use different code for sharing a folder on the network.
If you click on your folder in the Setup project's File System window then go to the Properties window do you see a property to make the folder shared? No you don't, so you have to do it in code. As I said, I would use a Custom Action.
Sir
I do not have make folder share property
But Why?? :confused:
There is no share property. You need to do it via code. I havent seen a reliable method that would work without corrupting the folder settings.
http://allapi.mentalis.org/apilist/S...Security.shtml has an example on setting the security properties but flakey at best.
Sir what type of custom action you are talking aboutQuote:
Originally Posted by jmcilhinney