惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
V
Visual Studio Blog
雷峰网
雷峰网
J
Java Code Geeks
博客园 - 三生石上(FineUI控件)
人人都是产品经理
人人都是产品经理
MyScale Blog
MyScale Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
C
Check Point Blog
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
V2EX
D
Docker
IT之家
IT之家
博客园 - 聂微东
腾讯CDC
U
Unit 42
Microsoft Security Blog
Microsoft Security Blog
The Cloudflare Blog

博客园 - lgzh

spring boot 调用python ,研发环境下AttributeError: module 'clip' has no attribute 'load' el-tree选中背景变色 jquery datatable分页 png 变透明 Code First 不自动生成数据库 读取文件不是真实的具体路径 setZh.ini win10 开发mfc 64位 ocx控件 win7 下加载MSCOMCTL.OCX getGLES1ExtensionString: Could not find GLES 1.x config! IUnknown(TVarData(Params[0]).VPointer) as Range win8 VB6打开提示MSCOMCTL.ocx未注册 js 动态添加行,删除行,并获得select中值赋予 input SQL Server 自定义函数 返回树结构函数 大图 预览 android 创建数字签名应用程序 android java.net.socketexception permission denied an error occurred while signing: '.', hexadecimal value 0x00, is an invalid character IIS配置、403.6 无权查看,网页拒绝访问 C#后台调用Delphi 的Ocx
.net 安装包制作
lgzh · 2012-08-14 · via 博客园 - lgzh

1、编译之后,安装之后,没有卸载,再编译,再安装出错

    解决办法:添加删除程序里面删除安装过的文件。

2、判断是否虚拟目录存在

    直接用: DirectoryEntry   Exist = root.Children.Find(virtualdir, root.SchemaClassName);

            出错:{"系统找不到指定的路径。 (异常来自 HRESULT:0x80070003)"}

    需要先创建 。感觉如果没有就出错,具体原因不知道, xp、vs2005开发。

    解决办法:加个 try  catch

 DirectoryEntry Exist;
            try
            {
                 Exist = root.Children.Find(virtualdir, root.SchemaClassName);
            }
            catch
            {
                Exist = null;
            }

            if (Exist != null)
            {
                //删除虚拟目录
                root.Children.Remove(Exist);
                root.CommitChanges();
            }