Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I have created c# dll that generate hardware info to ID string.

I need it generate with NSIS instalation. Problem is that is not support, then I try use ExecDos::exec but it still return some number ...But the dll return UID string in this format: XXXX-XXXX-XXXX-XXXX.

ExecDos::exec /TOSTACK  "$TEMP\AppCode.exe" $5
Pop $5 # thread handle for wait
Pop $1

Is there some limitation/must use specified NET frame version or toher.
I used also
CLR::Call "code.dll" "Protect.License" "GenerateCode"  1
pop $0

but that generates a different UID code then if I generate some with same dll in command line.

thx.

What I have tried:

above text.
tried:
ExecDos::exec /TOSTACK  "$TEMP\AppCode.exe" $5
Pop $5 # thread handle for wait
Pop $1

and also :
CLR::Call "code.dll" "Protect.License" "GenerateCode"  1
pop $0
Posted
Updated 26-Nov-19 2:19am
v2
Comments
MadMyche 25-Nov-19 10:25am    
Have you reviewed the article here from a few years ago?
Generating Unique Key (Finger Print) for a Computer for Licensing Purposes[^]

1 solution

Yes, I know this..but need run in NSIS...There is no problem with code generate .but with run in NSIS
 
Share this answer
 
Comments
Dave Kreskowiak 26-Nov-19 10:50am    
If you're trying to reply to someone, hit the Reply button on the port you are replying to.

You posted this as an answer to your own question. By doing this, the person you appear to be replying to never got any notification you tried to reply to them.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900