积极答复者
安装和部署时如何在注册表内写入程序安装的路径?

问题
答案
全部回复
-
你好你可以使用Microsoft.Win32.Registry类来实现,如果基于xp的话
Wenn ich dich hab’,gibt es nichts, was unerträglich ist.坚持不懈!http://hi.baidu.com/1987raymond -
Public Overrides Sub Install(ByVal stateSaver As System.Collections.IDictionary) MyBase.Install(stateSaver) Dim myInput As String = Me.Context.Parameters.Item("Message") If myInput Is Nothing Then myInput = "There was no message specified" End If MsgBox(myInput) End Sub
类似上面这段代码中的Me.Context.Parameters.Item("Message")
我以前做过 好像可以通过另外一个Item("这里的确切的字符串我记不清楚了") InstallPath或者StartupPath之类的 但是记不清楚了 实在抱歉 我现在有点急事要下线了 期待其他人回复
Wenn ich dich hab’,gibt es nichts, was unerträglich ist.坚持不懈!http://hi.baidu.com/1987raymond -
你好!
我在网上找到一些类似的代码,希望对你有所帮助。
http://topic.csdn.net/t/20020707/10/855816.html
http://topic.csdn.net/t/20021114/09/1175050.html
http://www.cnblogs.com/Sevi/archive/2008/02/29/1086262.html(本回答中包含了第三方网站,微软无法控制和测试此类网站或者该网站提供的软件,因此,微软无法保证此类网站的质量和安全性。微软提醒您在下载软件或者打开网站之前确定您了解了该网站的安全性。)
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- 已编辑 YiChun Chen 2009年7月23日 8:45 typo