Custom Bootstrapper Package for Visual Studio 2005 - .msp not installed

Posted on 2009-02-19
Last Modified: 2013-11-14
I have created custom packages for a VS 2005 setup project that checks for MS Access 2003 and MS Office 2003 SP3. All works. I now need to add another package for a hotfix - MSAccess.msp. I have created the package and added it as a prereqisite to the project.
When installing, the bootstrap detects to hotfix is missing and starts the install.
A screens appears that says copying requred files, then another saying installing, then another saying configuring but the hotfix is not installed.
I have attached the product.xml file - change to .txt entension to enable loading

Any assistance would be greatly appreciated.
Question by:bruce_PTS
    LVL 38

    Expert Comment

    See primary and secondary questions and sample custom bootstrapper at this link:
    Relevant excerpt:
    After fishing around I was able to build a custom bootstrap for the prerequsites I need which is not part of VS 2005.   The root problem is I need info from Microsoft on what to look for to see if the 3 hotfixes need to be installed. There is no information as to what registry settings or ??? to look for. Also, the actual install files are not on Microsoft's website so they must always be copied to the directory the bootstrapper is in - so no optional download.  Note that ComponentsLocation is set to Relative.

    <Target Name="Bootstrapper">
          ApplicationFile="app.msi" ApplicationName="My app"
          BootstrapperItems="@(BootstrapperFile)" OutputPath="bin"
          ComponentsLocation="Relative" Culture="pt-PT"
          Path="$(BootstrapperPath)" />    

    Author Comment

    Hi puppydogbuddy,
    Thanks for the response. I am still working on this. Your solution did not really resolve the issue. I a doing cd install with the additional components on the cd. I have successfully created packages for MSAccess 2003 runtime, Office 2003 SP3 in the bootstrap. The version of the MSAccess.exe indicates if the patch has been installed. I am detecting that it has not been installed, a screen then displays saying prparing to install but then it just finishes. I think I may have to add additional commands in the package.xml as the hotfix I am tring to install is not a .msi file but a .msp.
    I am hoping that will resolve it. When I do some additional testing next week I will post my findings.

    Accepted Solution

    I managed a work around. In the Office 2003 SP3 there are 3 files: ohotfix.exe, ohotfix.dll and ohotfix.ini. These are in addition to the other.msp files.
    I modified some properties in the ini file to suit the MSAccess hotfix - basically just the name.
    In the bootstrap, I opened package.xml and updated the package files to include these additional files,
        <PackageFile Name="ohotfix.exe" HomeSite="ohotfix.exe"/>
        <PackageFile Name="ohotfix.ini" HomeSite="ohotfix.ini"/>
        <PackageFile Name="ohotfixr.dll" HomeSite="ohotfixr.dll"/>
        <PackageFile Name="MSACCESS.msp" HomeSite="MSACCESS.msp"/>

    then set the command to execute the ohotfix.exe

    <Command PackageFile="ohotfix.exe"

    This successfully installs the patch.
    I think the problem is the inbuilt commands the the installer uses to execute msi file do not support msp files. You must use an executable to fire the msp. Instead of writing my own I re-used the one from Microsoft.
    I hope this helps someone else.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
    I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
    Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
    In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now