问题描述
我是初学者。我最近在C#中开发了一个应用程序。现在我想开发它的设置。我想以编程方式更改程序的默认位置,我的意思是我想将默认位置设置为以前安装在客户端计算机上的程序的位置。但是我不知道这个其他程序的安装路径是什么,所以我必须在自定义操作的注册表中以编程方式找到它,但是在安装目录已经设置之前我无法启动自定义操作到默认值。
有人可以帮我吗?
I'm a beginner. I have recently developed an application in C#. Now I wanna develop its setup. I would like to change programmatically the Default Location of the program, I mean that I would like to set the default location to the location of a program previously installed on the client machine. However I don't know what is the installation path of this other program, so I have to find it programmatically in the registry with a custom action, but I'm not able to launch a custom action before the Installation dir has been already set to the default one.
Is there someone that could help me?
推荐答案
这篇关于适用于Windows Applicaiton的C#安装项目 - 默认位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!