带有动态文件的工具代码 [英] Code for Tool with a dynamic file

查看:66
本文介绍了带有动态文件的工具代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我对如何将它摆在您面前感到有些困惑,所以请原谅我,如果它在您的脑海中造成混乱.
要求 ::为软件编写删除工具.

语言 :: C(首选),C ++(愿意),Windows API(也愿意)

问题 ::问题是从哪里开始以及如何开始.我知道要删除该软件的所有注册表项和文件.但是我不希望将它们硬编码在我的代码中,因为如果修改该软件以创建更多的密钥,文件或文件夹,那么每次更改或添加路径或注册表值都会很麻烦.因此,我想知道应该如何开始?实现该目标的方法或代码结构应该是什么?任何指针都会有很大的帮助.

密钥问题 ::我在读取或编辑注册表项时没有任何问题.我想要一个文件,其中包含有关注册表项以及我要修改的文件和文件夹的所有信息.可以修改此文件,例如添加新值或删除现有值,而无需触碰我的代码.所以,我想要这个主题的入门者.
TIA

Hi All,
I am somewhat confused about how to put this before you, so pardon me if it creates confusion in your head.

Requirement:: To write a removal Tool for a Software.

Language:: C (preferred), C++ (Will do), Windows API (Will also do)

Problem:: The problem is where and how to start. I know all the registry keys and files to be deleted to remove the software. But I do not want them to be hard-coded in my code as it will be very messy for me to change or add a path or registry value every time if the software is modified to create any more keys or files or folders. So, I want to know as to how should I start? What should be my approach or the structure of my code to achieve this? Any pointers would be of very great help.

Key Problem:: I dont have any problem reading or editing registry keys. I want to have file which holds all the information about the registry keys and files and folders I want to modify. This file can be modified like adding a new value or deleting an existing one without touching my code. So, I want a starter on this topic.
TIA

推荐答案

以下内容将帮助您入门!

http://msdn.microsoft.com/en-us/library/ms724875(v = vs.85) [ ^ ]

http://www.daniweb.com/software-development/cpp/thread/103221/search-the-windows-registry [ ^ ]

http://www.daniweb.com/software-development/cpp/threads/98303/editing-windows-registry [ ^ ]
The following will get you started!

http://msdn.microsoft.com/en-us/library/ms724875(v=vs.85)[^]

http://www.daniweb.com/software-development/cpp/threads/103221/search-the-windows-registry[^]

http://www.daniweb.com/software-development/cpp/threads/98303/editing-windows-registry[^]


Libconfig是用于处理结构化配置文件的简单库:

http://www.hyperrealm.com/libconfig/ [
Libconfig is a simple library for processing structured configuration files:

http://www.hyperrealm.com/libconfig/[^]


这篇关于带有动态文件的工具代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆