|
Post by xxgeek on Oct 18, 2021 5:13:36 GMT
EDIT - Code removed until fixed up with a new download file.
Another piece of a larger work in progress. Save it to a folder of it's own, and run it. If you have trust issues, read it first and see exactly what it will do.
This file will download a zip file, unpack it, copy it's contents to a folder, copy the jb support files, rename the jbrun2.exe to SpriteCreator v2.0., then launch SpriteCreator. But with little editing could be used for much more.
The download is Rod's SpriteCreator v2.0. Used for testing purposes, and a source we can trust.
Hope you like it...
edit - BTW there is no exe file in Rod's program just a bas file. By renaming the jbrun2.exe to the name of Rod's bas file and creating the tkn.
|
|
code
Member in Training
Posts: 74
|
Post by code on Oct 18, 2021 9:49:51 GMT
Hi,
I runned the code... but hangs. curl not workong(security issues?) I also worked with Powershell(making an e-book), that didn't give problems(win10). Maybe as you serve it as a .zip file you get more rights on win10... Sorry , but that is the way it is.
Regards,
code
|
|
|
Post by xxgeek on Oct 18, 2021 13:29:52 GMT
Hi, I runned the code... but hangs. curl not workong(security issues?) I also worked with Powershell(making an e-book), that didn't give problems(win10). Maybe as you serve it as a .zip file you get more rights on win10... Sorry , but that is the way it is. Regards, code EDIT - Code removed until fixed up with a new download file. Thanks for letting me know code. It's the only way I can solve this issue. I'm not convinced it's a security issue. I left a ton of print statements in the code to make debugging easier. Could you comment out the line near the top "nomainwin", and run it with again after you clean out the downloaded zip file. Then post what mainwin prints here. Running code on a persons own PC shouldn't be some thing windows security is concerned with. However windows may be concerned about "files" brought from outside it's local jurisdiction. Does powershell open? oh wait, I put a HIDE at the end of the powershell command, comment that out too so you can see the progress and let me know if you see a type of cursor move across it's window when run. It's hanging because it's looping waiting for the unpacking to verify the .bas file in Rod's program exists. I may need a pause in there too. Didn't need one here though. I'm also posting the code below with a slightly different powershell command to see if that will work for you. It also works here. Im on Win 10 pro, and I haven't touched my security settings. And as far as I know Pro is locked up tighter than Home. Thanks again code, without the feedback I'm living in the dark. If it turns out to be the curl command, we can download the file another way. Maybe curl isn't installed on home version, I don't know, but it could be installed. It may be just stalled waiting for a download, and not the unpacking. I'd have to see the report. Curl does the download, powershell unpacks it. Might need a delay in there if it's running past the code. Some things start creating the file before finished creating the whole thing, tricking the verify and letting code run before the whole file is ready to work with.
|
|
code
Member in Training
Posts: 74
|
Post by code on Oct 18, 2021 14:15:23 GMT
Hi,
Runned the second code... not better. I am on win10, somebody else?
Thx,
code
|
|
|
Post by xxgeek on Oct 18, 2021 14:39:06 GMT
Hi, Runned the second code... not better. I am on win10, somebody else? Thx, code Thanks code. How about the report?
|
|
|
Post by Rod on Oct 18, 2021 14:39:41 GMT
The .zip is downloading but to "C:\Users\rodbi\Desktop\SpriteCreator%20v2.zip" not appdata/roaming/Liberty..... So the code just loops at the check download do while loop.
|
|
|
Post by xxgeek on Oct 18, 2021 15:18:20 GMT
The .zip is downloading but to "C:\Users\rodbi\Desktop\SpriteCreator%20v2.zip" not appdata/roaming/Liberty..... So the code just loops at the check download do while loop. That is particularly odd, but a nice surprise at the same time. I wonder why it's doing that. There's nothing in the code to tell it to do that. My guess is Windows doesn't like the Dir it's run from. What Dir did you run from Rod, the same as you posted? Windows won't let me here copy to that folder. I'll try running this from my own appdata dir.. edit - btw Rod did you run it as untitled with a copy paste into JB IDE? That never works for me when there is file creation involved.
|
|
|
Post by xxgeek on Oct 18, 2021 15:34:10 GMT
Ok, it's Powershell I'm pretty sure. It' hanging here waiting for the sprite bas file to show up from the unpacking. But, I did run it from appdata in JB folder inside a new folder and the download completed ok So It's a Windows thing. I'll look into elevating privilege's little by little.
Try it on a separate drive, or start it from a desktop folder and see what happens.
Thanks guys I really do appreciate the comebacks.
|
|
code
Member in Training
Posts: 74
|
Post by code on Oct 18, 2021 15:47:50 GMT
Sorry, I was wrong... looked in the 'roaming'(file was indeed downloaded) (Did a little notice 'DefaultDir'). The report: zip file unpacking complete But in the main I always scared for permissions... Regards, code
|
|
|
Post by xxgeek on Oct 18, 2021 16:40:40 GMT
zip file complete is just saying powershell is done. It's the bas file verify that let's us know it was unpacked.
Have you tried running it from a folder on your desktop code? Give it a shot if you can, and let me know if powershell unpacks in there?
I just tried it on my own desktop and it went all the way through to launching SpriteCreator with no problems in about 4-5 seconds.
|
|
code
Member in Training
Posts: 74
|
Post by code on Oct 18, 2021 17:10:29 GMT
I guess not on my Desktop,
Somebody else ?
|
|
|
Post by xxgeek on Oct 18, 2021 18:05:04 GMT
I guess not on my Desktop, Somebody else ? ah man, I don't like messing with peoples security to have a program run. This app was just needed in the 1st version of a larger app I'm working on that is completely 1 bas file with nothing populated in the text windows, like a bare bones empty shell users can add to. The zipped version will be some extra files and some populated text with tips samples etc etc. I was hoping to get Rod's SpriteCreator in there in the first version via a download. Oh well. I'll give it some more thought and testing. I could leave the code in there and point to a certain dir where people can download it manually and extract to the designated dir. Thanks a lot code, for your time and help.
|
|
|
Post by Rod on Oct 19, 2021 7:36:54 GMT
On the point about downloading sprite creator. Can we use another test.zip? It is just that downloads are monitored by many virus checkers and there are positive files maintained. Downloading sprite creator usually works, I may be unnecessarily concerned but if the download fails and crashes it will not do spritecreator’s reputation or my sites reputation any favours. Sprite creator itsel unzips to a folder of that name which may also confuse the issue.
|
|
|
Post by xxgeek on Oct 19, 2021 13:32:42 GMT
On the point about downloading sprite creator. Can we use another test.zip? It is just that downloads are monitored by many virus checkers and there are positive files maintained. Downloading sprite creator usually works, I may be unnecessarily concerned but if the download fails and crashes it will not do spritecreator’s reputation or my sites reputation any favours. Sprite creator itsel unzips to a folder of that name which may also confuse the issue. I hear ya Rod. Code has been removed. I don't think I'll replace it either. Looking into the matter it can be done but it means bypassing security. 1st version of the app will have instructions for users to download with a link. 2nd version it with get zipped up with all the other files. No big deal. Sorry if this affected you or your rep Rod, I didn't realize it could be a problem. If I ever post some code on this topic again, I'll use a Microsoft download
|
|