Problem with renaming plugin to dll and not compiling them - Forum

Forum Navigation
You need to log in to create posts and topics.

Problem with renaming plugin to dll and not compiling them

Page 1 of 2Next

@luishp @hpw

Estoy haciendo una aplicación con visualneo win, que usa 6 plugin, y uno de ellos pesa más de 100 mb. Como infla muchisimo el exe resultante, estoy tratando de probar la opción de no compilar en el exe los plugin, pero no funciona la aplicación. Me sale una ventana de alerta por cada plugin que hay, y la aplicación deja de funcionar. No se si es que hay algo mal con el tema del hash, o yo estoy haciendo algo mal.

Muchas gracias


I am making an application with visualneo win, which uses 6 plugins, and one of them weighs more than 100 mb. As it bloats a lot the resulting exe, I am trying to test the option of not compiling the plugins in the exe, but the application does not work. I get an alert window for each plugin, and the application stops working. I don't know if there is something wrong with the hashing issue, or I am doing something wrong.

Thank you very much

Hello,

Is the path we see in the error popup window the path to the project folder and its Exe path?

And where is the path of the installed plugin?

Is the nbp file in the install path really the exactly same binary file as in the project folder?

Regards

Hans-Peter

Hi @hpw, that address that appears in the image, is the address of the folder with the application already compiled. All the dll files are there.
I have all the plugins in a folder on a secondary hard disk.
The plugins are the same, the original one, as the one copied to the exe folder, in fact I have tried to copy them myself also by hand, but nothing worked.
It happens to me with the 6 plugins that the application uses. It is as if the hash that is generated when compiling the application is different when executing it.
Thank you very much for your time.

 

Very good, is there any news, I have tried everything possible and there is no way to make it work.

Hello,

Can you contact the author of the plugin?

He should have had the same problem when developing the plugin.

Maybe he/she can bring light into the problem.

Regards

Hans-Peter

Hello, it doesn't work with any plugin.

Very good @hpw, sorry to be heavy, but I would like to use this function and I don't quite understand what I have to do. I have more than 50 plugins. Do I have to contact each of the developers? Does this mean that if the plugin developers have not implemented it, it will not work? If so, this leaves practically all visualneo plugins unusable with this function. The usefulness of this function seems to me great, but that it depends on the plugin developers, it seems to me a drawback, there are many really useful old plugins that probably will never be updated again. Hopefully there is a way to implement this without relying on updating plugins.

Thank you very much for your time. Best regards.

Hello,

I dig out my Win7 Development System and take a look at my original development test pub.

See the hardcopy of the compile setup.

The final Exe is targeted in the Deliver sub-folder

In the second hardcopy you see the Deliver folder as the target for the DLL files.  And the renaming option is checked.

In my testapp I have a page that shows the loaded filennames of the DLL and their Plugin Title text.

SetVar "[PluginFileList]" "[*/*PluginFileList]"
SetVar "[PluginInfoList]" "[*/*PluginInfoList]"

So I see that it worked for me an on my setup.

In your error Hardcopy I wonder that it complain about the plugin as .nbp type. Seems you have not activated renaming to dll.

For testing I renamed my second DLL to a different name and restart my exe.

Then you see my 4. Hardcopy where the error is somewhat wrong. It complains about the hash, but the file is missing. Of cource a hash of nothing is different of the right file hash! ;-)

 

Regards

Hans-Peter

Uploaded files:
  • You need to login to have access to uploads.

Hello,

As another test I copied my final exe and the renamed DLL to a Stick and testrun it on a WIN 10 Laptop.

Runs fine there and the info page shows the correct file pathes and plugin Titles.

Regards

Hans-Peter

Hi @hpw, thank you very much for your time. It definitely doesn't work for me. I've recorded a video for you to see how I do it, to see if there's something I'm doing wrong and haven't noticed. I'm using windows 11, I don't know if it has anything to do with it. This afternoon I will try to install windows 7 on a secondary pc and try to compile from there.

Thank you very much for everything.

https://youtu.be/9smpTmd_mX8

 

 

Hello,

Or can someone else confirm that there is a problem with Windows 11 ?

I have no win 11 system.

Regards

Hans-Peter

Hello,

Another thing you can test:

Make an test-app and use the command HashFile:

HashFile "SHA256" "[HashSourceFile]" "[HashResult]"

This you make with the origonal plugin nbp file (or nbr if exist)

And with your copied and reneamed DLL.

They should be the same hash.

Regards

Hans-Peter

 

@ivanes82

If you send me the demo file with the plugin that is causing the error, I will try to compile it on Windows 11.

To check if the problem exists on another Windows 11 computer.

I tried it on a couple of projects with plugins, I didn't get any error messages.

Very good @hpw and @vadim, I have tried to calculate the hash of the original file and the one copied by visualneo, and the hash matches, so it should work, but for some strange reason it does not.
This happens to me with all plugins, it is not something that is unique to a particular plugin.
Vadin, telling me that it is working for you in windows 11, the problem must be in my pc, I will try to compile from another pc with windows 11 to see if it lets me there.
Is the hash measure thinking in the plugin developers or in the security of our application generated with neobook? If it is the second option it would be great to disable it.

Thank you both very much for your time and interest.

Another thought: Any Antivirus software aktiv? Blocking DLL access?

I have disabled the antivirus on my pc, I activate it regularly to scan the pc and I deactivate it again. I can't think what else might be interfering. I have also tried reinstalling visualneo win, but no luck.

Hello @hpw,, I have been investing a little more, and in the project I'm working on has happened not to work with any plugin, but I've been testing plugin by plugin separately and there are some that work for me, but the vast majority of plugins do not.

@vadim These are some of the plugins that do not work and give me hash error:

zmwOnTheEdge
zmwClipTricks
zmwSelfControl
NeoDBPro
acPagesControl
dec_Zip
npTalk
npEdge
npFile
npUtil
dec_Plus

There are many more, practically 90% of the plugins do not work with the hash.

I think the best idea to help you if you ZIP the EXE and DDl's and upload, we will test it because it's difficult help you without do analize and check options.

Hello,

Here my Test EXE with 2 DLL, for those who want to test on Winows 11

Regards

Hans-Peter

Uploaded files:
  • You need to login to have access to uploads.

@hpw

@ivanes82

Here my Test EXE with 2 DLL, for those who want to test on Winows 11

I ran a test EXE, no error messages.

I also compiled my NeoCommands project without packing plugin files inside the EXE (using plugins NeoBookKB, NeoBookDBPro, dec_Plus, zmFunctions, alStartup). No error messages either.

Windows 11 (21H2), 64-bit

Page 1 of 2Next