Recent

Author Topic: LazAutoUpdate: auOther  (Read 577 times)

MoellerCLaus

  • Jr. Member
  • **
  • Posts: 86
    • Vig Foreningsprogram
LazAutoUpdate: auOther
« on: November 29, 2020, 02:04:38 pm »
I want to have the updates at my homepage. So I went for auother; and made the ini.files etc accordingly :( I hope.
Newer the less it stops at newversionavaible with attached message.
Any ideas where to look? ;D



Code: Pascal  [Select][+][-]
  1. //**********************************************************
  2. // Check for updates
  3. //**********************************************************
  4. procedure TMainForm.CheckForupdates;
  5.  
  6. Begin
  7.   LazAutoUpdate1.ProjectType:=auOther;
  8.   LazAutoUpdate1.auOtherSourceURL := 'http:\\www.foreningsprogram.dk\updates';
  9.   LazAutoUpdate1.auOtherSourceFilename:='holbaekupdate.zip';
  10.   LazAutoUpdate1.SFProjectName:=''; // Dummy
  11.   LazAutoUpdate1.VersionsININame:='versions.ini';
  12.   LazAutoUpdate1.ZipfileName:='holbaek.zip';
  13.   LazAutoUpdate1.CopyTree:=False;
  14.   LazAutoUpdate1.ShowDialogs:=True;
  15.   LazAutoUpdate1.DebugMode:=True;
  16.   LazAutoUpdate1.UpdatesFolder:='updates';
  17.   LazAutoUpdate1.VersionsININame:='versions.ini';
  18.   If LazAutoUpdate1.NewVersionAvailable Then
  19.       MessageDlg(Application.Title, 'A new version of ' + Application.Title +
  20.         ' is available.' + LineEnding +
  21.         'Click ''Check for new version'' in Help menu to update', mtConfirmation,
  22.         [mbOK], 0);
  23.  
  24. end;
  25.  
  26.  

Wallaby

  • New Member
  • *
  • Posts: 27
Re: LazAutoUpdate: auOther
« Reply #1 on: November 29, 2020, 02:19:11 pm »
http:\\www.foreningsprogram.dk\updates

^^^ What's happened to your slashes?

MoellerCLaus

  • Jr. Member
  • **
  • Posts: 86
    • Vig Foreningsprogram
Re: LazAutoUpdate: auOther
« Reply #2 on: November 29, 2020, 02:22:55 pm »
 ;D I dont know. Thanks. Corrected to /
Now I get the newversion.ini downloaded.
Bum but not there yet.

MoellerCLaus

  • Jr. Member
  • **
  • Posts: 86
    • Vig Foreningsprogram
Re: LazAutoUpdate: auOther
« Reply #3 on: November 29, 2020, 03:07:18 pm »
This is as easy as I thought - log says

Code: Pascal  [Select][+][-]
  1.  [2020-11-29 15:00:34.183 Info] Start of Log
  2.  [2020-11-29 15:00:34.183 Info] updatehm version 0.0.15
  3.  [2020-11-29 15:00:34.183 Info] Given parameters follow:
  4.  [2020-11-29 15:00:34.183 Info] App name = holbaek.exe
  5.  [2020-11-29 15:00:34.183 Info] Updates folder = updates
  6.  [2020-11-29 15:00:34.183 Info] WhatsNew filename = whatsnew.txt
  7.  [2020-11-29 15:00:34.183 Info] Pretty Name = holbaek
  8.  [2020-11-29 15:00:34.183 Info] CopyTree = FALSE
  9.  [2020-11-29 15:00:34.183 Info] Please wait.  Updating holbaek....
  10.  [2020-11-29 15:00:34.183 Info] Application path = C:\hol\holbaek.exe
  11.  [2020-11-29 15:00:34.183 Info] Updated application path = C:\hol\updates\holbaek.exe
  12.  [2020-11-29 15:00:34.183 Info] WhatsNew path = C:\hol\whatsnew.txt
  13.  [2020-11-29 15:00:34.183 Info] Updated whatsNew path = C:\hol\updates\whatsnew.txt
  14.  [2020-11-29 15:00:34.199 Info] Couldn't find szUpdatedEXEPath

and the updatehmwin64  log  says
Code: Pascal  [Select][+][-]
  1. STATUS INFO : @ 15:00:17 MSG : Starting Application IN : Initialization
  2.  
  3. STATUS INFO : @ 15:01:03 MSG : Terminating Application IN : Finalization
  4.  

Any ideas where to look?

MoellerCLaus

  • Jr. Member
  • **
  • Posts: 86
    • Vig Foreningsprogram
Re: LazAutoUpdate: auOther
« Reply #4 on: November 29, 2020, 08:31:52 pm »
 ;) Sometimes it helps me to reach out!!!
To find out I made my mistakes; but now NBUM it works perfectly.

// Made my own Ini files tool including the upload part using Indy.

AL

  • Full Member
  • ***
  • Posts: 211
Re: LazAutoUpdate: auOther
« Reply #5 on: November 29, 2020, 10:38:11 pm »
Do you think this would work with a google drive link?
Laz 2.1.0, fpc 3.3.1, Win10
Laz 2.1.0, fpc 3.3.1, Mac OS Mojave running on VMWare
Laz 2.1.0  fpc 3.3.1 Ubuntu 20.04

MoellerCLaus

  • Jr. Member
  • **
  • Posts: 86
    • Vig Foreningsprogram
Re: LazAutoUpdate: auOther
« Reply #6 on: December 01, 2020, 06:21:16 am »
I believe soo. Google-drive has an API. I have only tried their Gmail with Indy - that works fine.

 

TinyPortal © 2005-2018