博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
NX签名//NXOpen VB.Net / C# Sign
阅读量:7052 次
发布时间:2019-06-28

本文共 2347 字,大约阅读时间需要 7 分钟。

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

The following two steps define the general signing process.

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

  2. Run the signing utility to add an encrypted string to the executable.

When running without an NX Open Author licenses NX will check for this encrypted string when the application is loaded.  If NX does not find an NX Open Author license or signature it will not load the executable, or in Batch mode the Common API will fail to initialize.

  • The signing utility may only be executed if an NX Open Author license if available.

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

  • Running the signing utility multiple times on the same executable does no harm, the results are the same as running it once.

  • Journals and GRIP programs do not need to be signed.  All other NX Open applications must be 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 Project Property Page 

      1.2 Select "Resource"

      1.3 Add Exist File --> Select "NXSignResource.res" /"NXOpen.Utilities.dll" / "NXOpen.dll "  to Project

    2.Build your project

    3.Start you command line and enter you <UGII_Install_Directory>\UGII

    4.To sign an executable run SignDotNet at a command line prompt and provide the name of the executable such as " SignDotNet your application"

      if it is 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.

 

  

 

转载于:https://www.cnblogs.com/zekai/p/3967407.html

你可能感兴趣的文章
美团点评通过上市聆讯 将于9月初进行IPO路演
查看>>
长三角铁路春运10天发送旅客突破2000万人次
查看>>
“硬脱欧”或引发边界混乱 欧盟呼吁做最坏打算
查看>>
「Python爬虫+数据分析」分析北京Python开发的现状
查看>>
如何在子线程和线程池中使用 ThreadLocal 传输上下文
查看>>
记一次低级并严重的开发失误
查看>>
webpack4配置react(开发环境)
查看>>
面向对象设计的设计模式(二):结构型模式(附 Demo & UML类图)
查看>>
Hack 苹果系统 Api 实现 iOS TableViewCell 侧滑方案
查看>>
用 Python 做一个 H5 游戏机器人
查看>>
Kali Linux渗透测试实战 第一章
查看>>
倒计时获取验证码
查看>>
我眼中的Android Framework
查看>>
网易云信融合CDN方案及实践
查看>>
Flutter初探 上下拉分页请求+计算器实现
查看>>
TensorFlow入门教程
查看>>
HTML5 新特性
查看>>
你知道JavaScript中的结果值是什么吗?
查看>>
python将指定点云文件(asc)转换为PCD格式
查看>>
切图崽的自我修养-[ES6] 异步函数管理方案浅析
查看>>