Where did you get the information to build the ActiveX-component?

In the help you must be able to find some text like this:

--cut—cut—cut—

Licensing an ActiveX control consists of providing a license key at design-time and

supporting the creation of licenses dynamically for controls created at runtime.

To provide design-time licenses, the ActiveX wizard creates a key for the control,

which it stores in a file with the same name as the project with the LIC extension. This

.LIC file is added to the project. The user of the control must have a copy of the .LIC

file to open the control in a development environment. Each control in the project

that has Make Control Licensed checked has a separate key entry in the LIC file.

To support runtime licenses, the wrapper class implements two methods,

GetLicenseString and GetLicenseFilename. These return the license string for the control

and the name of the .LIC file, respectively. When a host application tries to create the

ActiveX control, the class factory for the control calls these methods and compares

the string returned by GetLicenseString with the string stored in the .LIC file.

Runtime licenses for the Internet Explorer require an extra level of indirection

because users can view HTML source code for any Web page, and because an

ActiveX control is copied to the user’s computer before it is displayed. To create

runtime licenses for controls used in Internet Explorer, you must first generate a

license package file (LPK file) and embed this file in the HTML page that contains the

control. The LPK file is essentially an array of ActiveX control CLSIDs and license

keys.

Note To generate the LPK file, use the utility, LPK_TOOL.EXE, which you can download

from the Microsoft Web site (www.microsoft.com).

To embed the LPK file in a Web page, use the HTML objects, <OBJECT> and

<PARAM> as follows:

<OBJECT CLASSID="clsid:6980CB99-f75D-84cf-B254-55CA55A69452">

<PARAM NAME="LPKPath" VALUE="ctrllic.lpk">

</OBJECT>

The CLSID identifies the object as a license package and PARAM specifies the

relative location of the license package file with respect to the HTML page.

When Internet Explorer tries to display the Web page containing the control, it parses

the LPK file, extracts the license key, and if the license key matches the control’s

license (returned by GetLicenseString), it renders the control on the page. If more than

one LPK is included in a Web page, Internet Explorer ignores all but the first.

For more information, look for Licensing ActiveX Controls on the Microsoft Web site.

--cut—cut—cut—



//hope it helps….





-----Original Message-----
From: Lars Brink [mailto:[EMAIL PROTECTED] Sent: donderdag 11 september 2003 9:36
To: [EMAIL PROTECTED]
Subject: [development-axapta] ActiveX component for 3-tier login




Hi!

We have an Axpata installation (3-tier) which our customers use over the Internet (ASP). For them to login we have made some Active-X components on our website using the TI article discussing this.

Our problem is:
We cannot find the right place and syntax to give the user the option to install this 
program for all users . This is necessary when a user doesn't have admin rights on 
his/her computer and the administrator then installs it on the machine. Then when the 
user logs in again Axapta still cannot start.

We have tried many things to get the code into this line:
[PARAM NAME="CommandLineSetup" VALUE=""]
but without success.
For example:
[PARAM NAME="CommandLineSetup" VALUE="ALLUSERS=1"]
It is not passed correctly to the SetUp.exe program during installation.

The Code:
[OBJECT codeBase="http://xxx/axdeploy30/axwebdeploy.cab#version=3,0,0,1"; 
classid="clsid:B6905E70-4B33-11D3-A498-0008C7DB06E6" VIEWASTEXT ID="Object1"]
[PARAM NAME="ServerSetup" VALUE="http://xxx/axdeploy30/ClientSetup/";]
[PARAM NAME="ServerServicePack" 
VALUE="http://xxx/axdeploy30/ClientServicePack/sp1.exe";]
[PARAM NAME="Configuration" VALUE="http://xxx/axdeploy30/xpo/hn2-3006-dk.xpo";]
[PARAM NAME="Version" VALUE="3,0,0,1"]
[PARAM NAME="AxaptaLanguage" VALUE="da"]
[PARAM NAME="Database" VALUE=""]
[PARAM NAME="DatabaseParm" VALUE=""]
[PARAM NAME="CopyFiles" VALUE="1"]
[PARAM NAME="WarnDownload" VALUE="1"]
[PARAM NAME="CommandLineSetup" VALUE=""]
[PARAM NAME="CommandLineServicePack" VALUE=""]
[PARAM NAME="TempDirectory" VALUE=""]
[PARAM NAME="AutoStart" VALUE="0"]
[PARAM NAME="_cx" VALUE="2328"]
[PARAM NAME="_cy" VALUE="503"]
[PARAM NAME="AutoSize" VALUE="-1"]
[PARAM NAME="Enabled" VALUE="1"]
[/OBJECT]





Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


Yahoo! Groups Sponsor ADVERTISEMENT
Click Here!


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Reply via email to