Error calling DLL Function Kernell32.dll

Got a problem you cannot solve? Try here.
Arthur
Posts: 12
Joined: Thu Sep 13, 2012 12:40 pm

Error calling DLL Function Kernell32.dll

Postby Arthur » Thu Jun 30, 2016 10:10 am

Hi Everybody,

I come from 15+ years experience with Wise scripting. Our company is evaluating InstallAware to replace Wise. 90% of our deployments are re-distributing another vendor's application and the other 10% is our own in house applications that we deploy to our employees.

I think Native Setup/Blank Script is what we'll be using vast majority of the time. With that said, I'm getting an error message that I cannot find the answer to on the Forums or F1. I want to put a 4 second pause. I'm getting a "Unable to load plug-in library. Please rebuilt your project......" error.

Below is the code. I hope I pasted it correctly.

Code: Select all

~InstallAware Clipboard Data~
~End~
~{27A095A4-048B-423F-BA24-7FF408A903A4}~
~Terminate Install~
~{EC5A0869-80C5-465C-A2DE-D2C1B179966A}~
~If~
~{BDC4CBC6-8774-4301-B273-E4A693E37F28}~
~WIZARD~
~0~
~CANCEL~
~FALSE~
~Comment~
~{AF0F22B3-D8D2-4776-9BC9-3451075999BE}~
~Exit Setup if Wizard Loop cancelled~
~Label~
~{C1CD3A2B-DDA2-4FA2-9944-1B22E970B97C}~
~Main Install~
~Comment~
~{99E74F69-D448-4BBC-9FF7-5D0F35AD94C9}~
~~
~End~
~{29DFF4ED-2D2E-422F-A0AE-110EFF343E20}~
~GoTo Label~
~{2C35B70E-0BCE-4FEE-A296-FBEA6377F38A}~
~Main Install~
~If~
~{54320ED3-B95D-4E38-886B-916FE43FF697}~
~WIZARD~
~0~
~CANCEL~
~FALSE~
~Display Dialog~
~{3D136B84-5733-4C1E-BF15-BAE2CC7222EA}~
~finish~
~~
~TRUE~
~~
~TRUE~
~FALSE~
~Label~
~{3238EB2A-E745-481F-A1AE-B9D854ADFCF8}~
~Finish~
~Comment~
~{9C862A1B-434A-4C1B-9710-9311E5A1254A}~
~~
~Call DLL Function~
~{EDD7A052-CD65-4B62-B0FB-A99452194713}~
~Kernel32.dll,Sleep,void,,"double word",4000,$~
~~mIDEFunc.dll\mEXEFunc.dll~~
~Comment~
~{68B6C96F-109B-45D0-9C86-C5F016393680}~
~~
~End~
~{8CEE4386-4288-4F81-A4FF-4566B4976544}~
~GoTo Label~
~{D268F080-5EF0-4829-96CF-231211AAB409}~
~Main Install~
~If~
~{ADD2A9D3-469B-4EA1-9571-6EF4C0D1C38A}~
~WIZARD~
~0~
~CANCEL~
~FALSE~
~Display Dialog~
~{8C6F4AE5-7433-4BDA-8CE6-21C40B785E14}~
~welcome~
~~
~TRUE~
~~
~TRUE~
~FALSE~
~Label~
~{4A57DCE3-D454-4D7E-9526-51153C72078C}~
~Welcome~
~Comment~
~{DF540970-5238-471B-8E83-6E9A42CFC1CD}~
~~
~Set Variable~
~{BDDACE3A-EDCA-4E8B-B963-534919C53147}~
~NATIVE_ENGINE$MYAH$MYAH$FALSE~
~TRUE~
~Get Environment~
~{C901AE23-B370-4285-BAA5-1EE67BB597B4}~
~systemdrive~
~SD~

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Error calling DLL Function Kernell32.dll

Postby FrancescoT » Thu Jun 30, 2016 2:12 pm

Dear Arthur,

Honestly I don't know why ... but trying to use the code you posted I am able to replicate the same error, while totally replacing the CallDll statement with a new identical one, it works!

Maybe your code has been damaged\altered in some way.

Anyway attached you find my project ... it's totally based on your code + my edited CallDll statement.

Regards
Attachments
test.zip
(2.56 MiB) Downloaded 319 times
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Arthur
Posts: 12
Joined: Thu Sep 13, 2012 12:40 pm

Re: Error calling DLL Function Kernell32.dll

Postby Arthur » Thu Jun 30, 2016 2:18 pm

You are absolutely right. Somehow it was damaged/corrupt when I did a copy and paste. I created it from scratch and it worked! Lessoned learned, do not copy and paste. Thank you again.

bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Re: Error calling DLL Function Kernell32.dll

Postby bokkie » Thu Jun 30, 2016 3:27 pm

Glad to hear you also found that a new statement worked. That was my experience as well but I figured I was doing something "wrong" and that the copy-and-paste somehow spooked it. I even consulted my ancient Dan Appleman's book on the Win32 API just to make sure that the correct parameters were being used which as we know, they were.
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 194 guests