Nxopen vb.net/c# Sign

Source: Internet
Author: User

An executable for any application must is "signed" before it can be executed by anyone who does not having an NX Open Author  License. This section describes the signing process. This process is typically performed if an application is distributed to the user base and are used to verify that Applica tion has been developed using a valid NX Open Author license.

The following steps define the general signing process.

    1. A resource file must is added to the source files. The resource must is compiled and linked with the executable. This step is not a required for Java applications.

    2. Run The signing utility to add a encrypted string to the executable.

When running without an NX Open Author licenses NX would check for this encrypted string then the application is loaded. If NX does not find a NX Open Author license or signature it won't load the executable, or in Batch mode the Common AP I'll fail to initialize.

    • The signing utility May is executed if an NX Open Author license if available.

    • The signing utility also provides a verify option that would display a message confirming whether the file has been correct Ly signed or not.

    • Running The signing utility multiple times on the same executable does no harm, the results is the same as Running it onc E.

    • Journals and GRIP programs do not need to be signed. All other NX Open applications must is signed.

vb.net Example:

1.Add nxopen.dll/nxopen.utilities.dll/nxsigningresource.res three files to Project Resource

1.1 Right click Project property and Enter the project property Page

1.2 Select "Resource"

1.3 Add Exist File-to-select "Nxsignresource.res"/"NXOpen.Utilities.dll"/"NXOpen.dll" to Project

2.Build your project

3.Start command line and enter <ugii_install_directory>\ugii

4.To sign a executable run signdotnet at a command line prompt and provide the name of the executable s Uch as "Signdotnet your Application"

If it is a success, you can find below message;

Checking for the presence of DotNet Author License signed assembly file your application

5. Verify. If you want to verify signature whether or not success. Add "-verify" in Commad line. Result message as below.

Assembly your application is correctly signed with a nxopen signature.

  

Nxopen vb.net/c# Sign

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.