; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

[Setup]
AppName=Gestion 2008
AppVerName=Gestion 2008 V1.0
AppPublisher=Gestion
AppCopyright=Gestion
AppPublisherURL=http://url.....com/
VersionInfoVersion=1.0.355.0
DefaultDirName={pf}\Gestion 2008 V10
DefaultGroupName=Gestion 2008
OutputBaseFilename=Gestion10
;UninstallDisplayIcon=C:\Documents and Settings\Diego\Mis documentos\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\icono.ico
LicenseFile=E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Licencia.txt
WizardSmallImageFile=Logo MundoTec.bmp
WizardImageFile=mundo.bmp
MinVersion=0,5.01

[Languages]
;Name: "es"; MessagesFile: "C:\Archivos de programa\Inno Setup 5\Languages\Spanish-2.isl"
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish-2.isl"

[Tasks]
;Name: "desktopicon"; Description: "Crear icono en el &Escritorio"; GroupDescription: "Iconos Adicionales:"; Flags: unchecked
;Name: "quicklaunchicon"; Description: "Crear icono en la &Barra de tareas"; GroupDescription: "Iconos Adicionales:"; Flags: unchecked
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Code]

function InitializeSetup(): Boolean;
var
    NetFrameWorkInstalled : Boolean;
    Result1 : Boolean;
begin

      NetFrameWorkInstalled := RegKeyExists(HKLM,'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4.0');

      if NetFrameWorkInstalled = false then
         Result1 := MsgBox('VentaTec 2008 necesita la previa instalación de:' #13#13 '.NET Framework 4' #13#13 '¿Tiene el .NET Framework 4 instalado en la PC?',
                                    mbConfirmation, MB_YESNO) = idYes;

      if (Result1 = false) and (NetFrameWorkInstalled = false) then
         MsgBox('No se encuentra instalado en su PC el .NET Framework 4 necesario. Puede descargar de Internet el .NET Framework 4 de páginas Web de download. La instalación de VentaTec 2008 en la PC no se completó.',
                                    mbConfirmation, MB_OK)
      else
         Result := True;

end;

[Files]

; Archivos principales
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\VentaTec.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\VentaTec.exe.manifest"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\VentaTec.vshost.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\VentaTec.xml"; DestDir: "{app}"; Flags: ignoreversion

; ATENCION: A veces lo crea a veces no
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\VentaTec.vshost.exe.manifest"; DestDir: "{app}"; Flags: ignoreversion

; LICENCIA: NO DEBE SER MODIFICADO
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Licencia.txt"; DestDir: "{app}"; Flags: ignoreversion

Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Ayuda.chm"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\ventatec.mdb"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\venta.mdb"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\registro.mdb"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\regis.mdb"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\valores.mdb"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Provincia.txt"; DestDir: "{app}"; Flags: ignoreversion

Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\VentaTec.pdb"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\AxInterop.MSChart20Lib.dll"; DestDir: "{app}"; Flags: ignoreversion
;Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Interop.ADODB.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Interop.JRO.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Interop.MSChart20Lib.dll"; DestDir: "{app}"; Flags: ignoreversion

; Archivos auxiliares
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\2.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\$1556.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\$1579.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\$1581.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\2.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\15-27.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\023cdr.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\123D.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\01000.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\27002.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Argentina.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Argterr.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\BeBox Watcher.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\BOOKS01.ICO"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Cascada.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Cliente.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Compactar.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Documents.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\ERASE02.ICO"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Files.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\folder printer.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\GRAPH14.ICO"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Hard Drive.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Help.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\HOUSE.ICO"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Lista.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\ma_smile 006.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\ma_smile 011.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\MISC06.ICO"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Money.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Money-2.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\money bag.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Mosaico.ico"; DestDir: "{app}"; Flags: ignoreversion
;Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\icono.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\PEN07.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\PENS01.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\PENS03.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Pretty Checkbook.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Shut Down.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\trash full.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\User.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\Usuario.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\vbMDIForm.ico"; DestDir: "{app}"; Flags: ignoreversion
;Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\icono.ico"; DestDir: "{app}"; Flags: ignoreversion
;Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\icono.bmp"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\COLECTIV.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\WebMT.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MundoTec\Desarrollo software\VT2008 VB2010 Express 10\VentaTec10\bin\gestion.url"; DestDir: "{app}"; Flags:

;; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Run]
Filename: "{app}\gestion.url"; Description: "Conocer Gestion web."; Flags: shellexec postinstall
;Filename: "{app}\mundotec.url"; Description: "{cm:LaunchProgram}"; Flags: shellexec postinstall

[Icons]
Name: "{group}\Gestion 2008"; Filename: "{app}\GEstion.exe"; WorkingDir: "{app}"
Name: "{group}\Desinstalar Gestion 2008"; Filename: "{uninstallexe}"
Name: "{group}\Gestion en la web"; Filename: "{app}\gestion.url"; IconFilename: "{app}\WebMT.ico"
Name: "{group}\Ayuda Gestion 2008"; Filename: "{app}\Ayuda.chm"
Name: "{userdesktop}\Gestion 2008"; Filename: "{app}\GEstion.exe"; Tasks: desktopicon; WorkingDir: "{app}"
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\Gestion 2008"; Filename: "{app}\GEstion.exe"; Tasks: quicklaunchicon; WorkingDir: "{app}"
