Solved

DLL file not found-Web Installer

Posted on 2014-12-16
2
177 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Android development question 2 54
hp envy 4500 driver installation problem 5 66
Windows Restrict installation 11 39
what is the best Integrated development environment 2 21
A short article about a problem I had getting the GPS LocationListener working.
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
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 …

828 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