Author Topic: Tutorial on Installation Packaging?  (Read 11603 times)

Offline Ghreyfain

  • PPG
  • Planewalker
  • *****
  • Posts: 4705
  • Gender: Male
    • Pocket Plane Group
Re: Tutorial on Installation Packaging?
« Reply #25 on: January 24, 2005, 12:46:39 AM »
Quote
Unfortunately, it's generally spoiled somewhat by the auto-update procedure not being able to rerun the EXE, but there's nothing to be done about that.

Nothing? Here's a batch file (let's call it "weidu-wrap.bat"). Have your NSIS run it instead of Setup-Foo.exe. It will automatically re-run Setup-Foo.exe if WeiDU had to auto-update itself.

Code: [Select]
@ECHO OFF
COPY setup-foo.exe backup-setup-foo.exe
setup-foo.exe
FC /LB1 setup-foo.exe backup-setup-foo.exe > nul
IF ERRORLEVEL 1 GOTO RETRY
GOTO DONE
:RETRY
PAUSE > nul
CLS
setup-foo.exe
:DONE
ERASE backup-setup-foo.exe

If your mod isn't Setup-Foo.exe you'll have to change it, of course.

I just tried this, and the behaviour wasn't quite as expected.

I have weiDU version 171 as setup-sirinescall.exe, and setup-beregost.exe is v172.  I edited the .bat to use setup-sirinescall.exe instead of foo, and then tried running it.  It made a backup-setup-sirinescall.exe file, ran the setup-sirinescall.exe, which updated itself as normal and gave the message "I can't be re-run, you'll have to do it manually, etc.".  Then I tried hitting enter, but that didn't do anything, so I had to close down the window, whereupon nothing at all happened.  The newly updated v172 .exe wasn't run, and backup-sirines-call.exe wasn't deleted, either.
Earn Money Sleeping.

Offline Ghreyfain

  • PPG
  • Planewalker
  • *****
  • Posts: 4705
  • Gender: Male
    • Pocket Plane Group
Re: Tutorial on Installation Packaging?
« Reply #26 on: January 24, 2005, 12:47:47 AM »
Oh, wow, wtf?  I hit enter twice while trying it again, and this time it worked.
Earn Money Sleeping.

Offline lennon

  • Planewalker
  • *****
  • Posts: 71
  • Gender: Male
Re: Tutorial on Installation Packaging?
« Reply #27 on: January 24, 2005, 08:14:52 AM »
I for one hate self-extracting .exe's with a passion, especially when they can't even be opened in WinZip/WinRar.

if I can get NSIS to work, which should be possible, I'm not exactly non technical, I propose to offer both a .exe and .zip.

Curious about SimDing0's comments. Is winrar shareware? My reading of their distribution rights is that you must pay to use after a trial period & purpose ? Am I worng?

Why have G3 gone winrar only? (or s G3 a better place to chat about this?)

Offline CamDawg

  • Infidel
  • Planewalker
  • *****
  • Posts: 834
  • Dreaming of a red Xmas
    • The Gibberlings Three
Re: Tutorial on Installation Packaging?
« Reply #28 on: January 24, 2005, 09:43:40 AM »
I've been following the thread, it's just  everyone has already decided what they're going to use already and I didn't think posting would accomplish anything. :) And yeah, Oversight is now in SFX-RAR as of v4.

I prefer SFX-RAR over NSIS because it can be extracted in a conventional fashion by WinRAR as there will always be folks inherently distrustful of exe packages (or just luddites) and wish to do their own extraction. I also don't like distributing a mod for a multi-platform game in a platform-specific package, though this is really more of a principles thing than a practical consideration--looking at the ratio between our OS X and PC distribution downloads, OS X users are the minority as JC suggests. The tradeoff is that the SFX-RAR packages do not truly detect the BG2 path in the same way an NSIS package does; we just populate the default path to equal the default BG2 path (or IWD or BG, depending). I find the tradeoff acceptable.
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.

Offline SimDing0

  • Back In Black
  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3496
  • Gender: Male
  • Word Enhancer
Re: Tutorial on Installation Packaging?
« Reply #29 on: January 24, 2005, 09:55:23 AM »
Do your SFX-RARs automatically run WeiDU afterwards? Mine certainly don't, and I think that's a more significant advantage than detecting the installation path.

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7244
Re: Tutorial on Installation Packaging?
« Reply #30 on: January 24, 2005, 10:05:59 AM »
Do your SFX-RARs automatically run WeiDU afterwards? Mine certainly don't, and I think that's a more significant advantage than detecting the installation path.

And I happen to think doing both is an even greater advantage.

(And I happen to think "Delivering mods intravenously since April 2002" is a fine slogan.)
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

Offline CamDawg

  • Infidel
  • Planewalker
  • *****
  • Posts: 834
  • Dreaming of a red Xmas
    • The Gibberlings Three
Re: Tutorial on Installation Packaging?
« Reply #31 on: January 24, 2005, 10:13:51 AM »
Do your SFX-RARs automatically run WeiDU afterwards?
Yes, they do.
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.

Offline SimDing0

  • Back In Black
  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3496
  • Gender: Male
  • Word Enhancer
Re: Tutorial on Installation Packaging?
« Reply #32 on: January 24, 2005, 10:18:06 AM »
scripts plz  :) :) :) :) :) :)

Offline jester

  • Here be dragons...
  • Planewalker
  • *****
  • Posts: 2416
  • If you fail, fail gloriously.
Re: Tutorial on Installation Packaging?
« Reply #33 on: January 24, 2005, 10:18:27 AM »
I might not be a good example, but whenever I do a complete overhaul, I extract every single WeiDU mods I can get my hands on into the appropriate folder. Then I open one to start the auto-updating carnage. Yes, some mods are still in version xx. :P So autostart is not that purrfact for my style of installing, but I am williing to concede that I am even outnumbered by Apple users. So don't start listening to me now. :D
People should not be afraid of their governments. Governments should be afraid of their people.

Why spend all your day surfing for porn?




Balance in all things
I haven't had this much fun since... the last time.

Offline CamDawg

  • Infidel
  • Planewalker
  • *****
  • Posts: 834
  • Dreaming of a red Xmas
    • The Gibberlings Three
Re: Tutorial on Installation Packaging?
« Reply #34 on: January 24, 2005, 10:29:40 AM »
It's a pinned topic in the G3 Commom Workroom, Ding0! :p
« Last Edit: January 24, 2005, 10:33:03 AM by CamDawg »
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.

Offline SimDing0

  • Back In Black
  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3496
  • Gender: Male
  • Word Enhancer
Re: Tutorial on Installation Packaging?
« Reply #35 on: January 24, 2005, 10:30:23 AM »
Shh. You're not supposed to tell Compton I can see that.

Offline lennon

  • Planewalker
  • *****
  • Posts: 71
  • Gender: Male
Re: Tutorial on Installation Packaging?
« Reply #36 on: January 24, 2005, 10:32:51 AM »
I've never used a Mac,

1. so  why is rar better than .zip
2. is .zip OK for mac-users & is it enough?

I didn't find any scripting capability for rar(which I know doesn't mean its not there)  and I still think that either the modder or the customer's use of *rar would attract a fee liability, although I'm willing to be put right  ;)


Offline CamDawg

  • Infidel
  • Planewalker
  • *****
  • Posts: 834
  • Dreaming of a red Xmas
    • The Gibberlings Three
Re: Tutorial on Installation Packaging?
« Reply #37 on: January 24, 2005, 10:41:41 AM »
RAR offers better compression than zip (though is marginally less known and popular) and while WinRAR will nag about registration, there are still free RAR-file handlers. If you're distributing in SFX-RAR, it's no burden for the users as they do not need an uncompression program--though you will to create them.

As for the OS X folks, that's better answered by an actual OS X folk like devSin or Loriel. It's my understanding that the included OS X default uncompression program can handle zip files, and (I think) rar files. There are a number of programs for OS X that can handle both, though. StuffIt (SIT) files would be their first choice, I believe, though I've never encountered anything for the PC that can make SIT files.

edit: Scratch that, it appears StuffIt is available for Windows. So let me amend the last statement to read "I've never encountered anything free for the PC that can make SIT files."
« Last Edit: January 24, 2005, 10:44:09 AM by CamDawg »
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.

Offline Loriel

  • Planewalker
  • *****
  • Posts: 390
  • Gender: Male
    • Loriel's Downloads
Re: Tutorial on Installation Packaging?
« Reply #38 on: January 24, 2005, 03:36:44 PM »
@lennon
CamDawg is right on the money about Mac compression.  Stuffit Expander comes packaged on most Macs, and can handle almost any form of raw compression.  If it's compression with a self-expander, YMMV.  Stuffit Expander will handle all .zip's and most .rar's, though.  I say most, because there are still a few auto-run .rar's that Stuffit can't/won't open.  If you download any of the OSX- prefixed G3 mods, they are great examples of a .rar package that does work.

[SHAMELESS SELF-PROMOTION]
I am currently offering to repackage mods in a .pkg/.dmg format for Mac-users.  For those who don't know, a .pkg is an installer package and a .dmg is a disk image.  Both are Mac-specific pre-packaged formats and are the best (most user-friendly) for distribution.  Although you can simply release your mod in a .zip or other format, Mac-users covet user-friendliness over all other qualities.  For most Mac-users, the sight of the Terminal window is enough to make us run screaming.  If you want to support your Mac OS X following, the best thing you can do is make it easy for them to install your mod.  Here's what you get when I package it for you:

1)  Mac-friendly distribution that doesn't require any third party software for installation.
2)  The most user-friendly installation a WeiDU mod can get (double-click).
3)  Auto-detection of the mod's install status.  This is important on a Mac, since copying over the new mod will completely replace the old backup directory, making it impossible to uninstall properly.  This feature will automatically uninstall the mod, if needed, before installing a new version.

Requests can be sent to loriel@quixjote.com
[/SHAMELESS SELF-PROMOTION]

Offline lennon

  • Planewalker
  • *****
  • Posts: 71
  • Gender: Male
Re: Tutorial on Installation Packaging?
« Reply #39 on: May 11, 2011, 02:17:21 PM »
I started this thread, a long time ago, and as a result of the advice, created an NSIS installer for my Perils of Branwen mod.

Long story short, my web server blew up and it has taken me 11 months to recover it.  >:(

In the process of coming back on line, I found an unpublished article on NSIS which I have placed on my bliki, here..., its not that exciting, and I summarise it as,

Quote
The summary is that it was more difficult to install and understand than I wanted, but using Jason's script as a guide wasn't so hard.

Thanks to everyone who helped me get there, albeit 6 years ago  ;) It's the right way to go, but I offer people a choice since many people will wish to study a patch before installing it, and WRT to the MAC comments, I now have one, as do many more people than once was the case.

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: Tutorial on Installation Packaging?
« Reply #40 on: May 12, 2011, 12:42:03 AM »
Yeah, NSIS packaging all the way. :) The only thing a new user needs is to remember to set the archive settings to LZMA solid and read this post by SConrad(I built all my scripts on it):

http://forums.pocketplane.net/index.php/topic,18071.msg242070.html#msg242070

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: