AhmedAlaa
Posts: 20
Joined: Tue Sep 18, 2012 10:51 am

Serial DLL dependencies

I am using a DLL for verifying serial and this DLL depends on another DLL, so can I install/copy a DLL in system folder before serial validation?
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Serial DLL dependencies

Hello,

In order to achieve what you want you can add the related DLL as a temporary file in "System" folder from "Files and Folders" view. Then, from "Install Parameters" page you should enable the "Run as administrator" option.

Also, please keep in mind that when using serial validation it is recommendable to embed all functionality in a single DLL file.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AhmedAlaa
Posts: 20
Joined: Tue Sep 18, 2012 10:51 am

Re: Serial DLL dependencies

Thanks, It worked correctly :D
AhmedAlaa
Posts: 20
Joined: Tue Sep 18, 2012 10:51 am

Re: Serial DLL dependencies

HI,

The temporary files isn't copied in windows 7 when the user account control settings to 2nd level (administrator issue I think)
How i fix this? or even how I run the MSI file as administrator (you only made it for EXEs installer)
AhmedAlaa
Posts: 20
Joined: Tue Sep 18, 2012 10:51 am

Re: Serial DLL dependencies

Sorry, I didn't see your comment about "Run as administrator", but however I still ask if I can do it without this options as I am using MSI single file installation not the EXE

I think the process if installing files to the Application directory also needs administrator privileges but it asks for it during installation why I can't do that with the temporary file ?

Thanks in advance
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Serial DLL dependencies

Hello,

This happens because when you run the installation package with Full UI the temporary files are copied on the target machine during "Wizard Dialogs Stage -> Paths Resolution -> CostFinalize" standard action, before the UAC will prompt you for elevation.

If you want to use a MSI installation package, then you can add the related temporary DLL in "Temporary" folder from "Files and Folder" view and edit your serial validation DLL to use the temporary DLL from "Temporary" folder location.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AhmedAlaa
Posts: 20
Joined: Tue Sep 18, 2012 10:51 am

Re: Serial DLL dependencies

The related DLL is linked dynamically but using lib file and DLL so its loaded in the loading of the serial DLL.
So I can't specify its path it must be in system folder or even beside the serial DLL when loading it
AhmedAlaa
Posts: 20
Joined: Tue Sep 18, 2012 10:51 am

Re: Serial DLL dependencies

Daniel.Radu wrote: before the UAC will prompt you for elevation.
can I elevate the UAC in the installing of the temporary file or even in the start of the MSI setup
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Serial DLL dependencies

Hello,
can I elevate the UAC in the installing of the temporary file or even in the start of the MSI setup
I'm afraid that you should enable our "Run as administrator" option in order to achieve this.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”