Skip to content

Commit b20d08f

Browse files
author
Jonathan Pitre
committed
Fix issue with Notepad3 setrtings
1 parent 22a897b commit b20d08f

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Notepad3/Install.ps1

+8-5
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,18 @@ If ([version]$appVersion -gt [version]$appInstalledVersion)
221221
If (Test-Path -Path $appDestination\Notepad3.ini)
222222
{
223223
Set-IniValue -FilePath "$appDestination\Notepad3.ini" -Section "Notepad3" -Key "Notepad3.ini" -Value "%APPDATA%\Rizonesoft\Notepad3\Notepad3.ini"
224-
Set-IniValue -FilePath "$appDestination\Notepad3.ini" -Section "Settings" -Key "SettingsVersion" -Value "5"
224+
#Set-IniValue -FilePath "$appDestination\Notepad3.ini" -Section "Settings" -Key "SettingsVersion" -Value "5"
225+
Set-IniValue -FilePath "$appDestination\Notepad3.ini" -Section "Settings" -Key Favorites -Value "%APPDATA%\Rizonesoft\Notepad3\Favorites\"
225226
Set-IniValue -FilePath "$appDestination\Notepad3.ini" -Section "Settings" -Key "AutoCompleteWords" -Value "true"
226-
Set-IniValue -FilePath "$appDestination\Notepad3.ini" -Section "Suppressed Messages" -Key "MsgSaveSettingsInfo" -Value "1"
227-
Set-IniValue -FilePath "$appDestination\Notepad3.ini" -Section "Settings2" -Key "PreferredLanguageLocaleName" -Value "$appPreferredLanguage"
227+
Set-IniValue -FilePath "$appDestination\Notepad3.ini" -Section "Settings" -Key "AutoDetectIndentSettings" -Value "true"
228228
Set-IniValue -FilePath "$appDestination\Notepad3.ini" -Section "Settings2" -Key "ReuseWindow" -Value "true"
229-
Set-IniValue -FilePath "$appDestination\Notepad3.ini" -Section "Settings2" -Key "SingleFileInstance" -Value "1"
229+
Set-IniValue -FilePath "$appDestination\Notepad3.ini" -Section "Settings2" -Key "PreferredLanguageLocaleName" -Value "$appPreferredLanguage"
230+
#Set-IniValue -FilePath "$appDestination\Notepad3.ini" -Section "Settings2" -Key "SingleFileInstance" -Value "1"
231+
Set-IniValue -FilePath "$appDestination\Notepad3.ini" -Section "Suppressed Messages" -Key "MsgSaveSettingsInfo" -Value "1"
230232
}
231233
# Copy settings to Default user profile
232-
Copy-File -Path "$appDestination\Notepad3.ini" -Destination "$envSystemDrive\Users\Default\AppData\Roaming\Rizonesoft\Notepad3"
234+
#Copy-File -Path "$appDestination\Notepad3.ini" -Destination "$envSystemDrive\Users\Default\AppData\Roaming\Rizonesoft\Notepad3"
235+
New-Folder -Path "$envSystemDrive\Users\Default\AppData\Roaming\Rizonesoft\Notepad3"
233236

234237
# Go back to the parent folder
235238
Set-Location ..

0 commit comments

Comments
 (0)