Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cyrillic and VclStylesInno.dll #26

Open
JustDj-Git opened this issue Nov 8, 2015 · 5 comments
Open

Cyrillic and VclStylesInno.dll #26

JustDj-Git opened this issue Nov 8, 2015 · 5 comments
Assignees
Labels
Milestone

Comments

@JustDj-Git
Copy link

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.

@RRUZ
Copy link
Owner

RRUZ commented Nov 9, 2015

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

@RRUZ RRUZ added the question label Nov 9, 2015
@RRUZ RRUZ self-assigned this Nov 9, 2015
@JustDj-Git
Copy link
Author

[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

@RRUZ
Copy link
Owner

RRUZ commented Nov 11, 2015

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.

@JustDj-Git
Copy link
Author

  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

@RRUZ RRUZ added this to the Inno Setup milestone Oct 24, 2016
@ddv88
Copy link

ddv88 commented Feb 26, 2017

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants