Sign in to follow this  
Followers 0
TheGreatandMightyMe

Install a folder

9 posts in this topic

I'm trying to get a directory to compile with my scrip but it won't work.

This works:

FileInstall("C:\test.exe", $path & "asdf\final.exe")

But this won't:

FileInstall("C:\test\", $path & "asdf\final\")

The help file says just to leave a trailing slash but it give me an error at compile. It works as a .AU3, but it won't compile.

Thanks in advance

Share this post


Link to post
Share on other sites



I'm trying to get a directory to compile with my scrip but it won't work.

This works:

FileInstall("C:\test.exe", $path & "asdf\final.exe")

But this won't:

FileInstall("C:\test\", $path & "asdf\final\")

The help file says just to leave a trailing slash but it give me an error at compile. It works as a .AU3, but it won't compile.

Thanks in advance

read up on fileinstall in the helpfile


[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]

Share this post


Link to post
Share on other sites

Try this

$path = 'D:\test'
FileInstall("C:\test\test.exe", $path & "\asdf\final\final.exe")

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

Share this post


Link to post
Share on other sites

read up on fileinstall in the helpfile

I did. The help file says to leave a trailing slash for a directory install. The problem is it doesn't seem to work. I do use the help file a lot.

Share this post


Link to post
Share on other sites

Try this

$path = 'D:\test'
FileInstall("C:\test\test.exe", $path & "\asdf\final\final.exe")
he wants to install an entire folder, which is impssible...I guess he can zip the folder,

[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]

Share this post


Link to post
Share on other sites

read up on fileinstall in the helpfile

Oops. I guess I should have explained better. This script will have a text file, an exe and a directory that all go to different places. The directory has almost 60 files in it so it wouldn't be a that logical for me to include each one individually.

Share this post


Link to post
Share on other sites

he wants to install an entire folder, which is impssible...I guess he can zip the folder,

You told me to read the help file. The help file says it is possible, but it doesn't work. I think the help file needs to be fixed.

Share this post


Link to post
Share on other sites

You told me to read the help file. The help file says it is possible, but it doesn't work. I think the help file needs to be fixed.

I am trying it now, it wont let me compile the script...

fileinstall(@DesktopDir & "\New Folder", @DesktopDir & "\NewFolder12")


[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

aha in this case i guess the only option is to use loop, get the foldername & all files, convert them into binary data 1 by 1 & make script that auto puts all the failes into autoit .*au3 file:

Get Foldername
While 1
Get file 1 , convert it to binary code, put binary code in new *au3 file
Get file 2 , convert it to binary code, add binary code in *au3 file  etc... 
If no more files then exitloop
wend

now you compile the *.au3 file & it will put all ur files in 1 exe file.

I also recommend you take a look at this topic user Fabry posted nice code that enables yoy to convert file to binary.au3

http://www.autoitscript.com/forum/index.ph...=52712&st=0

Edited by goldenix

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

Share this post


Link to post
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
Sign in to follow this  
Followers 0