From f9c34c6b1c55c5c75fc1695571bab6b052441dd3 Mon Sep 17 00:00:00 2001 From: Tayler Porter Date: Sun, 26 Jun 2022 18:01:34 -0500 Subject: [PATCH] Changed nsi scripts to unix. --- helpers/windows/32-Bit_Installer.nsi | 78 ++++++++++++++-------------- helpers/windows/64-Bit_Installer.nsi | 78 ++++++++++++++-------------- 2 files changed, 78 insertions(+), 78 deletions(-) diff --git a/helpers/windows/32-Bit_Installer.nsi b/helpers/windows/32-Bit_Installer.nsi index 0f6992a..54b1f68 100644 --- a/helpers/windows/32-Bit_Installer.nsi +++ b/helpers/windows/32-Bit_Installer.nsi @@ -1,39 +1,39 @@ -Name "iswitch" -OutFile "installer.x32.exe" - -Page license -LicenseData "LICENSE.txt" -PageEx "license" -LicenseData "PathEd.txt" -PageExEnd -Page instfiles -UninstPage uninstConfirm -UninstPage instfiles - -Section "main" - SetOutPath "C:\Windows\System32\drivers\etc" - File /oname=iswitch.exe "iswitch.i686.exe" - CopyFiles C:\Windows\System32\drivers\etc\hosts C:\Windows\System32\drivers\etc\internal.config - CopyFiles C:\Windows\System32\drivers\etc\hosts C:\Windows\System32\drivers\etc\external.config - SetOutPath "$PROGRAMFILES\iswitch" - File "iswitch.bat" - File "PathEd.exe" - ExecWait '$PROGRAMFILES\iswitch\PathEd.exe add "$PROGRAMFILES\iswitch\\"' - Delete "$PROGRAMFILES\iswitch\PathEd.exe" - WriteUninstaller "$PROGRAMFILES\iswitch\uninstall.exe" - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "DisplayName" "iswitch (32-bit)" - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "DisplayVersion" "1.1.0" - WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "NoModify" 0x00000001 - WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "NoRepair" 0x00000001 - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "UninstallString" "$PROGRAMFILES\iswitch\uninstall.exe" -SectionEnd - -Section "un.main" - File "PathEd.exe" - ExecWait '$PROGRAMFILES\iswitch\PathEd.exe remove "$PROGRAMFILES\iswitch\\"' - Delete "$PROGRAMFILES\iswitch\PathEd.exe" - Delete "$PROGRAMFILES\iswitch\iswitch.bat" - RMDir /r /REBOOTOK "$PROGRAMFILES\iswitch" - Delete "C:\Windows\System32\drivers\etc\iswitch.exe" - DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" -SectionEnd +Name "iswitch" +OutFile "installer.x32.exe" + +Page license +LicenseData "LICENSE.txt" +PageEx "license" +LicenseData "PathEd.txt" +PageExEnd +Page instfiles +UninstPage uninstConfirm +UninstPage instfiles + +Section "main" + SetOutPath "C:\Windows\System32\drivers\etc" + File /oname=iswitch.exe "iswitch.i686.exe" + CopyFiles C:\Windows\System32\drivers\etc\hosts C:\Windows\System32\drivers\etc\internal.config + CopyFiles C:\Windows\System32\drivers\etc\hosts C:\Windows\System32\drivers\etc\external.config + SetOutPath "$PROGRAMFILES\iswitch" + File "iswitch.bat" + File "PathEd.exe" + ExecWait '$PROGRAMFILES\iswitch\PathEd.exe add "$PROGRAMFILES\iswitch\\"' + Delete "$PROGRAMFILES\iswitch\PathEd.exe" + WriteUninstaller "$PROGRAMFILES\iswitch\uninstall.exe" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "DisplayName" "iswitch (32-bit)" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "DisplayVersion" "1.1.0" + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "NoModify" 0x00000001 + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "NoRepair" 0x00000001 + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "UninstallString" "$PROGRAMFILES\iswitch\uninstall.exe" +SectionEnd + +Section "un.main" + File "PathEd.exe" + ExecWait '$PROGRAMFILES\iswitch\PathEd.exe remove "$PROGRAMFILES\iswitch\\"' + Delete "$PROGRAMFILES\iswitch\PathEd.exe" + Delete "$PROGRAMFILES\iswitch\iswitch.bat" + RMDir /r /REBOOTOK "$PROGRAMFILES\iswitch" + Delete "C:\Windows\System32\drivers\etc\iswitch.exe" + DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" +SectionEnd diff --git a/helpers/windows/64-Bit_Installer.nsi b/helpers/windows/64-Bit_Installer.nsi index ea58422..930c122 100644 --- a/helpers/windows/64-Bit_Installer.nsi +++ b/helpers/windows/64-Bit_Installer.nsi @@ -1,39 +1,39 @@ -Name "iswitch" -OutFile "installer.x64.exe" - -Page license -LicenseData "LICENSE.txt" -PageEx "license" -LicenseData "PathEd.txt" -PageExEnd -Page instfiles -UninstPage uninstConfirm -UninstPage instfiles - -Section "main" - SetOutPath "C:\Windows\System32\drivers\etc" - File /oname=iswitch.exe "iswitch.x86_64.exe" - CopyFiles C:\Windows\System32\drivers\etc\hosts C:\Windows\System32\drivers\etc\internal.config - CopyFiles C:\Windows\System32\drivers\etc\hosts C:\Windows\System32\drivers\etc\external.config - SetOutPath "$PROGRAMFILES64\iswitch" - File "iswitch.bat" - File "PathEd.exe" - ExecWait '$PROGRAMFILES64\iswitch\PathEd.exe add "$PROGRAMFILES64\iswitch\\"' - Delete "$PROGRAMFILES64\iswitch\PathEd.exe" - WriteUninstaller "$PROGRAMFILES64\iswitch\uninstall.exe" - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "DisplayName" "iswitch (64-bit)" - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "DisplayVersion" "1.1.0" - WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "NoModify" 0x00000001 - WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "NoRepair" 0x00000001 - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "UninstallString" "$PROGRAMFILES64\iswitch\uninstall.exe" -SectionEnd - -Section "un.main" - File "PathEd.exe" - ExecWait '$PROGRAMFILES64\iswitch\PathEd.exe remove "$PROGRAMFILES64\iswitch\\"' - Delete "$PROGRAMFILES64\iswitch\PathEd.exe" - Delete "$PROGRAMFILES64\iswitch\iswitch.bat" - RMDir /r /REBOOTOK "$PROGRAMFILES64\iswitch" - Delete "C:\Windows\System32\drivers\etc\iswitch.exe" - DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" -SectionEnd +Name "iswitch" +OutFile "installer.x64.exe" + +Page license +LicenseData "LICENSE.txt" +PageEx "license" +LicenseData "PathEd.txt" +PageExEnd +Page instfiles +UninstPage uninstConfirm +UninstPage instfiles + +Section "main" + SetOutPath "C:\Windows\System32\drivers\etc" + File /oname=iswitch.exe "iswitch.x86_64.exe" + CopyFiles C:\Windows\System32\drivers\etc\hosts C:\Windows\System32\drivers\etc\internal.config + CopyFiles C:\Windows\System32\drivers\etc\hosts C:\Windows\System32\drivers\etc\external.config + SetOutPath "$PROGRAMFILES64\iswitch" + File "iswitch.bat" + File "PathEd.exe" + ExecWait '$PROGRAMFILES64\iswitch\PathEd.exe add "$PROGRAMFILES64\iswitch\\"' + Delete "$PROGRAMFILES64\iswitch\PathEd.exe" + WriteUninstaller "$PROGRAMFILES64\iswitch\uninstall.exe" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "DisplayName" "iswitch (64-bit)" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "DisplayVersion" "1.1.0" + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "NoModify" 0x00000001 + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "NoRepair" 0x00000001 + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" "UninstallString" "$PROGRAMFILES64\iswitch\uninstall.exe" +SectionEnd + +Section "un.main" + File "PathEd.exe" + ExecWait '$PROGRAMFILES64\iswitch\PathEd.exe remove "$PROGRAMFILES64\iswitch\\"' + Delete "$PROGRAMFILES64\iswitch\PathEd.exe" + Delete "$PROGRAMFILES64\iswitch\iswitch.bat" + RMDir /r /REBOOTOK "$PROGRAMFILES64\iswitch" + Delete "C:\Windows\System32\drivers\etc\iswitch.exe" + DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\iswitch" +SectionEnd