This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to share a folder in Installshield 2010 ?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 25, 2011
04:27 AM
How to share a folder in Installshield 2010 ?
The question is in the title : how to share a folder in Installshield 2010?
I have created a folder in the "Files and Folders" window in Installshield, with some files and others folders inside. But I want to share this folder. How can it be done?
I have created a folder in the "Files and Folders" window in Installshield, with some files and others folders inside. But I want to share this folder. How can it be done?
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 09, 2011
02:57 AM
No answer ? Please, I need your assistance for this part. My installation is ready, there is just this sharing to do.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 09, 2011
08:23 AM
Have you checked the Components view >> Destination permissions setting. This can be used to set permission on the folder….. If that helps you
Or you can call Windows API/VBScript which can do this task
Or you can call Windows API/VBScript which can do this task
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 09, 2011
10:13 AM
hi,
Try to use net share in a script. It works, I tried long back.
-praveen
Try to use net share in a script. It works, I tried long back.
-praveen
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 10, 2011
10:52 AM
I use this VBScript as custom action which is executed first.
There is no error, the folder is shared, but not with full control. How to fix it?
Option Explicit
'Declare Constants
Const FileShare = 0
Const MaxConnxions = 25
'Declare Variables
Dim objWMIService
Dim objNewShare
Dim strComputer
Dim strSharePath
Dim strShareName
Dim strShareDesc
Dim colShares
On Error Resume Next
strComputer = "."
strSharePath = "C:\MyName"
strShareName = "MyName"
strShareDesc = "Public share for the MyName folder."
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colShares = objWMIService.ExecQuery("Select * from Win32_Share Where Name = '" & strShareName & "'")
For Each objShare in colShares
objShare.Delete
Next
Set objNewShare = objWMIService.Get("Win32_Share")
errReturn = objNewShare.Create (strSharePath, strShareName, FileShare, MaxConnxions, strShareDesc)
MsgBox errReturn
There is no error, the folder is shared, but not with full control. How to fix it?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 11, 2011
08:49 AM
Perhaps see if the information in the following topic helps:
Securing Files, Folders, and Registry Keys in a Locked-Down Environment
Securing Files, Folders, and Registry Keys in a Locked-Down Environment