Autoupdater

git-svn-id: https://192.168.0.254/svn/Proyectos.AbetoDesign_FactuGES/trunk@187 93f398dd-4eb6-7a46-baf6-13f46f578da2
This commit is contained in:
roberto 2024-04-16 17:36:16 +00:00
parent 1f5e6ebcb9
commit 4bf7431849
6 changed files with 20 additions and 9 deletions

Binary file not shown.

View File

@ -0,0 +1,11 @@
@echo off
set "programa=factuges_updater.exe"
REM Verifica si el programa está en ejecución
tasklist /FI "IMAGENAME eq %programa%" 2>NUL | find /I /N "%programa%">NUL
if "%ERRORLEVEL%"=="1" (
REM El programa no está en ejecución. Iniciando...
start "" /MIN "%programa%" /Tray REM Inicia el programa si no está en ejecución con el parámetro /Tray
) else (
REM El programa ya está en ejecución.
)

Binary file not shown.

Binary file not shown.

View File

@ -6,11 +6,11 @@ AppPublisher=Rodax Software S.L.
AppPublisherURL=http://www.rodax-software.com
AppSupportURL=http://www.rodax-software.com
AppUpdatesURL=http://www.rodax-software.com
DefaultDirName={sd}\Rodax Software\FactuGES2
DefaultGroupName=FactuGES2
DefaultDirName={sd}\FactuGES
DefaultGroupName=FactuGES
AllowNoIcons=true
OutputDir=Output
OutputBaseFilename=factuges2setup
OutputBaseFilename=factugessetup
Compression=lzma
SolidCompression=true
InfoBeforeFile=
@ -31,13 +31,13 @@ Source: Input\version.dat; DestDir: {tmp}; Flags: dontcopy
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: {group}\FactuGES2; Filename: {app}\FactuGES.exe; WorkingDir: {app}
Name: {userdesktop}\FactuGES2; Filename: {app}\FactuGES.exe; Tasks: desktopicon; WorkingDir: {app}; Languages:
Name: {group}\Comprobar actualizaciones; Filename: {app}\FactuGES.exe; WorkingDir: {app}; Parameters: CheckNow; Comment: Comprobar si hay nuevas actualizaciones de FactuGES2; IconFilename: {app}\update.ico
Name: {group}\{cm:UninstallProgram,FactuGES2}; Filename: {uninstallexe}
Name: {group}\FactuGES; Filename: {app}\FactuGES.exe; WorkingDir: {app}
Name: {userdesktop}\FactuGES; Filename: {app}\FactuGES.exe; Tasks: desktopicon; WorkingDir: {app}; Languages:
Name: {group}\Comprobar actualizaciones; Filename: {app}\FactuGES.exe; WorkingDir: {app}; Parameters: CheckNow; Comment: Comprobar si hay nuevas actualizaciones de FactuGES; IconFilename: {app}\update.ico
Name: {group}\{cm:UninstallProgram,FactuGES}; Filename: {uninstallexe}
[Run]
Filename: {app}\FactuGES.exe; Description: {cm:LaunchProgram,FactuGES2}; Flags: nowait postinstall skipifsilent
Filename: {app}\FactuGES.exe; Description: {cm:LaunchProgram,FactuGES}; Flags: nowait postinstall skipifsilent
[Registry]
Root: HKLM; Subkey: Software\Rodax Software; ValueType: string; ValueName: Version; ValueData: {code:GetAppVersion|''}; Flags: uninsdeletekey
@ -58,5 +58,5 @@ function GetAppVersion(param: String): String;
function GetAppID(param: String): String;
begin
Result := 'FactuGES2';
Result := 'FactuGES';
end;