Share folder on network

Got a problem you cannot solve? Try here.
christ23
Posts: 82
Joined: Mon Jan 16, 2012 4:51 am

Share folder on network

Postby christ23 » Fri Jan 25, 2013 6:08 am

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?

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Share folder on network

Postby FrancescoT » Fri Feb 01, 2013 12:40 pm

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.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 45 guests