add: file icon

This commit is contained in:
2023-09-05 13:06:34 +02:00
parent 3432cd5146
commit db2e903ff0
6 changed files with 37 additions and 554 deletions

View File

@@ -1,6 +1,6 @@
from randomness import *
def change_metadata() :
def change_metadata(icon_file) :
f = open("DllExecutor.rc", "r")
f_c = f.readlines()
f.close()
@@ -22,6 +22,9 @@ def change_metadata() :
elif "ProductName" in line :
line = f'\t\t\tVALUE "ProductName", "{GetRandomString(7)}.exe"\n'
elif "MAINICON" in line and icon_file != "":
line = f'MAINICON ICON "{icon_file}"\n'
o.write(line)
o.close()