SimpleUpdater — Rev. 10.69 / 2016/06/19

Discuss and share scripts and script files...
kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: SimpleUpdater - Rev. 10.40 / 2012/12/17

Post by kunkel321 »

On Win 7, XY 11.80.0100, SU v10.42 I think....
I breifly read though the OP and the XYS file-- haven't yet read all of the replies to the OP though, also I don't have any knowledge of the two predecessors that the script is based on..

So could be that I don't have stuff set up right...
I pointed a toolbar button to the script and this is the series of messages.
Image

Then press 'continue' and get
Image

Then press 'continue' and get
Image

Then press continue and it exits...

It does appear to have added the INI as expected. Also, it creates, then removes the folder at the same level as the XYS and the INI. (If I click 'cancel' the folder is not removed.)

Is my setup wrong maybe?

Note also that my laptop is setup to be used on a network at work. I've tried running the script while plugged in at work and also while on Wifi at home.. Get same result.
ste(phen|ve) kunkel

Marco
Posts: 2347
Joined: 27 Jun 2011 15:20

Re: SimpleUpdater - Rev. 10.40 / 2012/12/17

Post by Marco »

What happens if you type %winsysdir%\cscript.exe in XY AB and press Enter?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: SimpleUpdater - Rev. 10.40 / 2012/12/17

Post by kunkel321 »

Marco wrote:What happens if you type %winsysdir%\cscript.exe in XY AB and press Enter?
Not positive, but I think the first time "finds" it, and pressing Enter again runs it...
Image
ste(phen|ve) kunkel

Marco
Posts: 2347
Joined: 27 Jun 2011 15:20

Re: SimpleUpdater - Rev. 10.40 / 2012/12/17

Post by Marco »

Try this:

-enable script stepping
-load SU 10.42
-execute the script up to line of code 75 included: line 75 should generate the $command variable
-inspect the content of $command and copy it from "C:\Windows\..." onwards ("cmd /c " is useless in this test)
-open a command prompt (Win+R)
-paste that command and execute

What happens?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: SimpleUpdater - Rev. 10.40 / 2012/12/17

Post by kunkel321 »

Huh... Weird...

[Window Title]
%winsysdir%\cscript.exe
[Content]
Windows cannot find '%winsysdir%\cscript.exe'. Make sure you typed the name correctly, and then try again.
[OK]

I suspect that this is a symptom of the way my laptop is setup. It never used to be a problem with XP, but since my work place upgraded me to 7, certain actions cause extreme system slowdowns when I'm online at home. (There's no problem when I'm hooked up to the server at work.) Invoking a "Save As" dialog, an "Open" dialog, or invoking the Win Explorer Context menu all cause problems. It makes me want to throw my laptop out the freakin' window several times per day.

Ashes to ashes--Windows to windows.

(just made that quote up)

I'll go try on my Desktop (Vista) and see if there's a difference.

Extra note: The bit I pasted included "Sun, 20 Jul 1969 08:17:40 GMT" Is that normal?
ste(phen|ve) kunkel

Marco
Posts: 2347
Joined: 27 Jun 2011 15:20

Re: SimpleUpdater - Rev. 10.40 / 2012/12/17

Post by Marco »

Wait a sec, %winsysdir% wasn't resolved to C:\Windows\system32?
When you do the steps above, what's the content of $command?

Btw yes, that date is ok.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: SimpleUpdater - Rev. 10.40 / 2012/12/17

Post by kunkel321 »

The bit I pasted into the run command was

%winsysdir%\cscript.exe //nologo "C:\Users\swkunkel\AppData\Roaming\XYplorer\Scripts\SimpleUpdater\HTTP_checker.vbs" "http://www.xyplorer.com/download/xyplor ... nstall.zip" "Sun, 20 Jul 1969 08:17:40 GMT" "C:\Users\swkunkel\AppData\Roaming\XYplorer\Scripts\SimpleUpdater\HTTP_response.txt"

%winsysdir%\cscript.exe does appear to equal C:\Windows\System32\
At least it does when I paste it in the AB of XY...

Also, I just tried 10.42 on my Vista machine, and it did appear to have the same error messages. (It seemed to run though to the end the first time, but popup up the error messages the second time through.) At any rate, I guess it's not just a problem with my laptop setup.
ste(phen|ve) kunkel

Marco
Posts: 2347
Joined: 27 Jun 2011 15:20

Re: SimpleUpdater - Rev. 10.40 / 2012/12/17

Post by Marco »

%winsysdir% in an XY-only variable.

Try doing the steps outlined above and then pasting in the command prompt

Code: Select all

C:\Windows\cscript.exe //nologo "C:\Users\swkunkel\AppData\Roaming\XYplorer\Scripts\SimpleUpdater\HTTP_checker.vbs" "http://www.xyplorer.com/download/xyplorer_11.90_beta_noinstall.zip" "Sun, 20 Jul 1969 08:17:40 GMT" "C:\Users\swkunkel\AppData\Roaming\XYplorer\Scripts\SimpleUpdater\HTTP_response.txt"
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: SimpleUpdater - Rev. 10.40 / 2012/12/17

Post by kunkel321 »

Again, it "couldn't find" the location.

I also tried it as C:\Windows\System32\... Which did cause a command window to open.
ste(phen|ve) kunkel

Marco
Posts: 2347
Joined: 27 Jun 2011 15:20

Re: SimpleUpdater - Rev. 10.40 / 2012/12/17

Post by Marco »

Can you reproduce with a fresh install?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: SimpleUpdater - Rev. 10.40 / 2012/12/17

Post by kunkel321 »

Marco wrote:Can you reproduce with a fresh install?
Just to clarify: I'm stepping through the script up to line 75, then invoking Win+R and running the thing.
And was it supposed to have the \system32\, or should I leave that off?
ste(phen|ve) kunkel

serendipity
Posts: 3358
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: SimpleUpdater - Rev. 10.40 / 2012/12/17

Post by serendipity »

kunkel321 wrote:
Marco wrote:Can you reproduce with a fresh install?
Just to clarify: I'm stepping through the script up to line 75, then invoking Win+R and running the thing.
And was it supposed to have the \system32\, or should I leave that off?
No %winsysdir% wont work in run command, its a XY only variable.
Can you confirm pasting below code in XY's address bar takes you to csscript.exe?

Code: Select all

%winsysdir%\cscript.exe

Marco
Posts: 2347
Joined: 27 Jun 2011 15:20

Re: SimpleUpdater - Rev. 10.40 / 2012/12/17

Post by Marco »

As far as he told me, "%winsysdir%\cscript.exe" works as expected in his XY. Serendipity help me, I'm running out of ideas :(
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

serendipity
Posts: 3358
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: SimpleUpdater - Rev. 10.40 / 2012/12/17

Post by serendipity »

Marco wrote:As far as he told me, "%winsysdir%\cscript.exe" works as expected in his XY. Serendipity help me, I'm running out of ideas :(
I think you pasted the wrong path below, you have it as:

Code: Select all

C:\Windows\cscript.exe
It should be:

Code: Select all

C:\Windows\System32\cscript.exe
Maybe kunkel321 is still trying without system32 after step 75.
I think we should make it clear that system32 is required in that path and then use the resolved path after step 75 like you suggested to test the rest.

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: SimpleUpdater - Rev. 10.40 / 2012/12/17

Post by Filehero »

I guess it's quite the same as I'd encountered on Win 8, so I assume

- cscript will be resolved in an cmd shell with admin rights
- C:\Windows\System32\cscript will be resolved in a no-admin cmd shell
- adding C:\Windows\System32 to the env variable Path will solve the issue


Cheers,
Filehero

Post Reply