Solved

DLL file not found-Web Installer

Posted on 2014-12-16
2
174 Views
Last Modified: 2015-01-02
Hi,

I have a web installer, where I am using custom pages. (Running installer MSI file on local machine)
One custom page calls an external winforms solution (EXE File - project output) on button click.

When I add output of the winforms solution and run using the EXE/Project output, solution runs well.

1. But as soon as I start referencing a project with class library in this solution and run in the installer, it throws as error (DLL of the class library not found). I tried adding output of the DLL Class library solution to the applications folder in the Installer, but it does not work.

I know this should be a very simple fix, which requires me to place the class library in a particular folder in the installer. OR even use a custom folder with right location. But I cannot get the right answer.

I was looking at this resource (Special Folders and Custom Folders ):
http://msdn.microsoft.com/en-IN/library/s2esdf4x(v=vs.80).aspx


2. I want the solution to be able to reference my SQL file when I run the Installer. I can reference it in the solution when I run it. But in Installer, I am not able to reference it. Maybe it is getting copied to some wrong folder. Can you tell me where to place it.


Please guide?



Custom Installer Dialog

WebInstaller--Reference-Winforms.gif
0
Comment
Question by:SHANCHAT972
2 Comments
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 500 total points
ID: 40504489
>I know this should be a very simple fix,

It's not a simple fix. The exe you want to run within the installation is stored within the table "Binary" in the MSI. When the time comes to run it, Installer unpacks it from there, launches, and deletes. There's no way to tell it to unpack at the same time yet another binary element because it's required in order to run the first one.  

You can see how it works if you look into the detailed log file, what happens within Installer when it runs your exe, or read the article http://msdn.microsoft.com/en-us/library/aa368085(v=vs.85).aspx .

Maybe you can accomplish it by creating self-extracting exe.

Or you can configure it as custom action "run executable installed with the product" - http://msdn.microsoft.com/en-us/library/aa368077(v=vs.85).aspx . This means that it runs in the very end of the installation, when everything is already installed - not within the user dialog phase.
0
 

Author Closing Comment

by:SHANCHAT972
ID: 40528483
Thanks for your valuable input.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an explanation of a simple data model to help parse a JSON feed
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now