Skip to content

Commit 0930fd7

Browse files
authored
Create README.md
1 parent 67530c5 commit 0930fd7

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# program-inst-manager
2+
## Description
3+
add program install info, remove it, or check for it for Windows
4+
5+
## How To Use
6+
This code is made as an example ***automatically referencing `program-inst-manager.dll`***.<br/>
7+
```csharp
8+
// create installation info for example
9+
var installInfo = new ProgramInstallInfo
10+
{
11+
DisplayIcon = "example.ico",
12+
DisplayName = "Example Program",
13+
DisplayVersion = "1.3.2.0",
14+
InstallLocation = @"C:\Program Files (x86)\Example Program",
15+
Publisher = "Example Publisher",
16+
SystemComponent = false,
17+
UninstallString = @"C:\Program Files(x86)\Example Program\uninstall.exe",
18+
URLInfoAbout = "https://example.com",
19+
CanModify = true,
20+
CanRepair = true,
21+
ModifyPath = @"C:\Program Files (x86)\Example Program\modify.exe"
22+
};
23+
bool hasInstall = Installation.CheckForInstallInfo(installInfo);
24+
25+
// add install info to Registry if not already added
26+
if (!hasInstall) InstallationManager.AddInstallInfo(installInfo);
27+
28+
// remove install info from Registry if already added
29+
if (hasInstall) InstallationManager.RemoveInstallInfo(installInfo);
30+
```
31+
32+
## Documentation
33+
* `ProgramInstallInfo`: Installation info for your program
34+
* `InstallationManager`
35+
* `CheckForInstallInfo`
36+
* Returns `true` or `false` depending on whether or not the specified program installation info was added to the Registry
37+
* `AddInstallInfo`
38+
* Adds the provided program installation info to the Registry
39+
* `RemoveInstallInfo`
40+
* Removes the specified program installation info from the Registry
41+
42+
## Download
43+
[Standalone (x86/x32)](https://github.com/Lexz-08/program-inst-manager/releases/latest/download/program-inst-manager-(x86).dll)<br/>
44+
[Standalone (x64)](https://github.com/Lexz-08/program-inst-manager/releases/latest/download/program-inst-manager-(x86).dll)

0 commit comments

Comments
 (0)