DLL file not found-Web Installer

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
ArikkanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vadim RappCommented:
>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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ArikkanAuthor Commented:
Thanks for your valuable input.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Installation

From novice to tech pro — start learning today.