vcl-styles-plugins icon indicating copy to clipboard operation
vcl-styles-plugins copied to clipboard

[Inno Setup] Runtime Error | Cannot Import dll:

Open Crisis2010 opened this issue 6 years ago • 7 comments

After start setup.exe got this error: Runtime Error (at -1:0): Cannot Import dll:C:\Users\user\AppData\Local\Temp\is-S5690.tmp\VclStylesinno.dll.

Issue on version 1.5.4.1. Verison 1.4.5.0 works fine.

OS Winsows 10 1511.

Issue only in new versions.

Fix this please.

Crisis2010 avatar Nov 08 '17 15:11 Crisis2010

Please check if you are using the proper version of the functions (Ansi/Unicode) that must match with version of Inno Setup (Ansi/Unicode).

RRUZ avatar Nov 21 '17 19:11 RRUZ

Checked, everything is correct.

Unicode dll + Unicode inno setup

It looks like the problem occurred with changing some function with updates between 1.4.5.0 and 1.5.4.1 when changing to a new format of vcl theme

Crisis2010 avatar Nov 21 '17 19:11 Crisis2010

Ok, So then maybe you are using the Lite version of the plugin which only loads the old VCL Style format.

RRUZ avatar Nov 21 '17 19:11 RRUZ

Error appears only after update VclStylesinno.dll to latest version

Lite verison also give me this error...

Crisis2010 avatar Nov 21 '17 19:11 Crisis2010

I tried the following combinations: VclStylesinno.dll 1.5.4.1 + New VCL Style format = Runtime Error VclStylesinno.dll 1.5.4.1 + Old VCL Style format = Runtime Error VclStylesinno.dll (Lite) 1.5.4.1 + New VCL Style format = Runtime Error VclStylesinno.dll (Lite) 1.5.4.1 + Old VCL Style format = Runtime Error VclStylesinno.dll 1.4.5.0 + Old VCL Style format = Ok Without dll = Ok

Crisis2010 avatar Nov 21 '17 19:11 Crisis2010

There are already two cases of user error in my program. http://s018.radikal.ru/i511/1711/70/255553289877.png http://s48.radikal.ru/i119/1711/fd/86804ba92735.png

Crisis2010 avatar Nov 24 '17 16:11 Crisis2010

Try changing the TEMP folder location into a path that does not use environment variables. In my case, the error message said it cannot import the file from filepath. This is strange since no filepath has at the start. The program seems to have problem translating environment variable in certain build of Windows.

I hope this works in your case. I don't know why on some computer Inno setup fail to translate environment variables correctly.

MidKnightXS avatar Nov 26 '18 04:11 MidKnightXS