1

I have msi installer and now I want to update or add a text file in to installer from msiexec.exe . How I can do it?

I am able to extract it from following command :

msiexec /a c:\abc.msi TARGETDIR=C:\EXTRACTHERE /qn

But now I want create a MSI again after inserting a new text file .Is there any reverse command?

Any one can help me?

Rohit
  • 53
  • 7

1 Answers1

0

No, once you create an administrative installation there is no way to turn it back into a single MSI. You could create a utility that uses the underlying APIs to create a new MSI but you'd lose the original digital signatures if present.

Christopher Painter
  • 54,556
  • 6
  • 63
  • 100
  • It has not any digital signature. Can you give me a command to turn back into a single MSI. – Rohit Sep 14 '13 at 16:40
  • As I said, there is no "command". You'd have to write a program to do it. – Christopher Painter Sep 14 '13 at 18:05
  • I have actually done this using Wise for Windows Installer. I added a file to the extracted files, and saved the admin image MSI. This cased an external cab file to be created. It does some magic in the Media and Cab tables and juggles the extracted files and the cabbed one and installs ok. You can also hack the Media and Cab tables and use the file directly from the extracted media, but I don't have sample files here and this is complex. I think I even used an MST once to add the extracted file and applied it to several admin images to add the same file, hacky but worked well. – Stein Åsmul Mar 04 '14 at 09:11