diff --git a/helpers/windows/32-Bit_Installer.nsi b/helpers/windows/32-Bit_Installer.nsi index 456440a..0f6992a 100644 --- a/helpers/windows/32-Bit_Installer.nsi +++ b/helpers/windows/32-Bit_Installer.nsi @@ -11,29 +11,29 @@ UninstPage uninstConfirm UninstPage instfiles Section "main" - SetOutPath "C:\Windows\System32\drivers\etc" - File /oname=iswitch.exe "iswitch.i686.exe" + 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" + 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" + 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 490ca2f..ea58422 100644 --- a/helpers/windows/64-Bit_Installer.nsi +++ b/helpers/windows/64-Bit_Installer.nsi @@ -11,29 +11,29 @@ UninstPage uninstConfirm UninstPage instfiles Section "main" - SetOutPath "C:\Windows\System32\drivers\etc" - File /oname=iswitch.exe "iswitch.x86_64.exe" + 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" + 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" + 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