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

Cyrillic and VclStylesInno.dll

Open JustDj-Git opened this issue 9 years ago • 5 comments

Runtime Error (at -1:0): Cannot Import dll: C:\Users\2BA0~1\AppData\Local\Temp\is-33JJH.tmp\VclStylesInno.dll

i think Cyrillic dont support by dll.

JustDj-Git avatar Nov 08 '15 18:11 JustDj-Git

Please check which Version (UNICODE/ANSI) of the plugin are you using.

RRUZ avatar Nov 09 '15 02:11 RRUZ

[Code] // Import the LoadVCLStyle function from VclStylesInno.DLL procedure LoadVCLStyle(VClStyleFile: String); external 'LoadVCLStyleW@files:VclStylesInno.dll stdcall'; // Import the UnLoadVCLStyles function from VclStylesInno.DLL procedure UnLoadVCLStyles; external 'UnLoadVCLStyles@files:VclStylesInno.dll stdcall';

UNICODE

JustDj-Git avatar Nov 10 '15 16:11 JustDj-Git

Please attach these data

  1. A basic script to reproduce the issue.
  2. The windows version where the issue occurs.
  3. The version of the plugin which you are using.
  4. The version of NSIS which you are using.

RRUZ avatar Nov 11 '15 15:11 RRUZ

  1. I cant repoduce. just 10 people have this issue. i can organize remote control with problem PC
  2. Win10
  3. Last version. Use last skins. On prev dll - all fine!!
  4. Inno setup 5.5.1 unicode

News! Runtime Error 217 and then Runtime Error (at -1:0): Cannot Import dll: C:\Users\2BA0~1\AppData\Local\Temp\is-33JJH.tmp\VclStylesInno.dll

JustDj-Git avatar Nov 12 '15 06:11 JustDj-Git

Use {tmp} and delayload.

[Files]
Source: {#Style}.vsf; DestDir: {tmp}; Flags: dontcopy
Source: VclStylesinno.dll; DestDir: {tmp}; Flags: dontcopy

[Code]
procedure LoadVCLStyle(VClStyleFile: String); external 'LoadVCLStyleW@files:VclStylesInno.dll stdcall delayload setuponly';
procedure LoadVCLStyle_UnInstall(VClStyleFile: String); external 'LoadVCLStyleW@{tmp}\VclStylesInno.dll stdcall delayload uninstallonly';
procedure UnLoadVCLStyles; external 'UnLoadVCLStyles@files:VclStylesInno.dll stdcall delayload setuponly';
procedure UnLoadVCLStyles_UnInstall; external 'UnLoadVCLStyles@{tmp}\VclStylesInno.dll stdcall delayload uninstallonly';

function InitializeSetup(): Boolean;
begin
 ExtractTemporaryFile('{#Style}.vsf');
 LoadVCLStyle(ExpandConstant('{tmp}\{#Style}.vsf'));
 Result:=True;
end;

ddv88 avatar Feb 26 '17 00:02 ddv88