Solved

DLL file not found-Web Installer

Posted on 2014-12-16
2
173 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
Comment Utility
>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
Comment Utility
Thanks for your valuable input.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

744 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