Jump to content

Winpe And Fileinstall


Recommended Posts

In four years of using this program I have never had a problem until now. I've been writing some scripts to be run under WinPE (not BartPE) and I've found that the FileInstall function does not work at all. It doesn't error out or anything, just doesn't work. The most recent version I could get it to work with was 3.0.101, anything after that fails including the betas. Perhaps Im just expecting too much?

Thanks for any light anyone can shed on this...

Glowshi

Link to comment
Share on other sites

Even a simple one line script like this

FileInstall ( "test.txt", "C:\Test.txt" )

If I compile it with 3.0.101 or earlier the file shows up where it should. Anything after that and the file won't show up. Im thinking it might just be my company's version of WinPE missing something. Do later versions of FileInstall require different system files than earlier ones?

Link to comment
Share on other sites

  • 1 year later...

I finally got around to figuring this out after reading some other posts dealing with FileInstall. In Microsofts WinPE prior to Vista there is no TEMP environment variable set by default. When FileInstall works it seems to write the file to the %TEMP% directory first and it will fail if %TEMP% doesn't exist or isn't writable. After much pulling my hair out I sit here and wonder why it doesn't just write the file to the directory specified in the FileInstall command rather than relying on the existence of temp directories. If anyone knows Id be interested in the reasoning.

I don't know what I'd do without these amazing forums.

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...