Click here to Skip to main content
15,903,203 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, folks.
I've created a setup project in VS2008 which installs fine by itself.
However projects being installed by this installer depend on components (mainly speaking ESRI) which must also be installed on target machines.
There is a separate installer for ESRI that we have and it consists of msi srcipt as well as 6 folders with subfolders in those which are user by this msi. I can't seem to figure out how to include that into my setup project, so that target users just run one full package.
I tried the following which almost works:
1.Created one more class library project in the solution
2.Added installer class to it
3.Overrode Install method and wrote
<br />
 string path=Assembly.GetExecutingAssembly().Location;<br />
 Process.Start(Path.Combine(path, "esriinstaller.msi");<br />

4.Added msi file to output folder's pane in installer project
This does not quite work b/c: a)path doesn't point to directory where the installer was launched (in fact I tried various combinations of Assembly.Get...().BasePath methods - these yiels either Windows\System32 or target folder) b)I also have to manually copy all ESRI folders into installer's package dir (...bin\Release)

So, is there a literate way to add that package to my installer?
(I configured .NET dependencies in Detected Dependencies properties dialog box to install those from full dotnetfix included in the package and it worked fine, and I thought may be I could somehow force installer to "think" that ESRI is also dependendent on project, but with no results yet).
Any suggestions?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900