; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
; Setup local computer to use MikTeX from Server: adminstrative settings
; J. Rathlev, Nov. 2009

[Setup]
;PrivilegesRequired=poweruser
AppName=MiKTeX from Server
AppVerName=MiKTeX 2.7
AppPublisher=J. Rathlev, IEAP, Uni-Kiel
CreateAppDir=no
DefaultGroupName=MiKTeX
OutputDir=E:\Install MikTeX
OutputBaseFilename=Admin-MiKTeX-From-Server-Setup
SetupIconFile=E:\Install MikTeX\miktex2.ico
Uninstallable=no
Compression=none
SolidCompression=yes
ShowLanguageDialog=yes
ChangesEnvironment=yes

[Icons]
Name: "{group}\Previewer"; Filename: "P:\MikTex\miktex\bin\yap.exe"
Name: "{group}\Help\FAQ"; Filename: "P:\MikTex\doc\miktex\faq.chm"
Name: "{group}\Help\Manual"; Filename: "P:\MikTex\doc\miktex\miktex.chm"
Name: "{group}\MiKTeX on the Web\MiKTeX Project Page"; Filename: "http://miktex.org/"
Name: "{group}\MiKTeX on the Web\Support"; Filename: "http://miktex.org/Support.aspx"
Name: "{group}\Settings"; Filename: "P:\MiKTeX\miktex\bin\mo.exe"

[Languages]
Name: "en"; MessagesFile: "compiler:Default.isl"; InfoBeforeFile: "E:\Install MikTeX\mt-infobefore-en.rtf"
Name: "de"; MessagesFile: "compiler:Languages\German.isl"; InfoBeforeFile: "E:\Install MikTeX\mt-infobefore-de.rtf"

[Registry]
Root: HKCR; Subkey: ".dvi"; ValueType: string; ValueName: ""; ValueData: "MiKTeX.Yap.dvi.2.7"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "MiKTeX.Yap.dvi.2.7"; ValueType: string; ValueName: ""; ValueData: "DVI File"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "MiKTeX.Yap.dvi.2.7\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "P:\MIKTEX\miktex\bin\yap.exe,1"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "MiKTeX.Yap.dvi.2.7\shell\open\command"; ValueType: string; ValueName: ""; ValueData: "P:\MIKTEX\miktex\bin\yap.exe /dde"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "MiKTeX.Yap.dvi.2.7\shell\open\ddeexec"; ValueType: string; ValueName: "[open(""%1"")]"; ValueData: ""; Flags: uninsdeletevalue
Root: HKCR; Subkey: "MiKTeX.Yap.dvi.2.7\shell\print\command"; ValueType: string; ValueName: "P:\MIKTEX\miktex\bin\yap.exe /dde"; ValueData: ""; Flags: uninsdeletevalue
Root: HKCR; Subkey: "MiKTeX.Yap.dvi.2.7\shell\print\ddeexec"; ValueType: string; ValueName: ""; ValueData: "[print(""%1"")]"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "MiKTeX.Yap.dvi.2.7\shell\printto\command"; ValueType: string; ValueName: ""; ValueData: "P:\MIKTEX\miktex\bin\yap.exe /dde"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "MiKTeX.Yap.dvi.2.7\shell\printto\ddeexec"; ValueType: string; ValueName: ""; ValueData: "[printto(""%1"",""%2"",""%3"",""%4"")]"; Flags: uninsdeletevalue

Root: HKCR; Subkey: ".ps"; ValueType: string; ValueName: ""; ValueData: "psfile"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "psfile"; ValueType: string; ValueName: ""; ValueData: "PostScript"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "psfile"; ValueType: dword; ValueName: "EditFlags"; ValueData: 0; Flags: uninsdeletevalue
Root: HKCR; Subkey: "psfile\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "P:\Ghostscript\gsview\gsview32.exe,3"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "psfile\shell\open\command"; ValueType: string; ValueName: ""; ValueData: "P:\Ghostscript\gsview\gsview32.exe ""%1"""; Flags: uninsdeletevalue
Root: HKCR; Subkey: "psfile\shell\print\command"; ValueType: string; ValueName: ""; ValueData: "P:\Ghostscript\gsview\gsview32.exe ""%1"""; Flags: uninsdeletevalue

Root: HKLM; Subkey: "Software\MiKTeX.org\MiKTeX\2.7\Core";  ValueType: string; ValueName: "SharedSetup"; ValueData: "1"; Flags: uninsdeletekeyifempty
Root: HKLM; Subkey: "Software\MiKTeX.org\MiKTeX\2.7\Core";  ValueType: string; ValueName: "Install"; ValueData: "P:\MIKTEX"; Flags: uninsdeletekeyifempty
Root: HKLM; Subkey: "Software\MiK\MiKTeX\CurrentVersion\MiKTeX"; ValueType: string; ValueName: "Install Root"; ValueData: "P:\MIKTEX"; Flags: uninsdeletekeyifempty
Root: HKLM; Subkey: "Software\Microsoft\HTMLHelp\1.x\ItssRestrictions";  ValueType: dword; ValueName: "MaxAllowedZone"; ValueData: 0; Flags: uninsdeletekeyifempty

Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};P:\MIKTEX\miktex\bin"