Skip to Content
avatar image
Former Member

AddOn Registration RTE70 PermissionDenied

Hi there,

we want to install + register our AddOn automatically

to the SBO.

1) lLen = GetInstallPath(

2) Copy 'OurAddOn.exe' to SBO AddOn directory

(Scripting.FileSystemObject.CopyFile)

(Instead of MsgBox("Please copy your Addon exe file into: ... ")

3) RegisterAddOn

We use the following Demo Code.

>>>>>

Dim sPath As String

Dim lLen As Long

Dim InstallStrFile As String

sPath = Space(1024)

'Getting the sPath where I have to install the addon exe

InstallStrFile = App.Path & "\SBOAddOnRegData.sld"

lLen = GetInstallPath(InstallStrFile, sPath, Len(sPath))

'Coping the addon exe into the path location I got

MsgBox "Please copy your Addon exe file into: " + Trim$(sPath)

'Writing to the registry

If RegisterAddOn = 1 Then

MsgBox "AddOn Was Registered Successfully"

CmdUnReg.Enabled = True

Else

MsgBox "Failed To Register AddOn"

End If

<<<

This works all fine. But

Step 2) Copy 'OurAddOn.exe' to SBO AddOn directory

results in RTE 70 Permission Denied.

Thanks Thomas.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 03, 2004 at 10:27 PM

    Some possible causes:-

    -Target file already exists and has read only attribute set.

    -Insufficient windows privileges on target file or folder

    -Target file is in use

    You could try issuing the copy command from a DOS prompt and see if a more meaningful error is displayed to help track it down.

    John.

    Add comment
    10|10000 characters needed characters exceeded