Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DLL file not found-Web Installer

Posted on 2014-12-16
2
Medium Priority
?
190 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:Arikkan
2 Comments
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 2000 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:Arikkan
ID: 40528483
Thanks for your valuable input.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
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 …
Loops Section Overview

824 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