Skip to content

Commit

Permalink
Merge pull request #53 from emadadel4/test
Browse files Browse the repository at this point in the history
Fixing
  • Loading branch information
emadadel4 authored May 27, 2024
2 parents 46d3765 + 2aac014 commit 40390ac
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
7 changes: 7 additions & 0 deletions Assets/Database/Tweaks.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,13 @@
"Type": "DWord",
"Value": "1",
"defaultValue": "0"
},
{
"Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Run",
"Name": "OneDrive",
"Type": "String",
"Value": "",
"defaultValue": ""
}
],
"InvokeCommand": [
Expand Down
3 changes: 2 additions & 1 deletion Scripts/Core/Invoke-ApplyTweaks.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ function Invoke-ApplyTweaks
Write-Output "Registry path does not exist. Creating it..."
# Try to create the registry path
try {
New-Item -Path $Path -Force -ErrorAction Stop | Out-Null
New-Item -Path $Path -Name $Name -Type $Type -Value $Value -Force -ErrorAction Stop | Out-Null

Write-Output "Registry path created successfully."
} catch {
Write-Output "Failed to create registry path: $_"
Expand Down
10 changes: 9 additions & 1 deletion itt.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4765,6 +4765,13 @@ $sync.database.Tweaks = '[
"Type": "DWord",
"Value": "1",
"defaultValue": "0"
},
{
"Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Run",
"Name": "OneDrive",
"Type": "ExpandString",
"Value": "",
"defaultValue": ""
}
],
"InvokeCommand": [
Expand Down Expand Up @@ -8040,7 +8047,8 @@ function Invoke-ApplyTweaks
Write-Output "Registry path does not exist. Creating it..."
# Try to create the registry path
try {
New-Item -Path $Path -Force -ErrorAction Stop | Out-Null
New-Item -Path $Path -Name $Name -Type $Type -Value $Value -Force -ErrorAction Stop | Out-Null

Write-Output "Registry path created successfully."
} catch {
Write-Output "Failed to create registry path: $_"
Expand Down
8 changes: 4 additions & 4 deletions newTweak.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ do {
1 = "DWord"
2 = "Qword"
3 = "Binary"
4 = "SZ"
5 = "EXPAND_SZ"
6 = "LINK"
7 = "MULTI_SZ"
4 = "String"
5 = "MultiString"
6 = "ExpandString"
7 = "LINK"
8 = "NONE"
9 = "QWORD_LITTLE_ENDIAN"
}
Expand Down

0 comments on commit 40390ac

Please sign in to comment.