开发者

how can I change registry values at installation time with windows installer?

I have created a deployment project using VS 2005. By default, files are installed in AppDataFolder. There are also 2 string values added to the registry during the installation. These registry values represent the path to some dll files found in the install dir. When the user chooses the default installation directory everything works fine. But if the user choose another directory, instead of having the registry values with the user selected directory, I still get the default values. How can I change that? Is it possible to do it during the dep开发者_开发技巧loyment project creation?

Thanks,

Olivier.


Use reg.exe from command line.

You could call that exe from your program and provide the correct parameters.

reg.exe is included since Windows XP.


So instead of using the [AppDataFolder] property, I should have used [TARGETDIR]

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜