Jump to content

FileInstall troubleshooting


Recommended Posts

Why would this not install to a folder under the Program Files directory? It works fine if I use @TempDir, but fails if I use @ProgramFilesDir or even have the full path as below.

FileInstall("FILES\INI_Write.vbs", """C:\Program Files\ConfigIP\INI_Write.vbs""", 1)
    Sleep(100) 
    RunWait(@comspec & " /c Wscript.exe " & """C:\Program Files\ConfigIP\INI_Write.vbs""", "C:\", @SW_HIDE)
Link to comment
Share on other sites

  • Developers

I originally thought the same thing, but this is with an administrator login on XP Pro.  I checked the Program File dir and the permissions as they are set should allow it to run.

<{POST_SNAPBACK}>

Try it without the extra "" ... don';t think it works with that:

FileInstall("FILES\INI_Write.vbs", "C:\Program Files\ConfigIP\INI_Write.vbs", 1)

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

Try it without the extra ""  ... don';t think it works with that:

FileInstall("FILES\INI_Write.vbs", "C:\Program Files\ConfigIP\INI_Write.vbs", 1)

<{POST_SNAPBACK}>

Thanks!

It's wierd. If I use @ProgramsFileDir for the DirCreate line, but then write out the path as just below for the FileInstall line, it works.

DirCreate(@ProgramFilesDir & "\ConfigIP")
FileInstall("FILES\INI_Write.vbs", "C:\Program Files\ConfigIP\INI_Write.vbs", 1)

But if I use @ProgramFilesDir for both lines, it creates the directory but won't install the file.

;) 
DirCreate(@ProgramFilesDir & "\ConfigIP")
FileInstall("FILES\INI_Write.vbs", @ProgramFilesDir & "ConfigIP\INI_Write.vbs", 1)

I had tried with just 1 set of quotes before as you suggested and was getting errors like..."cannot find C:\Program" So I was trying with double quoting, but still wasn't getting the needed results.

Thanks!

Link to comment
Share on other sites

  • Developers

But if I use @ProgramFilesDir for both lines, it creates the directory but won't install the file.

;) 
DirCreate(@ProgramFilesDir & "\ConfigIP")
FileInstall("FILES\INI_Write.vbs", @ProgramFilesDir & "ConfigIP\INI_Write.vbs", 1)

I had tried with just 1 set of quotes before as you suggested and was getting errors like..."cannot find C:\Program"  So I was trying with double quoting, but still wasn't getting the needed results.

<{POST_SNAPBACK}>

Maybe not so strange since you missed the \ .....

try: @ProgramFilesDir & "\ConfigIP\INI_Write.vbs"

:)

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

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