https://github.com/ilopx/exe_tool
Makes a non-console Windows application out of an executable file. By patching method
https://github.com/ilopx/exe_tool
Last synced: about 1 month ago
JSON representation
Makes a non-console Windows application out of an executable file. By patching method
- Host: GitHub
- URL: https://github.com/ilopx/exe_tool
- Owner: ilopX
- Created: 2021-08-05T16:14:16.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-17T20:58:19.000Z (almost 4 years ago)
- Last Synced: 2025-03-24T23:33:25.924Z (2 months ago)
- Language: Dart
- Homepage:
- Size: 65.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hide console dart native
Makes a non-console Windows application out of an executable file. By patching methodThe reason for creating this repository is described here: https://github.com/timsneath/win32/issues/127
## Install
```yaml
dev_dependencies:
dart_exe:
git:
url: https://github.com/ilopX/exe_tool
```## Run
```batch
dart compile exe app.dart
pub run dart_exe subsystem=gui showInfo d:\app.exe
```### Output:
```
ExeFile: d:\app.exe + changed(GUI)
0x3c: PE address: 0x118
0x11c: MachineType: 0x8664 (x64)
0x130: PEType: 0x20b (PE+)
0x174: Subsystem: 0x2 (GUI)
```## Example
```dart
import 'dart:io';import 'package:dart_exe/dart_exe.dart';
void main(List arguments) async {
final exe = ExeFile(r'd:\app.exe');
try {
final pe = exe.openPE();pe.subsystem = Subsystem.GUI;
print('Open: ${exe.fileName}');
print('PE address: 0x${pe.address.pe.toRadixString(16)}');
print('${pe.machine}');
print('${pe.peType}');print('${pe.subsystem}');
} catch (e) {
stderr.writeln(e);
}
finally {
exe.close();
}
}
```
[](https://youtu.be/cbjDu0KLzeA?t=39)