Page 1 of 1

Share folder on network

Posted: Fri Jan 25, 2013 6:08 am
by christ23
Hi folks,

in one install scenario we have to create a folder on a network share - this works. But we also need to share this created folder, this works not.

This is my code in a test project:

Code: Select all

Set Variable NATIVE_ENGINE to TRUE
Set Variable folder to \\tt-fs01\DATA\B\test
Create Folder $folder$
Apply Install (get result into variable SUCCESS)
Share Folder \\tt-fs01\DATA\B\test as "testshare"
The "Share folder" command has no return value so i cannot see why, but the share is not shared.
When i use "C:\Temp\test123" as folder, everything works.

The installer is NOT run on the tt-fs01! The installer runs on another machine, ist this the problem? But why then can i enter "remote machine" in the Share-command?

Am i missing something?

Re: Share folder on network

Posted: Fri Feb 01, 2013 12:40 pm
by FrancescoT
Dear User,

the command to work correctly requires the real physical path of the remote path to share.
This is the same requirement if you try to manually share a remote folder using the Shared Folders snap-in "fsmgmt.msc".

Of course to work correctly, the command also requires that the user who executed the setup package (locally) has the required privileges to complete the command.

Hope this helps you.

Regards.