建了个c#服务,安装时添加了自定义操作后在安装文件夹下面会生成一个*.InstallState文件,为啥呢?http://topic.csdn.net/u/20080412/18/3FEC3D2B-0414-49F5-8FB9-BB908932C5E2.html这个好像问过但也没说清
解决方案 »
- C#级联菜单
- c# 通过 webbrowser 自动填入值
- 新线程如何设置 StatusStrip控件的ToolStripStatusLabel属性?
- 谁有sybase数据库的ado.net访问库?谢谢!!!
- 这段html怎麽能让它在设计状态显示?
- 在用.net的XslTransform类转换一个XML文档到另一种XML时为什么在转换时要把UTF-8自动转换为UTF-16
- 大家帮我看这个公司如何
- C#的对象模型,有没有说没有构造的class,其成员如何被输出化?
- 求以最简单的方式确定2个数据里有重复值,最好有什么函数直接调用的
- Σ 数组求和的问题
- winform中怎么样避免打开重复窗体?
- c#中的除零异常
{
string str2 = base.Context.Parameters["InstallStateDir"];
assemblyPath = Path.ChangeExtension(assemblyPath, ".InstallState");
if (!string.IsNullOrEmpty(str2))
{
return Path.Combine(str2, Path.GetFileName(assemblyPath));
}
return assemblyPath;
}Setting Context["InstallStateDir"] would possibly work for saving the state; however, as the state is loaded before Uninstall can modify the context, this is no viable solution until Microsoft fixes the above AssemblyInstaller.GetInstallStatePath method.