Page 1 of 1
Custom MS Office installer
Posted: Sun Feb 04, 2007 9:43 am
by paul.griffiths
Right,
I need to create a custom installer that incoroporates the following:
1. Check for MS Outlook 2003, if not present, install.
2. Check for XP SP2 and if not present, install.
I have built a custom Outlook installation using the "Office Custom Installation Wizard" which sets up the configuration and incorporates the License Key etc. Can i use the msi Import to easily use this?
I have the XP SP2 .exe installer, I know there is a command to check for XP SP2 but can i then call an .exe?
Any help would be much appreciated. Cheers guys
Posted: Sun Feb 04, 2007 2:00 pm
by MichaelNesmith
Hey Paul,
Get System Settings can be used to check for a minimum configuration.
Get OS or SP Level can be used to check for an exact configuration.
Run Program or Run Program As can be used to run a program.
(Un)Install MSI Setup can be used to install or remove an MSI file.
You can definitely try the MSI Import Tool also...but I think just using script commands like the above, and also lets add Read Registry and Write Registry to the mix, would be even more straightforward.
Posted: Sun Feb 04, 2007 4:16 pm
by paul.griffiths
Thanks for the reply.....since posting I have been looking into this in more detail and have discovered the Get OS & SP commands. Brilliant....
However I have some further questions now;
1. I will set the installer up so it calls the .msi file, however as i have already made modifications and created a .mst file that is specified in the setup.ini will the instllAware app take this into account or only look at the .msi file?
2. When using the (un)install MSi Package command it asks for a path to: "Windows Installer setup database file" Where do I find that??
3. What do I need to put in the "action String" parameter? Is clicking the "install" button enough?
4. When i check for XP SP2 and find it not there I will call the .exe installer. When this finishes it will want to reboot the machine, how do i tell the secondary installer (SP2) to go back to the installAware installer before rebooting?
I really am everso greatful for all your help.
Paul
Posted: Mon Feb 05, 2007 1:13 am
by MichaelNesmith
1. I think you may need to pass the MST file as part of the command line when installing the MSI file.
2. You can add the MSI to your project as a support file, and then use the path $SUPPORTDIR$\\msifile.msi to refer to the MSI.
3. ADDLOCAL=ALL will install all MSI features. You can also add the transform or specify any additional command line parameters you want to the MSI.
4. You need to discover the command line parameters for the SP2 installer and determine which value it returns when a reboot is required. This is typically 3010 for most Microsoft EXE setups when a reboot is required, 0 for success, and any other number indicates an error during installation.
Posted: Mon Feb 05, 2007 2:38 am
by paul.griffiths
Hi Michael,
Ok so my command line parameter will look a little like this:
ADDLOCAL=ALL TRANSFORMS="\\\\$dir$\\Outlook.MST"
Will this be ok?