PDA

View Full Version : Add Shared Resource does nothing?



timbojones
04-14-2006, 11:24 AM
I have an Add Shared Resource script item in my installer:

Name: [PRODUCTNAME]
Share Type: STYPE_DISKTREE
Share Path: %_SB_INSTALLDIR%

For Server Name, I've tried "%COMPUTER_NAME%", "\\%COMPUTER_NAME%", and a blank field (NetShareAdd docs state that a NULL servername argument means the local machine). %COMPUTER_NAME% holds the result of GetSystemInformation(ComputerName).

In all of these cases, Add Shared Resource does nothing. I have stepped through in debug mode: No shared folder is created, %_SB_ERRORCODE% retains a blank value, nothing is logged to the Event Viewer. What's going on?

I am an Administrator on this machine. I'm running XP.

linder
04-15-2006, 06:39 AM
Hello,

I tried the following and %_SB_ERRORCODE% always gives me an error code:

Add Shared Resource TESTSHARE c:\
Display Message Box "%_SB_ERRORCODE%" -- ""

What does the Display Message Box display for %_SB_ERRORCODE% in your case?

linder
04-15-2006, 06:59 AM
Hello,

We have tested this on five different machines here and it always worked fine (see screenshots). This demo shares a folder (c:\5) on a Windows 2000 machine.

HTH,

linder
04-15-2006, 08:29 AM
Update: there is a problem with "Delete Shared Resource" (compiler bug). Fixed in our latest internal source codes.