yanivRa
Posts: 3
Joined: Thu Mar 30, 2006 12:45 pm

Sharing and Security definition

Hi,
During the installation program i have done, new directories are created at the user computer. Can i set them, during installation to be Shared ? And what about security, can i change the security? Define or add new user\ groups?

Yaniv
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,
Can i set them, during installation to be Shared ?
Yes, you can by using a Custom Action. There are several alternatives available:
1. Write a DLL or EXE CA that uses the "NetShareAdd" and "NetShareSetInfo" functions. Read about them in MSDN:
http://msdn.microsoft.com/library/defau ... ctions.asp

2. Use the "NET SHARE" command in an "EXE with Working Dir" Custom Action.

3. You can also use a VBScript Custom Action (that uses WMI).
And what about security, can i change the security? Define or add new user\ groups?
You can set folder (or file) permissions by defining them in the "Permissions" tab of the "Edit Folder" (or "Edit File") dialog. Note that permissions can only be set for users that already exist on the computer or domain.

Hope this helps.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”