Dll Call - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

divo
Posts: 8
Joined: Tue Jul 29, 2008 5:44 pm

Dll Call

Hi,
tried to kill process via Dll call C:\WINDOWS\system32\kernel32.dll Function name TerminateProcess
in my example an process named myfile.exe that must killed while uninstalling the package, but how to activate this and what can be filled in Action Data entry and Action text tab?
Attachments
Dll_Call.jpg
Dll_Call.jpg (178.49 KiB) Viewed 3073 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Dll Call

Hi,

Please note that a DLL custom action needs to be written in a certain way in order to be used by Windows Installer. Since the "TerminateProcess" function was not designed to be used by Windows Installer, you cannot use it in your package.

Please note that the User Guide contains the Detect and stop a process how-to which explains how to detect and stop a Windows process.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
divo
Posts: 8
Joined: Tue Jul 29, 2008 5:44 pm

Re: Dll Call

Hi ,
And what about 3rd party dll's and when can we use it inside AI in option call dll?
because we need always to call dll function in our software for example joining a pc to domain or retrieve some permissions of a user via call dll function as used in other scripting software like wise or installshield.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Dll Call

Hi,
And what about 3rd party dll's and when can we use it inside AI in option call dll?
Since Windows Installer supports only custom action DLLs and not just any DLL, I'm afraid that you cannot use any DLL as a custom action in your package (it must be written for a custom action). You can read more about custom action DLLs here:
http://www.codeproject.com/KB/install/m ... ction.aspx
http://bonemanblog.blogspot.com/2005/11 ... rt-ii.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”