How to Convert an InstallScript Project to InstallScript MSI

A few days ago I was asked how to convert an InstallScript project to InstallScript MSI. The reason for the conversion was to gain access to the ODBC view in the IDE. It’s present in Windows Installer-based projects, but not in InstallScript.

InstallShield does have some built-in project converters. Just go to the Projects menu, point to Project Converters, and select one of the converters. You can do any of the following:

  • Convert a Basic MSI project to InstallScript MSI.
  • Convert an InstallScript MSI project to InstallScript.
  • Convert a Compact project to Basic MSI.

You will notice there is one glaring omission in the list. There is no converter to go from InstallScript to InstallScript MSI. Gee, I bet you wish they would have done that.

In the absense of a converter, you will have to resort to manual conversion. If I had to do the conversion, here are the tasks I would do, and the order I would do them:

  1. Create the InstallScript MSI project.
  2. Copy the code in Setup.rul from the InstallScript project and paste it into Setup.rul in the InstallScript MSI project. An alternate method is to just copy the Setup.rul file from the InstallScript Scripts folder, and overwrite the Setup.rul in the InstallScript MSI Scripts folder. You may have other script files and/or include files that need to be copied.
  3. Export any Custom Dialogs from the InstallScript project and then import then into the InstallScript MSI project.
  4. Create the same Features in the InstallScript MSI project that you have in the InstallScript project.
  5. Create the same Components in the InstallScript MSI project that you have in the InstallScript project.
  6. Add the Files to the new Components in the InstallScript MSI project.
  7. Create any needed Shortcuts in the InstallScript MSI project.
  8. Create any needed Registry entries in the InstallScript MSI project.
  9. Create the necessary Releases in the InstallScript MSI project.
  10. To be safe, go through all the Views in the InstallScript project and make sure the same views are filled out in the InstallScript MSI project.

Now, this conversion process could be relatively easy or it could be a nightmare. It all depends on the complexity of your original InstallScript project.

 

Be Sociable, Share!

Comments

  1. says

    I’ve followed that steps and everything seemed to be ok, but in Setup.rul we use ADDREMOVE system variable and now debugger says that is not defined… What’s happen?

Leave a Reply

Your email address will not be published. Required fields are marked *