License vs rename executable

Posted by: david on 10 November 2023, 9:29 am EST

    • Post Options:
    • Link

    Posted 10 November 2023, 9:29 am EST

    Hello,

    I am in the process of migrating my programs in Spread for Winforms V8 to V15.3 (a big gap…).

    I noticed that when I change the name of the executable it tells me that the license is not active when running it.

    For example I rename ‘MyProg.exe’ to ‘MyProg_2.exe’

    If I rename the executable as when compiling, the license is accepted at runtime.

    Is this normal behavior in V15?

    thanks

  • Posted 12 November 2023, 11:02 pm EST - Updated 13 November 2023, 2:45 pm EST

    Hi David,

    The exe file that has not been renamed will use the normal licenses.licx for the process of its licensing. In order to eliminate the issue, you have to generate a .gclicx file for the renamed exe. You have to run command line “gclm.exe [guid] -lc ./.gclicx [renamed exe name]” to generate a .gclicx file and use it.

    Here are the steps for the same:

    1. Open Command Prompt.
    2. Navigate to “C:\ProgramData\GrapeCity\gclm”.
    3. Run the following command:

      gclm.exe f36c83c3-49ab-46b8-bfe2-8b19875ea597 -lc ./.gclicx MyProg_2.exe
    4. Running this command will create a .gclix file on the location: C:\ProgramData\GrapeCity\gclm
    5. Open you project solution.
    6. Clean it and add this .gclicx file to your project.
    7. Right click on the .gclicx file and open its properties. Set its Build Action property to “Embedded Resource”.
    8. Build and run the solution.

    Renamed exe (MyProg_2.exe) will not create an issue anymore. We have dropped a video clip showing the steps for your reference: https://www.dropbox.com/scl/fi/57bg9uiqrougzn3biu8ef/ExeNag.mp4?rlkey=nut3svh791mh1m526ofuej0ll&dl=0

    Please note that this is a temporary link and will expire in 20 days.

    Hope this helps!

    Thanks & Regards,

    Aastha

  • Posted 13 November 2023, 12:28 am EST - Updated 13 November 2023, 12:32 am EST

    Hi Aastha,

    Works very well.

    Thanks for the explanations and the video.

    It may happen that I have to rename an executable ‘MyApp.exe’ twice: ‘MyApp_Dev.exe’ and 'MyApp_Test.exe. In this case can I merge the contents of the two .gclix files into one?

    Note : To help a future reader: the split character does not appear in the post after the ‘-lc’ parameter

    Thanks

    DT

  • Posted 13 November 2023, 2:44 pm EST - Updated 13 November 2023, 2:49 pm EST

    Hi David,

    In this case can I merge the contents of the two .gclix files into one?

    Merging the contents of the gclicx file will not fulfil the requirement.

    We suggest you create separate gclicx files for MyApp_Dev.exe and MyApp_Test.exe and add them as embedded resource to you project solution. Kindly refer to the following image for the same:

    Note : To help a future reader: the split character does not appear in the post after the ‘-lc’ parameter

    Thanks a lot for bringing this to our attention.

    Kind Regards,

    Aastha

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels