Reply to Thread

Post a reply to the thread: Add Shared Resource does nothing?

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 04-15-2006, 08:29 AM
    linder

    Re: Add Shared Resource does nothing?

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

    Re: Add Shared Resource does nothing?

    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,
  • 04-15-2006, 06:39 AM
    linder

    Re: Add Shared Resource does nothing?

    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?
  • 04-14-2006, 11:24 AM
    timbojones

    Add Shared Resource does nothing?

    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.

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •