Thatsgreat2345 Posted December 7, 2005 Share Posted December 7, 2005 (edited) Is there a way to install a folder instead of just a file??? or do i have to just get every name of every file in the folder and install them i was just thinking couldnt i make a selfextracting win zip that would extract to the program files? Edited December 7, 2005 by thatsgreat2345 Link to comment Share on other sites More sharing options...
MHz Posted December 7, 2005 Share Posted December 7, 2005 You could do it by a RightClick with my made with AutoIt CMenu program. It has AutoIt Archive Script item in your contextmenu.Example of generated script just made:; Source files are in "D:\Documents and Settings\Desktop\WinCAB\" ; Choose folder to extract to without trailing backslash Global $ArchiveExtractDir = '' Func _ArchiveInstall() Run($ArchiveExtractDir & '\setup.exe') EndFunc Func _ArchiveRemove() Return DirRemove($ArchiveExtractDir, 1) EndFunc Func _ArchiveExtract() Local $AED = $ArchiveExtractDir If DirCreate($AED) Then FileInstall('WinCAB\Bugs.txt', $AED & '\', 1) FileInstall('WinCAB\Faq.txt', $AED & '\', 1) FileInstall('WinCAB\File_id.diz', $AED & '\', 1) FileInstall('WinCAB\License.txt', $AED & '\', 1) FileInstall('WinCAB\makecab.exe', $AED & '\', 1) FileInstall('WinCAB\Readme.txt', $AED & '\', 1) FileInstall('WinCAB\Register.txt', $AED & '\', 1) FileInstall('WinCAB\Whatsnew.txt', $AED & '\', 1) FileInstall('WinCAB\WinCAB.cnt', $AED & '\', 1) FileInstall('WinCAB\WinCAB.exe', $AED & '\', 1) FileInstall('WinCAB\WinCAB.GID', $AED & '\', 1) FileInstall('WinCAB\WinCAB.hlp', $AED & '\', 1) FileInstall('WinCAB\WinCAB_original.exe', $AED & '\', 1) Return 1 EndIf EndFuncMakes life easier. Ofcourse you could make an SFX as you mentioned. Link to comment Share on other sites More sharing options...
PartyPooper Posted December 7, 2005 Share Posted December 7, 2005 AFAIK, if you intend using AutoIt (FileInstall) then yes, every filename must be individually installed. I found FileInstall tedious and too prone to error (human) so I've gone back to using a self-extracting zip file to install resources. Link to comment Share on other sites More sharing options...
peter1234 Posted December 7, 2005 Share Posted December 7, 2005 (edited) If they are not zipped you can use DirCopy. Edited December 7, 2005 by peter1234 Link to comment Share on other sites More sharing options...
PartyPooper Posted December 7, 2005 Share Posted December 7, 2005 No, I believe the OP meant at install time. DirCopy and FileCopy won't work in this case because the files won't have been extracted from the executable yet. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now