topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday April 17, 2024, 11:46 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Create simple installation file.  (Read 9042 times)

Coeluh

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
  • Family Guy ^^
    • View Profile
    • Jeroen Coelen
    • Donate to Member
Create simple installation file.
« on: May 21, 2009, 04:56 AM »
I was wondering, can I create a installation file which:

Puts some files in a user specified folder
Puts some files in a my documents sub folder

Is that hard to create?

argv

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 45
    • View Profile
    • Donate to Member
Re: Create simple installation file.
« Reply #1 on: May 21, 2009, 08:40 AM »
I suggest you to take a look to InnoSetup: http://www.jrsoftware.org/isinfo.php

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: Create simple installation file.
« Reply #2 on: May 21, 2009, 03:16 PM »
I suggest you to take a look to InnoSetup: http://www.jrsoftware.org/isinfo.php

I second that.  You can even skin the resulting Setup file for free using ISSkin.


mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Create simple installation file.
« Reply #3 on: May 21, 2009, 03:22 PM »
Inno Setup is a great setup tool, and very flexible..

BUT.. it is not very easy for novices to use, even with the essential ISTool helper utility (which makes it a lot easier):
http://files.jrsoftw...ack/ispack-5.2.4.exe

If you try Inno/ISTool and find it frustrating, don't give up on your journey -- it just means you need to find an easier to use free tool.  Hopefully someone else will recommend one in subsequent post.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: Create simple installation file.
« Reply #4 on: May 21, 2009, 04:11 PM »
Try Softpedia.com for simple free setup creators.

Usually there will be some macro for the Documents folder or you can get it using the %personal% environment variable.

edit: also if you go to AutoIt3 forum I'm sure there are installers with source code.  You can probably use one as-is to do this job or just add a few lines to the source.  This task is so simple you could really do it with batch scripting.



« Last Edit: May 21, 2009, 06:20 PM by MilesAhead »

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,884
    • View Profile
    • Donate to Member
Re: Create simple installation file.
« Reply #5 on: May 21, 2009, 04:15 PM »
The free version of Advanced Installer can do it. (I love this app!)

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,832
    • View Profile
    • Donate to Member
Re: Create simple installation file.
« Reply #6 on: May 21, 2009, 05:20 PM »
<a href="http://nsis.sourcefo...et/Main_Page>NSIS</a> and <a href="http://hmne.sourceforge.net/">NIS Edit</a>

NIS Edit includes a wizard that generates a basic script which you can then modify (that's what got me started...)

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: Create simple installation file.
« Reply #7 on: May 22, 2009, 01:38 AM »
Clickteam's Install Creator.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: Create simple installation file.
« Reply #8 on: May 22, 2009, 11:26 AM »
Seems in this case the only "install" part is creating a folder under Documents. Assuming a zip with instructions to "unpack to a folder of your choice" is sufficient for that part, then in AutoIt3 it would be
If Not FileExists(@MyDocumentsDir & "\MyFolderName") Then
  DirCreate(@MyDocumentsDir & "\MyFolderName")
EndIf

;then use FileCopy to copy any files to the folder

Coeluh

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
  • Family Guy ^^
    • View Profile
    • Jeroen Coelen
    • Donate to Member
Re: Create simple installation file.
« Reply #9 on: May 23, 2009, 05:39 AM »
Thanks for all the replies!