FAQ: Difference between revisions

986 bytes added ,  21 August 2020
→‎Octave does not start: comments on script file associations
(→‎Octave does not start: some notes about vbs script checking)
(→‎Octave does not start: comments on script file associations)
Line 92: Line 92:
* Missing/conflicting files.
* Missing/conflicting files.
** '''Solution:''' Remove/Uninstall all existing Octave versions.  Restart the system.  Install GNU Octave again.
** '''Solution:''' Remove/Uninstall all existing Octave versions.  Restart the system.  Install GNU Octave again.
* Permission errors.
 
* Permission errors
: Octave on windows uses VBS scripts to start the program.  You can test whether your system is blocking VBS scripts by doing the following:
: Octave on windows uses VBS scripts to start the program.  You can test whether your system is blocking VBS scripts by doing the following:
# Using Notepad or another text editor, create a text file containing only the text:   
*# Using Notepad or another text editor, create a text file containing only the text:  ''msgbox("This is a test script, Click OK to close")''
    msgbox("This is a test script, Click OK to close")
*# save the file on your Desktop with the name ''testscript.vbs'' (be sure that the editor didn't end it in .txt or .vbs.txt)
# save the file on your Desktop with the name ''testscript.vbs'' (be sure that the editor didn't end it in .txt or .vbs.txt.)
*# double click the file.  If scripts can run, a popup window will appear with that message.  
# double click the file.  If scripts can run, a popup window will appear with that message.
*#* If the file opens in notepad or an editor, it means it still ended in .txt. (windows insecurely hides file extensions by default. show them following [https://answers.microsoft.com/en-us/windows/forum/all/in-win10-how-to-show-the-file-extension-for/ed21ff20-cdb3-4263-9c7d-fc6ed125fc82 these directions at Microsoft.com]
# try moving the file to another location, such as a ''C:\temp folder'', and the main Octave folder containing ''octave.vbs'' and see if it runs.
*#* If both it and the 'octave.vbs' file open a text or other editor, it means your Windows file associations have .vbs files associated with another program. To fix this right click the .vbs file, select Open With, select Choose Another App, check the box that says "Always use this app to open .vbs files", then select "Microsoft Windows Based Script Host" from the list. if not in the list, select "More apps". If still not there select "Look for Another App on this PC" and navigate to ''C:\Windows\System32\wscript.exe'', select it, and select Open. If ''wscript'' is not present you will need to seek assistance installing missing windows components.
# if it doesn't run in any of those locations, then scripting appears to be disabled or blocked on your system. If it runs in some places but not others, there there may be other security permissions errors to solve. If it runs in the same folder as ''octave.vbs'', but directly double-clicking on ''octave.vbs'' does not start the program, then there appears to be some problem other than script permissions.  
*# try moving the file to another location, such as a ''C:\temp folder'', and the main Octave folder containing ''octave.vbs'' and see if it runs.
*# if it doesn't run in any of those locations, then scripting appears to be disabled or blocked on your system. If it runs in some places but not others, there there may be other security permissions errors to solve. If it runs in the same folder as ''octave.vbs'', but directly double-clicking on ''octave.vbs'' does not start the program, then there appears to be some problem other than script permissions.  
:* '''Solution 1:''' Consult your malware detection (a.k.a. AntiVirus) software, if files are blocked.
:* '''Solution 1:''' Consult your malware detection (a.k.a. AntiVirus) software, if files are blocked.
:* '''Solution 2:''' Did you install Octave on a network-drive?  Do you have the execution permissions?
:* '''Solution 2:''' Did you install Octave on a network-drive?  Do you have the execution permissions?
154

edits