Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C MFC
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
Posted 9-Sep-12 22:22pm
Edited 9-Sep-12 22:44pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
v2
Comments
abhineet.ayan.verma at 10-Sep-12 4:43am
   
Thanks for the links but 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.
Kuthuparakkal at 10-Sep-12 4:46am
   
Buddy go for configuration for your app...
http://www.codeguru.com/cpp/cpp/cpp_managed/asp/article.php/c4873/Using-Configuration-Files-in-Visual-C.htm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 841
1 OriginalGriff 245
2 Volynsky Alex 205
3 Kishore Pogaru 140
4 Magic Wonder 129
0 OriginalGriff 5,640
1 Sergey Alexandrovich Kryukov 4,693
2 CPallini 4,540
3 George Jonsson 3,132
4 Gihan Liyanage 2,445


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 10 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100