Achilles Posted June 17, 2007 Share Posted June 17, 2007 I'm thinking of making a program that actually has a setup and a program files directory and maybe some regedit stuff (or maybe ini) ... However, my unexperienced mind is telling me to send the user a zip file containing a installation exe and a folder with all images and the actual exe contained in it. Then the installation exe would just use a bunch of FileMoves to move everything to program files. However, I have seen that every other installation/setup exe does not do this. They have their exe and it contains everything in it and then puts it into program files. Anybody have any ideas on how I would do this? My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
NELyon Posted June 17, 2007 Share Posted June 17, 2007 "Resources" is the magic word Link to comment Share on other sites More sharing options...
narayanjr Posted June 17, 2007 Share Posted June 17, 2007 i just started writing a pikid program for a game and felt like making like a real program. expandcollapse popupIf Not FileExists("C:\Program Files\ArW-Pikid\Settings.ini") Then DirCreate("C:\Program Files\ArW-Pikid") FileInstall("C:\Program Files\ArW-Pikid\Settings.ini", "C:\Program Files\ArW-Pikid\Settings.ini") FileInstall("C:\Program Files\ArW-Pikid\Read Me.txt", "C:\Program Files\ArW-Pikid\Read Me") ShellExecute("C:\Program Files\ArW-Pikid\Settings.ini") WinWait("Settings - Notepad") While WinActivate("Settings - Notepad") sleep(2000) WEnd EndIf If Not FileExists("C:\Program Files\Diablo II\data\") Then DirCreate("C:\Program Files\Diablo II\data\local\LNG\ENG\") FileInstall("C:\Program Files\ArW-Pikid\NewTbls\expansionstring.tbl", "C:\Program Files\Diablo II\data\local\LNG\ENG\expansionstring.tbl") FileInstall("C:\Program Files\ArW-Pikid\NewTbls\string.tbl", "C:\Program Files\Diablo II\data\local\LNG\ENG\string.tbl") FileInstall("C:\Program Files\ArW-Pikid\NewTbls\patchstring.tbl", "C:\Program Files\Diablo II\data\local\LNG\ENG\patchstring.tbl") FileInstall("C:\Program Files\ArW-Pikid\NewTbls\expansionstring.tbl", "C:\Program Files\ArW-Pikid\NewTbls\expansionstring.tbl") FileInstall("C:\Program Files\ArW-Pikid\NewTbls\string.tbl", "C:\Program Files\ArW-Pikid\NewTbls\string.tbl") FileInstall("C:\Program Files\ArW-Pikid\NewTbls\patchstring.tbl", "C:\Program Files\ArW-Pikid\NewTbls\patchstring.tbl") _FileWriteLog ("C:\Program Files\ArW-Pikid\EventLog.txt", "The folder data did not exist in you Diablo II folder" & @CRLF & _ "and has been created. String.tbl, Patchstring.tbl, and, expansionstring.tbl" & @CRLF & _ "have been added to the new data folder and into the folder Newtbls" & @CRLF & " ") ElseIf FileExists("C:\Program Files\Diablo II\data\") Then If FileExists("C:\Program Files\Diablo II\data\local\LNG\ENG\expansionstring.tbl") Then FileMove("C:\Program Files\Diablo II\data\local\LNG\ENG\expansionstring.tbl", "C:\Program Files\ArW-Pikid\OldTbls\") FileInstall("C:\Program Files\ArW-Pikid\NewTbls\expansionstring.tbl", "C:\Program Files\Diablo II\data\local\LNG\ENG\expansionstring.tbl") FileInstall("C:\Program Files\ArW-Pikid\NewTbls\expansionstring.tbl", "C:\Program Files\ArW-Pikid\NewTbls\expansionstring.tbl") If FileExists("C:\Program Files\Diablo II\data\local\LNG\ENG\string.tbl") Then FileMove("C:\Program Files\Diablo II\data\local\LNG\ENG\string.tbl", "C:\Program Files\ArW-Pikid\OldTbls\") FileInstall("C:\Program Files\ArW-Pikid\NewTbls\string.tbl", "C:\Program Files\Diablo II\data\local\LNG\ENG\string.tbl") FileInstall("C:\Program Files\ArW-Pikid\NewTbls\string.tbl", "C:\Program Files\ArW-Pikid\NewTbls\string.tbl") If FileExists("C:\Program Files\Diablo II\data\local\LNG\ENG\patchstring.tbl") Then FileMove("C:\Program Files\Diablo II\data\local\LNG\ENG\patchstring.tbl", "C:\Program Files\ArW-Pikid\OldTbls\") FileInstall("C:\Program Files\ArW-Pikid\NewTbls\patchstring.tbl", "C:\Program Files\Diablo II\data\local\LNG\ENG\patchstring.tbl") FileInstall("C:\Program Files\ArW-Pikid\NewTbls\patchstring.tbl", "C:\Program Files\ArW-Pikid\NewTbls\patchstring.tbl") _FileWriteLog ("C:\Program Files\ArW-Pikid\EventLog.txt", "Data folder already existed, the tbl files found in data" & @CRLF & _ "have been moved to OldTbls folder. The new tbl files have been placed in the" & @CRLF & _ "existing Data folder and into NewTbls folder." & @CRLF & " ") EndIf EndIf EndIf EndIfoÝ÷ ÚØ^è¬jw±jjezíìÊ'bv+ZºÚ"µÍÚ[ÛYH Ñ[K]LÉÝÂÜX]JÚÝÜ [È ][ÝÉÌLÐËTZÚY ][ÝÊB[R[Ý[ ][ÝÐÎÌLÔÙÜ[H[ÉÌLÐËTZÚY ÌLÔXYYK ][ÝËÚÝÜ [È ][ÝÉÌLÐËTZÚY ÌLÉ][ÝÊB[R[Ý[ ][ÝÐÎÌLÔÙÜ[H[ÉÌLÐËTZÚY ÌLÔZÚY]HË^I][ÝËÚÝÜ [È ][ÝÉÌLÐËTZÚY ÌLÉ][ÝÊ and thats how i made a setup thing, i send Setup pikid.exe and when they run it. It makes a folder on their desktop with a read me and the real program setup that makes a dir in program files and puts ini files and a log file and some of things into the folder hope that is what you were looking for Link to comment Share on other sites More sharing options...
Achilles Posted June 17, 2007 Author Share Posted June 17, 2007 i just started writing a pikid program for a game and felt like making like a real program. ;Code... and thats how i made a setup thing, i send Setup pikid.exe and when they run it. It makes a folder on their desktop with a read me and the real program setup that makes a dir in program files and puts ini files and a log file and some of things into the folder hope that is what you were looking for Yes indeed! I had never tried using FileInstall but you explanation along with a little help from the helpfile and playing around with it has made it clear (seems so simple now)... Thanks My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 17, 2007 Moderators Share Posted June 17, 2007 http://www.autoitscript.com/forum/index.ph...mp;#entry358877 Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Achilles Posted June 17, 2007 Author Share Posted June 17, 2007 http://www.autoitscript.com/forum/index.ph...mp;#entry358877Ahh, that will be useful... make everything a lot shorter.. thanks My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] 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