Jump to content

Fileinstall - file not installing when complied


Kaso
 Share

Recommended Posts

FileInstall("C:\favorite.url", @FavoritesDir, 1)

When I "Go" it installs the shortcut to the favorites directory. however when compling and running the exe it does not. I tried a txt file to install to see if it didn't like the .url file. But same result. Whats the explaination for it?

Link to comment
Share on other sites

it has to be:

FileInstall("C:\favorite.url", @FavoritesDir & "favorite.url", 1)

you forgot the "favorite.url" and to connect @FavoritesDir and "favorite.url" you need the & sign. you can just copy the one i made above, but i also like to explain why it has to be like that.

suc6!

Link to comment
Share on other sites

FileInstall("C:\favorite.url", @FavoritesDir & "\", 1)

The destination path with trailing backslash.

does it work with just the path and not the destination filename? i know the helpfile designates the second parameter as "The destination path with trailing backslash." but i've always used the filename too, just because of the example included for that function. I guess i could have just tested it, but i've already typed all of this up...
Link to comment
Share on other sites

I tried to compile the following

FileInstall("c:\abc.url", @favoritesdir & "\", 1)

and got this error

error adding file:

c:\abc.url

I don't get it, the url file is in the root dir. any help would be appreciated. There is sooo much to Autoit. learning so much everyday

Edit.

Never Mind I figured it out. It had something to do with the way I made the shortcut. I deleted it and renamed it. All is well

Edited by Kaso
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...