Remote control using DCOM: Error: "ActiveX component cannot be created."

Hello,
I want to address a OMICRON CPC100 device via remote control. I have a dll ("TESTCONTROL.dll"), which provides methods to control the CPC100. In order to encapsulate this functionality, I've written a VB.NET-dll ("CLC_CL_for_Net.dll") (it's a class-dll) which calls methods of TESTCONTROL.dll. Now I want to use CLC_CL_for_Net.dll in LabVIEW.
Here's the code of CLC_CL_for_Net.dll:
Imports TESTCONTROLLib
Namespace MyCPCNamespace
    Public Class CPCClass
        Public Sub New()
        End Sub
        Public Sub testfunction(ByVal ipaddress As String)
            Dim tc As TestProcedure
            Dim atm As IATMTest
            tc = CreateObject("TestControl.TestProcedure", ipaddress)   '<-- here the error occurs!
            atm = CreateObject("TestControl.ATMTest", ipaddress)
            atm.Activate(300, 10, 1)
            atm.Deactivate()
        End Sub
    End Class
End Namespace
In order to enable DCOM on my computer, I did the following:
- I switched the firewall off.
- I started "dcomcnfg.exe", chose "Component Services/Computers/My Computer -> Properties" and checked the checkbox "Enable Distributed COM on this computer".
- I also chose the tab "My Computer Properties/COM Security" and allowed everyone full access and launch
permissions.
- I created an exe-file from my LabVIEW VI, which uses the dll, with the help of the LabVIEW Application Builder.
For this exe-file and also for the TESTCONTROL, I set the authentication level to "None".
For test purposes, I used my dll in a C++ project. There everything works fine. However, when I try to use the dll
in LabVIEW (using LabVIEW's .NET constructor node and method node, which you can find under Connectivity -> .NET), the program fails at the line "tc = CreateObject("TestControl.TestProcedure", ipAddress)".
Here the error message displayed by LabVIEW (I translated it from German into English):
"Error 1172 has occurred at Error calling method CLC_CL_for_Net.MyCPCNamespace.CPCClass.testfunction of ObjectId
handle: 0x2BB117C for obj 0x3F19E1D[CLC_CL_for_Net.MyCPCNamespace.CPCClass] in domain [LabVIEW Domain for Run] and
thread 3792, (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 Inner Exception: System.Exception: The ActiveX component cannot be created.
) in CPC100_RemoteControlVI.vi"
As the dll works when I use it in the C++ project, I don't understand why this error occurs when I use the dll in
LabVIEW. Do I have to give LabVIEW any special permissions?
Can anyone help me to solve this problem? Thanks a lot for your efforts!
Regards,
Matthias

Hi Matthias,
I am not really familiar with .NET assemblies but I found couple informations on your error :
First of all, about the Error 1172 in LabVIEW, there is two things to proof:
Ensure that the .NET assemblies that you are using are saved in the root directory of the top-level VI.
Add the .NET assembly as a reference in LabVIEW by selecting Tools»Advanced»NET Assembly References. Click the Add button and navigate to the location of all the assemblies that you want to call.
Those two steps sometimes solve Error 1172 related problems. I also found some information about the "ActiveX component cannot be created" error. A .Net Class library needs to be in a COM wrapper in order for it to be called through COM methods, such as ActiveX. The way to do so is:
1. Create a new .NET Class Library project.
2. Remove the Class1.vb that is created.
3. Click Add Class on your project.
4. Choose "COM Class", and add it.
5. Add at least 1 function or sub in it.
6. Compile it, and Visual Studio should registrer it automaticly.
If you whish to manuall reg it, or create a registry entry file, use "RegAsm.exe" in the .NET Framework folder.
I hope this could be any helpful to you
Regards
Florian Abry
Application Engineer Group Leader
NI Germany

Similar Messages

  • Error: ActiveX component can't create object: 'fdmFM11xG5C.clsFMAdapter'

    Hi,
    we recently configured HFM and FDM .. while testing hfm adapter to lookup target FM account from FDM web.. we get the error Error: ActiveX component can't create object: 'fdmFM11xG5C.clsFMAdapter'
    At Line: 45
    The adapter is running under service account. we are using 11.1.1.3
    Can some one please advise
    thanks

    Hello Vladislav,
    Your issue would not have anything to do at this point in time of having the HFM Client installed/not installed. While this is required and probably would cause an error at a later stage, it is not the root cause of the issue you are having now.
    It appears that either the Adapter is not installed correctly or not completely configured.
    Please follow the documentation posted with the adapter and perform a proper installation/configuration.
    Thank you,

  • Error: ActiveX Component Can't Create Object

    When I run the ADI on Windows Server 2003R2, it show following error when startup:
    Error connecting to Language Object, defaulting to US English.
    Error: ActiveX Component Can't Create Object
    Anyone know how to fix it?
    Many thanks in advance.
    Regards,
    Chris Lee

    Hi,
    You need to enable Trust access to Visual Basic project.
    Tools->Macro->Security->Trusted Publisher
    Enable Trust access to Visual Basic project there.
    Cheers
    Dinesh

  • FDM-ERPI import error: ActiveX component can't create object..

    Hi,
    I am using FDM v 11.1.2.1.501 and ERPi v 11.1.2.2 (which is actually v 11.1.2.1.501 following the patch set update to .501, it displays as 11.1.2.2, a known display error). The ODI version for ERPI is 11.1.1.5. The dataload rule executes successfully in ERPI within workspace, but in FDM, I get the following error:
    Description...................................... ActiveX component can't create object: 'fdmERPI.clsGetFinData' At Line: 22
    Can someone let me know why this happens ?
    Rgds,
    George

    The issue is resolved. When upgrading FDM and ERPI to 11.1.2.1.501, the source adapter to be used should not be ERPI-FIN -C which comes together with 11.1.2.1 mediapack, but the adapter must be ERPI-FIN-D which come with the FDM patch set 501. The issue got resolved once ERPI-FIN-C adapter was deleted and replaced by ERPI-FIN-D adapter.

  • Crystal Report Addon Error : ActiveX Component Can't Create Object

    Hello Experts,
    We are facing an problem when we start the Crystal Report Addon .The error message getting
    displayed is  "CR_Crypto ActiveX Component Can't Create Object".This issue is happening only on the
    server its working fine on the client. We had even unistalled and re-installed the addon in the server but
    still it throws the error when we start the addon.
    Please help us to resolve this issue
    Thanks,
    Vishwanath

    Dear Friend,
                 I had described the problem to our technical support team, and they replied as follows u2013
    They solved the Script related error by several stages.
    They checked the machine for any mal-ware existence by the tool provided by Microsoft (MS Mal-ware remover).
    Then they tried by installing the following patches from Microsoft u2013
    http://support.microsoft.com/kb/949140
    Windows Script 5.7 for Windows XP
    http://www.microsoft.com/downloads/details.aspx?familyid=887fce82-e3f5-4289-a5e3-6cbb818623aa&displaylang=en
    Windows Script 5.6 for Windows Server 2003
    http://www.microsoft.com/downloads/details.aspx?FamilyId=C717D943-7E4B-4622-86EB-95A22B832CAA&displaylang=en
    Windows Script 5.6 for Windows XP and Windows 2000
    The internal matter to this problem was about the following DLL and its version u2013
    C:\WINDOWS\system32
    vbscript.dll
    5.5.0.8820
    Desired
    5.6.0.8820
    Check, if the information helps you.

  • Exchange Transport Error: ActiveX component can't create object

    Hi All
    I am trying to set up Exchange on portals however I seem to be having a problem.
    I have 1 * Exchange 2003 server and 1 * Portal server (with IIS and Outlook 2003 installed)
    When I do the Exchange test (data retrieval) I am getting an error in the log (see below)
    BEGIN 07/09/2005 09:03:54----
    URL: HTTP://saptest1:80/SAPExchange/Calendar.asp
    URL Parameters: Server=ohio.arconw.com&Alias=[email protected]&Action=READ&StartDate=200509070001&EndDate=200509071600&Email=[email protected]&Debug=true
    Reponse: <FAILURE><ERRORNUMBER>429</ERRORNUMBER><ERRORMESSAGE>ActiveX component can't create object</ERRORMESSAGE><CLASSNAME>Connection</CLASSNAME><METHODNAME>userLogon</METHODNAME><LINENUMBER>38</LINENUMBER><PARAMETERS>User = [email protected]
    Server = monster.arconw.com
    E-mail = [email protected]</PARAMETERS></FAILURE>
    END 07/09/2005 09:03:54----
    However on the clients this does not seem to be a problem, the test works ok!
    I have an issue in Collaboration (calendar) when I am getting an error 'An exception occurred while reading or writing from/to the IIS server'. I am hoping if I solve this portal issue the the collaboration issue will be fine!
    Any help would be great!

    Sorry wrong error, below is the correct one!
    BEGIN 07/09/2005 09:26:47----
    URL: HTTP://saptest1:80/SAPExchange/Calendar.asp
    URL Parameters: Server=monster.arconw.com&Alias=[email protected]&Action=READ&StartDate=200509070001&EndDate=200509071600&Email=[email protected]&Debug=true
    Reponse: <FAILURE><ERRORNUMBER>429</ERRORNUMBER><ERRORMESSAGE>ActiveX component can't create object</ERRORMESSAGE><CLASSNAME>Connection</CLASSNAME><METHODNAME>userLogon</METHODNAME><LINENUMBER>38</LINENUMBER><PARAMETERS>User = [email protected]
    Server = monster.arconw.com
    E-mail = [email protected]</PARAMETERS></FAILURE>
    END 07/09/2005 09:26:47----

  • BPC V7 Install process the dimension error "ActiveX component can't create"

    All,
    We are installing BPC v7 M on SQL 2008.
    We have split server Install. We have installed everything as advised by the install guide.
    The install for V7 was successful. We can Modified all the app with in the appset. The server manager has all Green checkes.
    But wen we process the dimension we get ActiveX component can't create objectObject variable or With block variable not set error.
    I have seen this post as well - Re: BPC migration to 7.0
    We have make sure our secuirty to the database is working.
    We have make sure the xceedzip.dll is in the correct folder.
    We can also have installed BPC clinet and Admin few times and re started the server fre times.
    Can any one help? any other suggestion?
    thanks
    Sam
    Edited by: Sam Patel on Nov 4, 2009 5:59 PM

    nilanjan chatterjee, Sorin,
    Thanks for helping, As stated The Microsoft SQL Server 2005 Backward Compatibility Components on Microsoft SQL Server 2008 Feature Pack was not installed on app server and causing the problem.
    I have installed that patch on APP server and all is working.
    Points are awarded.
    Sam
    Edited by: Sam Patel on Nov 5, 2009 10:58 PM
    Edited by: Sam Patel on Nov 5, 2009 10:59 PM

  • Error on uncompressing file:Error : ActiveX component can't create object

    Hi,
    Users encountered the following error when they access BPC Excel from their workstation.
    [http://img33.imageshack.us/img33/858/activexcomponentcantcre.jpg|http://img33.imageshack.us/img33/858/activexcomponentcantcre.jpg]
    The problem happens when this user log in to BPC for Excel and connecting to BPC server. Before that, the BPC for Office installation is done successfully on this user's PC.
    I had tried to open the BPC Excel from the server itself and it's working fine.
    Kindly advise.
    Regards,
    Chiam

    Check any of the answer may help to solve your issues.
    1) This issue can be resolved by changing the 'connect as' setting for each appset's virtual directory in IIS on the web
    server(s). The radio box 'Always use the authenticated users credentials when validating access to the network directory' should be checked for all appsets.
                                                                                    OR
    2) This issue was resolved by removing the domain name in front of the users id, and placed it in the domain section of the login screen. In other words in the connection wizard, the users were putting in PBI/Neal as the user id, Neal as the password, and leaving the domain name blank.
    If this problem is appset specific please check the FILESERVERLOCATION parameter in tbldefaults of the problem appset in SQL and the virtual directory settings for the problem appset in IIS. Also, try deleting the TEMPLATESAPPLICATION.ZIP files in the system files folder then incrementing the template version in Admin by 1.
                                                                OR
    3)  IF APPSET SPECIFIC
    Process security then refresh webexcel cache files via the system update control in Admin. Also, have all users receiving this message clear local application information via etools -> client options.
    NOTE: This issue is typically caused by NOT performing a full process with ALL options checked including the application(s) when a new member is added to a secured dimension or a hierarchy change is made. Also, always process security when prompted.
    IF MACHINE SPECIFIC
    1.Verify that there is a temp folder on the local drive (c:Temp)
    2.Default file location in Excel is a shared network drive which you do not access to write to
    3.Default file location in Excel is using UNC, Universal Naming Convention
    4.Check proxy or firewall configuration
    If you connect to the Internet through a firewall or proxy server you also need to add the ip address of the Everest server as an exception, this can be done at the client (Internet Explorer/Tools/Internet Options/Connections/Lan Settings) or server level. Having content filtering enabled on the proxy/firewall can also cause connection problems.
    How can I tell if ports are open? Go to a command prompt and enter Telnet serveripaddress portnumber. For example, Telnet 43.118.18.36 80
    If it returns a blank command window, the port is open.
    If it returns a message saying it can't connect or other, the port is not open.
    NOTE: IN SOME CIRCUMSTANCES WHEN NONE OF THE ABOVE RESOLVE THIS ERROR YOU MUST DELETE AND RECREATE THE LOCAL PROFILE FOR THE PROBLEM USER TO RESOLVE.
    Please note, although no boardcode and smiley buttons are shown, they are still useable
    Admin (Admin)
    Admin
    Posts: 670
    graph
    User Offline Click here to see the profile of this user
    Hope this helps,
    Regards
    SN..

  • Urgent:eror:ActiveX component can't create object:fdmFM11xG5C.clsFMAdapter

    Hi All,
    I get the following error :
    Error: ActiveX component can't create object: 'fdmFM11xG5C.clsFMAdapter'
    At Line: 45
    while trying to map a target FM account
    I have used the following adapter fdmFM11xG5C for registering.
    I have registered the adapter using the given documentation still things are not working the same.
    FDM and HFM are installed on two different machines.
    I have also referred to an earlier forum which had the same issue.
    Kindly let me know what to do here.
    Edited by: user12276446 on Jun 27, 2010 11:52 PM

    Create a domain user which has administrator access in both machines. (creating a local user with same name and password in both machines may NOT solve the issue).
    Make sure the that the user is added to the Administrators group. The minimum required rights additionally are:
    Act as part of the Operating System
    LogOn as a batch job
    Access this computer from the network
    For FDM Task manager: LogOn as a Service
    Additionally, check the following two options under Security Options
    DCOM: Machine Access Restrictions
    DCOM: Launch Restrictions
    Mine worked with both these as blank. If you cannot remove them, delete the content of the registry keys (not the keys): MachineAccessRestriction & MachineLaunchRestriction under HKLM\Software\Policies\WindowsNT\DCOM
    Configure HFM DCOM (with the EPM config) using this domain account
    Configure the FDM adapter with this user
    You may have to configure the IIS application pool with this user as well.
    Make sure that this user has rights to the file system where things are installed.
    + the users running the IIS web apps must also have access to the file system (better to add them to the group Users)
    ~
    Sayantan

  • ActiveX component can't create object: 'MSSOAP.SoapClient30'

    Dear All,
         After updated the portal form 6.0 to 7.0 ,when I bit the web page entry ,the error:"ActiveX component 'scan't create object: 'MSSOAP.SoapClient30' " appear.But in version 6.0 ,it's fine.
    What could be the problem? How to resolve this.
    Regards,
    Richard Lee

    If you want it 
    to continue working after you log off you have to change the COM+ properties 
    of the package to run as a specific user. 
    I recently installed the Evaluation edition of BizTalk Server, but am 
    finding 
    that I need to reinstall the software every time I log off(I am using the 
    same 
    logon throughout). 
    The problem I think is that BizTalk cannot start the XLANG Scheduler COM+ 
    component - If I try to start it manually (in Component Services) I get 
    "Catalog 
    Error: Error Code 80080005 - Server Execution Failed" 
    more info: http://www.programd.com/118_4e0323a255219dd1_1.htm
    If I try to run the XLANG Schedule created in the Tutorial, via 
    ExecuteTutorial.exe, the error message is "...ActiveX Component can't create 
    object. Error: 429 (0x1AD)" 
    BizTalk is unable to run any XLANG Schedule, I also have a Schedule setup 
    which 
    is activated via a File Receive Function. This fails also. 
    The System Log reports the following error every minute (at least!): 
    "The server{bla bla bla}did not register with DCOM within the required 
    timeout" 
    The only solution I have found is to reinstall & even this is not successful 
    every time. 
    Has anyone else seen this problem? Any suggestions? 

  • ActiveX component can't create object: 'CrystalReports10.ObjectFactory.1'

    Using Crystal Report Application Server 10
    Getting Microsoft VBScript runtime error: ActiveX component can't create object: 'CrystalReports10.ObjectFactory.1' in asp page running in windows 7, iis 7 64 bit.
    Do not get error in XP 32 bit environment using iis 5.1.
    Do I need to do something different in 64 bit windows 7 environment with iis 7?

    To get to XI R2 here are the links:
    https://smpdl.sap-ag.de/~sapidp/012002523100011802732008E/crxir2_sp4_full_build.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe

  • FDMEE 11.1.2.3 ActiveX component can't create object

    Hello Gurus,
    I am testing FDMEE 11.1.2.3 and am running into an issue when trying to export to my target HFM application. (Import/Validate work fine). Below is the error log:
    I am loading from a flat file.
    E:\Oracle\Middleware\EPMSystem11R1\products\FinancialDataQuality\bin\HFM_LOAD.vbs(4, 1) Microsoft VBScript runtime error: ActiveX component can't create object: 'erpiHFMAdapter.clsFMAdapter'
    2014-01-02 16:11:03,568 FATAL [AIF]: Error in HfmData.loadData
    Traceback (most recent call last):
      File "<string>", line 106, in loadData
    RuntimeError: Load Error
    2014-01-02 16:11:03,614 FATAL [AIF]: Error in HFM Load Data
    2014-01-02 16:11:03,617 INFO  [AIF]: FDMEE Process End, Process ID: 12

    please follow oracle doc
    FDMEE Validate Step Failing with Intersection Check Enabled (Doc ID 1588419.1)
    cause : Currently the TNSNAMES.ORA file on the FDMEE Server does not contain a connect descriptor entry named AIF_ORCL pointing to the FDMEE database instance. When the intersection check code is being ran for the adapter it is unable to resolve the connect descriptor because it does not exist in the 32 bit TNSNAMES.ORA file.
    Solution : A) Logon to the FDMEE Application Server
    B) Browse to the Oracle\Middleware\EPMSystem11R1\DBClient32\Network\Admin directory
    C) Open the TNSNAMES.ORA file in notepad
    D) Add the following connect descriptor and save:
    AIF_ORCL =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = <DBHOST>)(PORT = <DBPORT>))
      (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = <SERVICE>)
    regards,
    -DM

  • ActiveX component can't create object:'Photoshop.Application'

    I am running Photoshop CS5.1 on a Windows 7 64-bit system. (Part of CS5.5 Master Collection installation)
    All I am trying to do is run the sample .vbs scripts that come with Photoshop.
    When I double click on any of the sample scripts, the Photoshosp window comes to the front and then after about 10 seconds I get the error:
    ActiveX component can't create object:'Photoshop.Application'
    This happens if I have Photoshop 64-bit or 32-bit running.
    This happens on two different computers running Windows 7.
    I couldn't find any solutions in a Google search.
    Any ideas?
    Thanks in advance.

    I got it working after I installed the x32 bit version of PS on my Windows 7 (64-bit) machine.
    I also selected "Run as Administator" when I launch PS once, and then rebooted. they was necessary to get permission for the type libraries it seems.
    http://screencast.com/t/4bw8XdKu

  • Job Mgmt : error "This component cannot be used" when sending job request

    Hi,
    When i try to create a job request (basic job request link from the Job Management Workcenter), I am having an error : "This component cannot be used".
    It seems the component is the number read from the ibase corresponding to the client and the sid. There seems to be ne problem on this side.
    But everything is correctly setup regarding Ibases and components.
    What's more when trying to create a ZLFJ (duplicated from SLFJ) in CRMD_ORDER, there is no problem.
    Any suggestion where it could come from ?

    Hello Hervé ,
    could you please provide me with some more information?
    When exactly do you get the message? When trying to submit the job request? Or when clicking on the link "Create Job Request" in the workcenter?
    If you get the message when submitting, please provide more information on the entered System (IBase). Maybe a screenshot could help.
    Best regards,
    Jonny

  • SBO2004A: Runtime Error 429 ActiveX Component can't Create Object

    Hello,
    We have an Addon developed with VB6 that run without problems with SBO 6.5.
    We have upgraded to SBO2004A and I have referenced in the source code to the 2004 UI and DI. I debug mode (from IDE) we don't have problems, but when I try to execute the addon from a client, I get this error message:
    <b>Runtime Error 429 ActiveX Component can't Create Object</b>
    Thanks in advance
    Blas

    I'm using Installshield 10.5 to generate the setup file. It's much more easy and not requiered to install Framework 1.1 in each PC client before to install the Addon.
    You have to create and msi project, and write the Installscript to retrieve the install directory from parameter string passed by SAP.
    After install you must execute the AddOnInstallAPI.EndInstall to notify SAP:
    #include "ifx.h"
    prototype  LONG AddOnInstallAPI.EndInstall();  
    prototype  LONG AddOnInstallAPI.RestartNeeded();
    // OnFirstUIBefore
    // First Install UI Sequence - Before Move Data
    // The OnFirstUIBefore event is called by OnShowUI when the setup is
    // running in first install mode. By default this event displays UI allowing
    // the end user to specify installation parameters.
    // Note: This event will not be called automatically in a
    // program...endprogram style setup.
    function OnFirstUIBefore()
        number  nResult, nLevel, nSize, nSetupType;
        string  szTitle, szMsg, szOpt1, szOpt2, szLicenseFile;
        string  szName, szCompany, szTargetPath, szDir, szFeatures, szTargetdir;
        BOOL    bLicenseAccepted;
        LIST listID;
    begin     
        nSetupType = COMPLETE;       
        szDir = TARGETDIR;
        szName = "";
        szCompany = "";
        bLicenseAccepted = FALSE;
    // Beginning of UI Sequence
    Dlg_Start:
        nResult = 0;
    Dlg_SdWelcome:
        szTitle = "";
        szMsg = "";
        //{{IS_SCRIPT_TAG(Dlg_SdWelcome)
        nResult = SdWelcome( szTitle, szMsg );
        //}}IS_SCRIPT_TAG(Dlg_SdWelcome)
        if (nResult = BACK) goto Dlg_Start;
    Dlg_SdLicense2:
        szTitle = "";
        szOpt1 = "";
        szOpt2 = "";
        //{{IS_SCRIPT_TAG(License_File_Path)
        szLicenseFile = SUPPORTDIR ^ "License.rtf";
        //}}IS_SCRIPT_TAG(License_File_Path)
        //{{IS_SCRIPT_TAG(Dlg_SdLicense2)
       // nResult = SdLicense2Rtf( szTitle, szOpt1, szOpt2, szLicenseFile, bLicenseAccepted );
        //}}IS_SCRIPT_TAG(Dlg_SdLicense2)
        if (nResult = BACK) then
            goto Dlg_SdWelcome;
        else
            bLicenseAccepted = TRUE;
        endif;
    Dlg_SdRegisterUser:
        szMsg = "";
        szTitle = "";
        //{{IS_SCRIPT_TAG(Dlg_SdRegisterUser)     
       // nResult = SdRegisterUser( szTitle, szMsg, szName, szCompany );
        //}}IS_SCRIPT_TAG(Dlg_SdRegisterUser)
        if (nResult = BACK) goto Dlg_SdLicense2;
    Dlg_SetupType2:  
        szTitle = "";
        szMsg = "";
        //{{IS_SCRIPT_TAG(Dlg_SetupType2)     
       // nResult = SetupType2( szTitle, szMsg, "", nSetupType, 0 );
        //}}IS_SCRIPT_TAG(Dlg_SetupType2)
        if (nResult = BACK) then
            goto Dlg_SdRegisterUser;
        else
            nSetupType = nResult;
            if (nSetupType != CUSTOM) then
                szTargetPath = TARGETDIR;
                nSize = 0;
            endif;  
        endif;
    Dlg_SdAskDestPath2:
        if ((nResult = BACK) && (nSetupType != CUSTOM)) goto Dlg_SetupType2;
         szTitle = "";
        szMsg = "";
        if (nSetupType = CUSTOM) then
                    //{{IS_SCRIPT_TAG(Dlg_SdAskDestPath2)     
    //          nResult = SdAskDestPath2( szTitle, szMsg, szDir );
                    //}}IS_SCRIPT_TAG(Dlg_SdAskDestPath2)
            TARGETDIR = szDir;
        endif;
        if (nResult = BACK) goto Dlg_SetupType2;
    Dlg_SdFeatureTree:
        if ((nResult = BACK) && (nSetupType != CUSTOM)) goto Dlg_SdAskDestPath2;
        szTitle = "";
        szMsg = "";
        szTargetdir = TARGETDIR;
        szFeatures = "";
        nLevel = 2;
        if (nSetupType = CUSTOM) then
            //{{IS_SCRIPT_TAG(Dlg_SdFeatureTree)     
           // nResult = SdFeatureTree( szTitle, szMsg, szTargetdir, szFeatures, nLevel );
            //}}IS_SCRIPT_TAG(Dlg_SdFeatureTree)
            if (nResult = BACK) goto Dlg_SdAskDestPath2; 
        endif;
    Dlg_SQLServer:
        nResult = OnSQLServerInitialize( nResult );
        if( nResult = BACK ) goto Dlg_SdFeatureTree;
    Dlg_ObjDialogs:
        nResult = ShowObjWizardPages( nResult );
        if (nResult = BACK) goto Dlg_SQLServer;
    Dlg_SdStartCopy2:
        szTitle = "";
        szMsg = "";
        //{{IS_SCRIPT_TAG(Dlg_SdStartCopy2)     
        nResult = SdStartCopy2( szTitle, szMsg );     
        //}}IS_SCRIPT_TAG(Dlg_SdStartCopy2)
        if (nResult = BACK) goto Dlg_ObjDialogs;
        return 0;
    end;        
    // OnSetTARGETDIR
    // OnSetTARGETDIR is called directly by the framework to initialize
    // TARGETDIR to it's default value.
    // Note: This event is called for all setups.
    function OnSetTARGETDIR()
    number nId, nIgnore, nResult;
    string szId, szTARGETDIR; 
    string wCMDLINE;
    LIST listID;     
    begin     
        // In maintenance mode the value of TARGETDIR is read from the log file.
        if( MAINTENANCE ) then
            return ISERR_SUCCESS;
        endif;
        // Set TARGETDIR to script default.
        TARGETDIR = "<FOLDER_APPLICATIONS>
    <IFX_COMPANY_NAME>
    <IFX_PRODUCT_NAME>";
        if (CMDLINE != "") then 
           wCMDLINE = CMDLINE;   
           StrReplace (wCMDLINE, '"', '', 0);
           listID = ListCreate (STRINGLIST); 
           if (StrGetTokens (listID, wCMDLINE, "|") > 0) then
              MessageBox ("Parametros incorrectos.", SEVERE);
           else
              ListGetFirstString (listID, TARGETDIR);  
              //MessageBox (TARGETDIR, INFORMATION);
           endif;
           ListDestroy (listID); 
           return 0;
        endif;
        // Read TARGETDIR from the media.
        nResult = MediaGetData( MEDIA, MEDIA_FIELD_TARGETDIR, nIgnore, szTARGETDIR );
        // Use the TARGETDIR from the media if anything was read.
        if( nResult >= ISERR_SUCCESS && StrLengthChars( szTARGETDIR ) ) then
            TARGETDIR = szTARGETDIR;
        endif;
         // Customize the default TARGETDIR for multi-instance application.
         // TODO: If you want something different customize the code below.     
         if( MAINT_OPTION = MAINT_OPTION_MULTI_INSTANCE  && MULTI_INSTANCE_COUNT > 0) then
              // Start with the current multi-instance count plus one.
              nId = MULTI_INSTANCE_COUNT + 1;
              // Find a unique TARGETDIR.
              while( ExistsDir( TARGETDIR ) = EXISTS )
                   // Convert to string.
                   NumToStr( szId, nId );
                   // Update IFX_MULTI_INSTANCE_SUFFIX
                   IFX_MULTI_INSTANCE_SUFFIX = "_" + szId;
                   // Update TARGETDIR
                   TARGETDIR = TARGETDIR + IFX_MULTI_INSTANCE_SUFFIX;
                   // Update nId
                   nId = nId + 1;
              endwhile;
         endif;  
    end;
    // OnEnd
    // The OnEnd event is called at the end of the setup. This event is not
    // called if the setup is aborted.
    function OnEnd() 
    string  wCMDLINE;
    LIST    listID;     
    STRING  DLL_FILE;
    INT     nValue;  
    LONG    nRC;
    NUMBER  nResult;
    begin
    if (CMDLINE != "") then
           wCMDLINE = CMDLINE;   
           StrReplace (wCMDLINE, '"', '', 0); 
           listID = ListCreate (STRINGLIST); 
           if (StrGetTokens (listID, wCMDLINE, "|") > 0) then
              MessageBox ("Parametros incorrectos.", SEVERE);
           else
              ListGetFirstString (listID, DLL_FILE);
              ListGetNextString (listID, DLL_FILE);  
              // MessageBox (DLL_FILE, INFORMATION);
           endif; 
           ListDestroy (listID); 
           nResult = UseDLL (DLL_FILE);
           if (nResult != 0) then
              MessageBox ("No se ha podido cargar\nAddOnInstallAPI.dll", SEVERE);
              abort;
           endif;
           if AddOnInstallAPI.EndInstall() > 0 then
              MessageBox ("Error al ejecutar AddOnInstallAPI", SEVERE);
              abort;
           endif;
    endif;
    end;

Maybe you are looking for

  • IPod Sorting

    I know this question has probably been asked a dozen or more times, but, I'm gonna dig it up anyway, sorry. The way I have my files sorted/tagged on my computer is so I can sort on my iPod genre > artist > album. Just recently I went on a ramped MP3

  • Error while doing IV for Service Delivery Payment

    Dear Support,   There is Problem while doing Invoice for delivery Payment(Agent commission) in case of Service Order having without account assingment. While doing Invoice for that Delivery cost , system is giving a error message 'Enter a GL Account'

  • Unable to send messages with all networks only wit...

    Hi, I am using Nokia N8 from past 2 months , recently i am facing a new problem with my N8.  whenever i try to text a msg it's always resting on Outbox with the resent notification ,i am trying several times to send manually too but no joy. i have ch

  • Not enough video memory....

    I am probably expecting too much of my system, but here goes.... I use a quad g5 with 4gb ram, a 256mb Geforce7800GT video card, a Kona 3 video card and a 23" cinema screen. I have just dug out my old isight camera because it would be useful to video

  • Can't remember the security  questions

    Hi everybody! I tried to buy a song on itunes with my new mac and, since was the first time I was buying something with the new device, iTunes asked me the security questions. There's just one problem: I don't remember them! ARGH I know, I know I sho