Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
put "http://my_url/setup.exe" into tDownloadLink -- 2MB
libURLSetStatusCallback "showProgress", the long name of me
-- make sure the progress bar is hidden, as this property is used to initialise it
hide scrollbar "ProgressBar"
hide group "group Login"
show group "group update"
put empty into fld "ProgressField"
put the seconds into sDownloadStart
load URL tDownloadLink with message "downloadComplete" (don't work!!!)
.....
I set up inclusions manually but not work, which files should appear in extensions?
local tDownloadLink
...
libUrlSetStatusCallback "checkStatus",the long id of me
libURLDownloadToFile tDownloadLink,DestinationFolder
...
on checkStatus pURL,pStatus
if pURL = tDownloadLink then
--•• watch process
-- if the vis of group "grDevTools" then
-- put the ticks & "," & "checkStatus" & "," & pUrl & "," & pStatus & cr before fld "fSpy"
-- end if
--•••
switch (item 1 of pStatus)
case "loading"
-- setpb item 3 of pStatus,word 1 of item 2 of pStatus -- custom progressbar
break
case "downloaded"
-- set the rect of grc "bar" to the rect of grc "border" -- custom progressbar
-- send "AfterDownload" to me in 1 seconds
break
default -- contacted, requested, etc.
end switch
end if
end checkStatus
local tDownloadLink
on mouseUp
put "http://myurl.it/setup.exe" into tDownloadLink
set the itemDel to slash
put last item of tDownloadLink into tFilename
put specialFolderPath("Desktop") & slash before tFileName
put URL tFileName into URL ("binfile:" & tFileName)
put tFileName into DestinationFolder
libUrlSetStatusCallback "checkStatus",the long id of me
libURLDownloadToFile tDownloadLink,DestinationFolder
end mouseUp
on checkStatus pURL,pStatus
if pURL = tDownloadLink then
switch (item 1 of pStatus)
case "loading"
-- setpb item 3 of pStatus,word 1 of item 2 of pStatus -- custom progressbar
break
case "downloaded"
-- set the rect of grc "bar" to the rect of grc "border" -- custom progressbar
-- send "AfterDownload" to me in 1 seconds
break
default -- contacted, requested, etc.
end switch
end if
end checkStatus
local tDownloadLink
on mouseUp
put "http://myurl.it/setup.exe" into tDownloadLink
set the itemDel to slash
put last item of tDownloadLink into tFilename
set the itemDel to ","
put specialFolderPath("Desktop") & slash before tFileName
-- put URL tFileName into URL ("binfile:" & tFileName)
-- put tFileName into DestinationFolder
libUrlSetStatusCallback "checkStatus",the long id of me
libURLDownloadToFile tDownloadLink,tFilename
end mouseUp
The problem is in the revsecurity.dll library that is not implemented in the standalone application, copying it manually works!
I don't see revsecurity.dll in inclusions list. Where did you find it ?
Best regards
Jean-Marc
Hi Jean-Marc,
I use LC 5.5, I have a commercial license.
When I created the standalone application, specifying the url: http: // myurl, it included the library in the root folder.