David,
They sell a COM component that can be used from just about any language,
including VBScript. Here's the script I use, with some junk X'd out, and it
just gets invoked from the build tool. Note I have not migrated to MSBUILD
GenerateBootstapper... left as an exercise for the reader :). This script
was taken, pretty much word for word, from one of their examples.
' Create EXE script
set zip = CreateObject("ChilkatZip2.ChilkatZip2")
zip.UnlockComponent "XXXXXXXXXXXXXXXXXXXXXXX"
' Set this property to use an icon for the EXE that is created.
zip.ExeIconFile = "C:\XXXXXXXXXXXXXXXXX\MyProgam.ico"
' Use this property to automatically unzip when the EXE is double-clicked.
' 1 = EXE has no interface, 0 (the default) = EXE includes default interface
window
zip.ExeNoInterface = 0
zip.ExeTitle = "A Nice title here"
zip.ExeUnzipCaption = "Extracting installation files..."
' Causes the EXE to run a program (that was contained within the EXE)
' immediately after extracting.
zip.AutoRun = "PSetup.exe"
zip.AutoRunParams = "/log /uionlyifneeded"
' Causes the creation of an EXE that has no interface,
' and automatically selects a temporary directory for
' unzipping.
zip.AutoTemp = 1
zip.DiscardPaths = 1
' Initialize the Zip object and add some files.
zip.NewZip "zipFilenameNotUsedBecauseAnExeIsCreated.zip"
' Refer to http://www.chilkatsoft.com/refdoc/xChilkatZip2Ref.html
' for documentation on all properties and methods.
zip.AppendOneFileOrDir "C:\XXXXXXXXXXXXX\bin\Release\XXXXXX.msi", 0
zip.AppendOneFileOrDir "C:\XXXXXXXXXXXXX\PSetup\PSetup.exe", 0
zip.AppendOneFileOrDir "C:\XXXXXXXXXXXXX\PSetup\PSetup.ini", 0
zip.AppendOneFileOrDir "C:\XXXXXXXXXXXXX\PSetup\Unicows.dll", 0
zip.WriteExe "C:\XXXXXXXXXXXXX\bin\Release\MySetup.exe"
As to how many licenses you will need... you will have to read their eula
and so forth. I think (but could be wrong) they said "build machines don't
count" (or words to that effect). So all you may need is a single developer
license (the guy who writes your version of the VBScript above). A 5 minute
phone call to them might also be illuminating.
Regards,
Rob
________________________________
From: David Thielen [mailto:[EMAIL PROTECTED]
Sent: Friday, December 15, 2006 6:11 PM
To: Rob MacFadyen; [email protected]
Subject: RE: [WiX-users] zip program for bootstrapper & msi
Correct me if I'm wrong - I looked at this approach. But what they sell is a
dll so I then have to write a program that uses that dll to create the exe
program. If they had a command line program that did this I'ld happily pay
$199.00 * 3 (2 dev, I build system) for this.
Thanks - dave
David Thielen
www.windwardreports.com
303-499-2544 x1185
Cubicle Wars - http://www.windwardreports.com/film.htm
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rob MacFadyen
Sent: Friday, December 15, 2006 1:09 PM
To: [email protected]
Subject: Re: [WiX-users] zip program for bootstrapper & msi
The ChilKat ZipToSecureExe is a _demo_ of their commercial ZIP component.
The commercial zip component allows for lots of things that are not part of
the free demo. Here's a link to the docs:
http://www.chilkatsoft.com/refdoc/xChilkatZip2Ref.html
Of specific interest: Changing icon, changing unzip directory.
On whole I found it a worthwhile purchase, and inexpensive at
$149/developer.
For version # updating you can do this yourself... but you'll need to
investigate opening and writing resource sections in an EXE. I _know_ it can
be done with system calls from C/C++... I just can't recall the reference
(somewhere in msdn... maybe near/around PE File Format?). A quick google on
"write version resource in exe" also turned up this tool which seems to be
exactly what you need:
http://www.heaventools.com/command-line_resource_editor.htm
The $199 price seems a bit high... but if you don't want to spend a couple
of days mucking around with C/C++ then it's a steal.
Regards,
Rob
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Thielen
Sent: Friday, December 15, 2006 2:04 PM
To: John Vottero; [email protected]
Subject: Re: [WiX-users] zip program for bootstrapper & msi
Same issues we have with Chilkat - caption, icon, & version (I forgot about
that). So looks like we both are at the same point.
Thanks - dave
David Thielen
www.windwardreports.com
303-499-2544 x1185
Cubicle Wars - http://www.windwardreports.com/film.htm
________________________________
From: John Vottero [mailto:[EMAIL PROTECTED]
Sent: Friday, December 15, 2006 11:49 AM
To: David Thielen; [email protected]
Subject: RE: [WiX-users] zip program for bootstrapper & msi
Ok, I looked into the details because this is working for us. We use
IExpress to compress everything into a single executable. You probably
already have IExpress, I believe that it's part of IE. IExpress lets you
specify a setup command (AppLaunched) and a post install command
(PostInstallCmd). We run the MSBuild/GenerateBootstrapper with AppLaunched
and we run our bootstrapper/installer with the PostInstallCmd.
The things I don't like about IExpress are:
- Command line support is weak
- You can't change the executable's Icon
- You can't change the executable's tooltip description
- You can't change the executable's version
________________________________
From: David Thielen [mailto:[EMAIL PROTECTED]
Sent: Friday, December 15, 2006 1:18 PM
To: John Vottero; [email protected]
Subject: RE: [WiX-users] zip program for bootstrapper & msi
The only problem is it's Microsoft's bootstrapper from
MSBuild/GenerateBootstrapper so I have no control over that.
Thanks - dave
David Thielen
www.windwardreports.com
303-499-2544 x1185
Cubicle Wars - http://www.windwardreports.com/film.htm
________________________________
From: John Vottero [mailto:[EMAIL PROTECTED]
Sent: Friday, December 15, 2006 8:19 AM
To: David Thielen; [email protected]
Subject: RE: [WiX-users] zip program for bootstrapper & msi
I don't think your bootstrapper should exit until the msi is done
installing.
________________________________
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Thielen
Sent: Friday, December 15, 2006 2:16 AM
To: [email protected]
Subject: [WiX-users] zip program for bootstrapper & msi
Hi;
Can anyone suggest one to use to unzip the 2 files and then
launch the bootstrapper?
* Winzip won't work because it deletes the unzipped
file as soon as the first exists - so the msi will be deleted when the
bootstrapper completes and spawns it.
* Chilkat doesn't run will in a build script (file is
still locked when it returns, can't set the caption or icon).
??? - thanks - dave
David Thielen
www.windwardreports.com
303-499-2544 x1185
Cubicle Wars - http://www.windwardreports.com/film.htm
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users