Skip to content

Commit

Permalink
Changed nsi scripts to unix.
Browse files Browse the repository at this point in the history
  • Loading branch information
tayler6000 committed Jun 26, 2022
1 parent 50951f6 commit f9c34c6
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 78 deletions.
78 changes: 39 additions & 39 deletions helpers/windows/32-Bit_Installer.nsi
Original file line number Diff line number Diff line change
@@ -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
78 changes: 39 additions & 39 deletions helpers/windows/64-Bit_Installer.nsi
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f9c34c6

Please sign in to comment.