Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating an MSI package for my application. The requirement is such that if application A is stalled at client machine, this new set up should install in that application folder. Otherwise it should create its own folder.

I have created custom installer. I have overriden the methods like OnInsall, OnBeforeInstall etc.
But no effect on TARGETDIR.

Even though I write this :
this.Context.Parameters["TARGETDIR"] = new_path;

It still installs it to oldpath which is set as DefaultLocation property of ApplicationFolder Tab of set up project.

Please send the resolution asap.
Posted
Comments
Prasad Khandekar 11-Mar-14 6:52am    
Hello,

Please have a look at http://msdn.microsoft.com/en-us/library/aa367852(v=vs.85).aspx.

Regards,
Member 10660717 11-Mar-14 7:05am    
Thanks Prasad.
However, from those solution , Point# 2 I tried. But no success.
Point #1 and #3 I could not find the "Directory Table" in Installer properties.

Have you tried that?

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