Link to XLnow Homepage
Home
Login Register Member List
XLnow OnScript Forums   » OnScript Editor   » Installation Questions   » Mapping .vbs to OnScript  

Welcome Guest ( Login or Register )

Mapping .vbs to OnScript
Author
Message
Posted 22.10.2004 16:12
Junior Member
Junior Member

Group: Forum Members
Active: 29.10.2004
Posts: 8

Aaaaarrrrgggghhh!

I installed the OnScript build 325 on my PC a few days ago, having installed 303 just previously.  Without any warning during the installation, it changed the file-type assignments for VBScript files to point to OnScript.  I have loads of scripts which run on AT schedules using cscript which perform maintenance and monitoring of various systems.  These immediately broke!  When I run them manually, I now get Input Error: There is no script engine for file extension ".vbs".  I didn't get any warning because their console output is suppressed and the script which checks that all of the others are working and reports failures was also broken by OnScript's installation - one lesson for me, there - reporting "Nothing to report" instead of reporting nothing - but the root cause is your app's irresponsible behaviour.  Even such crap as Quicktime and RealPlayer warn you and give you a chance not to have your file assignments broken by their installation.  I only found out because I tried to use a template script in OnScript which has always worked and it threw an error - when I went to test it in cscript natively, it threw the above error instead.  Subsequently, I've noticed that you've hijacked .HTAs as well.

I immediately uninstalled OnScript but your uninstaller doesn't fix what its counterpart broke!

I look forward to reading your response.  I also look forward to reading a complete list of the file assignments you've hijacked and their original settings so I can return my system to normality.

IP Logged
This member is offline.
Posted 22.10.2004 17:41


Forum Administrator
Forum Administrator

Group: Forum Moderators
Active: 13.04.2009
Posts: 78

I completely agree with you that it would in fact be rather rude to change existing file-type assignments and understand your disappointment. However, the OnScript Installation is not designed to do such a thing and we are surprised to hear that it would do that.

What the OnScript Installer attempts to do is add file-type assignments for the documents it recognizes. After the installation you should be able to see the following two additions in the shortcut menu of the supported file types:

Edit with OnScript
Open with OScript

Where "Edit with OnScript" refers to loading the script file into the OnScript Editor for editing and "Open with OScript" runs the script using the native OnScript Host.

The installation does not attempt to modify or remove any other actions. In particular it should not modify the default Open action. (We recently updated the installation to not modify the Edit action because it in fact did that for some file types.) When you remove OnScript, these additional assignments should disappear.

Regarding the list of file-types we will prepare a document or perhaps a script that reports the settings. Basically they are: .VBS, .JS., WSF, WSC, .BAT, .CMD, .HTA, .TXT and .INI.

Now to the situation on your system: could you perhaps export the registry setting for the VBScript file type and post them? It would be interesting to have this for analysis purposes.
You can find the setting here: HKEY_CLASSES_ROOT\VBSFile (run regedit.exe and export that branch to a file).

Cyril Baratoff
XLnow - the makers of OnScript

IP Logged
This member is offline.
Posted 22.10.2004 18:59
Junior Member
Junior Member

Group: Forum Members
Active: 29.10.2004
Posts: 8

It won't help much as I tried to reinstate the settings myself, only to have that fail!  But here it is, anyway:

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\VBSFile]
"EditFlags"=dword:00000000
"BrowserFlags"=dword:00000008
@=""
[HKEY_CLASSES_ROOT\VBSFile\shell]
@="&Open"

I've remembered that I'd previously installed 303 before 325, though I removed 303 first.  Could that have caused it?

IP Logged
This member is offline.
Posted 22.10.2004 19:07


Forum Administrator
Forum Administrator

Group: Forum Moderators
Active: 13.04.2009
Posts: 78

You could try to run the Windows Script Host installation. It might rewrite the default file-type associations if they are in such a bad shape. You can find the latest on http://www.onscript.com/downloads.

If that fails I can send you the registry settings from a fresh system.

You have XP, right We will certainly recheck the installer, but I have not seen this happen, even when removing first.

Cyril Baratoff
XLnow - the makers of OnScript

IP Logged
This member is offline.
Posted 25.10.2004 17:49
Junior Member
Junior Member

Group: Forum Members
Active: 29.10.2004
Posts: 8

Weird.  I've installed the 5.6 Script Host which successfully set the VBS associations.  I then reinstalled 325 and it's fine and works as you described.  I've also installed 325 on one of my test PCs and couldn't recreate it on that, either.  I think we'll have to put it down to "one of those things".  Thanks for the prompt assistance.

IP Logged
This member is offline.
Posted 25.10.2004 17:55


Forum Administrator
Forum Administrator

Group: Forum Moderators
Active: 13.04.2009
Posts: 78
You are welcome. Thank you for confirming that all is OK now.

Cyril Baratoff
XLnow - the makers of OnScript

IP Logged
This member is offline.
Showing page 1 of 1 - 6 messages found
« Next Oldest :: Next Newest »

Powered by InstantForum.NET v3.4
Copyright © 2002, 2004, InstantASP Ltd. All rights reserved.