Jump to content

Can't find Include after reboot


Docfxit
 Share

Recommended Posts

#RequireAdmin
#include <AutoItConstants.au3>
#include <ExtMsgBox.au3>
#include <Array.au3>
#include <File.au3>
#include <Date.au3>
#include <MsgBoxConstants.au3>
; Other code left out for simplicity 

RegWrite('HKEY_LOCAL_MACHINE' & ((@OSArch = 'X64') ? '64' : '') & "\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce", @ScriptName, "REG_SZ", "C:\Dnload\9xAddons\AutoIt3.exe " & @ScriptDir & "\WindowsUpdates.au3")

; Other code left out for simplicity

I have a script that needs to run after a reboot.  When it does reboot the first thing I see is this screen:

IncludesNotFound 1.jpg

This window comes up before I see the desktop.

After Win7 is rebooted I can run the script with no errors.

AutoItConstants.au3 is in the folder AutoIt3/Include

Does anyone have any idea why Autoit can't find the includes?

Thank you,

Docfxit

Link to comment
Share on other sites

  • Developers
15 minutes ago, Docfxit said:

AutoItConstants.au3 is in the folder AutoIt3/Include

But you aren't running AutoIt3 from that location so it looks in "C:\Dnload\9xAddons\include" 

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

I changed it to run AutoIt from the installed folder and it fixed the include error.

That's really great.  :-) Thank you for catching that.

It ran a little strange.  When it rebooted the GUI and the cmd window opened up like it was supposed to.  There was no wallpaper and no icons.  The screen was totally black except for the GUI and the CMD window.

Is there something I can do to show the normal desktop icons with the wallpaper?

Thanks,

Docfxit

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...