问题描述
我正在为我的应用程序创建一个MSI包。要求是,如果应用程序A在客户端计算机上停止,则此新设置应安装在该应用程序文件夹中。否则它应该创建自己的文件夹。
我已经创建了自定义安装程序。我已经覆盖了OnInsall,OnBeforeInstall等方法。
但对TARGETDIR没有影响。
即使我这样写:
this.Context.Parameters [TARGETDIR] = new_path;
它仍然将它安装到oldpath,它被设置为ApplicationFolder Tab的DefaultLocation属性设置项目。
请尽快发送决议。
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.
推荐答案
这篇关于如何设置TARGETDIR程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!