3

We have existing MSI created using InstallShield 9.0. This MSI installs some .NET assemblies in target installation directory.

We have changed some functionality of application and so a few assemblies have been changed. Now we want to edit/update the MSI to have the latest of those modified assemblies. How to do it now?

Can Orca be used for it? If yes, can you point me to some useful link where I can find instructions/guide?

If someone can guide in editing MSM (merge module) using Orca, even that would be fine.

Note: We need to edit existing MSI due to strange request from customer. Otherwise, releasing a patch is good option, I know.

Learner
  • 4,661
  • 9
  • 56
  • 102
  • 2
    I'm pretty sure that because of the way MSI works the answer will be "yes, but it would be a bad idea". Why can you not just rebuild your InstallShield MSI project using the new assembly? – Justin Nov 21 '11 at 11:08
  • @Justin: +1 for your comment. I agree with you but due to some reasons we need to update the existing one instead of rebuilding new one. Can you please help on that ? – Learner Nov 21 '11 at 11:54
  • As Cosmin mentioned, you would need to update the information in File Table, CAB archives; modification to Components table could be required. Repackaging with the updated files and keeping the ProductCode is the simplest solution, if the number of files to update is more than 3–5. – Alexey Ivanov Nov 21 '11 at 19:37

2 Answers2

1

You cannot simply edit the MSI because file information is stored in multiple places in your installer (File table, Components table, CAB archives etc.).

The recommended approach is to create a new version of your installer as a major upgrade. Basically, in your original InstallShield project you increase the Product Version and change the Product Code.

This way your new installer will automatically uninstall the old one. Whatever request your client has, a new version shouldn't be a problem.

Cosmin
  • 21,216
  • 5
  • 45
  • 60
  • Thanks for your answer and I agree with you. But could you please help in editing the "existing" one? That's a strange thing but customer demand after all ! :) – Learner Nov 21 '11 at 11:55
  • Editing the existing MSI to modify source files is not feasible. You can try rebuilding your old project with the new files. – Cosmin Nov 21 '11 at 12:35