How to add DLL function into Inno Setup iss file? -
i tried read sample code how load dll @ inno setup, i'm confused.
i have 1 dll (chkarchinfo.dll) , contents simple:
extern "c" __declspec(dllexport) bool __stdcall isarm() { system_info si; getnativesysteminfo(&si); if(processor_architecture_arm == si.wprocessorarchitecture) return true; return false; } i know need use [files] section load dll file. how declare function @ .iss let me use it?
btw, if there functions in inno setup arm architectute? (processorarchitecture doesn't include arm architectute)
please me do.... thank you!!!
br, alan
read inno setup documentation on using dlls , .net assemblies.
you have declare external function prototype. , add dll [files] section, if want embed dll installer.
[files] source: "mydll.dll"; flags: dontcopy [code] function isarm: boolean; external 'isarm@files:mydll.dll stdcall'; though better call getnativesysteminfo pascal script directly. that's different question.
Comments
Post a Comment