Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Edit patch design automatically from command line


2 replies to this topic

Barvaz

Barvaz
  • Full Members
  • 37 posts

Posted 10 December 2012 - 10:18

Hi,

I'm looking for a mechanism to automatically edit the Patch design in order to create an .msp file automatically.
Currently I do the following:
1) Assume I already have RTM.msi file.
2) Now I build my update MSI file naming Patch_001.msi.
3) Edit manually the Patch Design area in Patch_001.ism by the following:
• Latest setup path point to Patch_001.msi
• Previous setup path point to RTM.msi
4) Build the patch - IsCmdBld.exe -p Patch_001.ism -patch_config Patch_001

I'm looking for the right, efficient and safety way to automate section 3.
Currently I opened the XML file and edit it automatically but this is not safety.
I read some sites which explain how to edit MSI file as database using C# - But in my case I have to edit the ISM file…because in section 4 I run the ISM file.

Please advice.

Thanks.



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 11 December 2012 - 16:04

If you switch from XML to Binary format of the .ism, it's the same file format as .msi and can be modified in the same way. However you really need to know what you are doing as there are no safety boundaries...

Barvaz

Barvaz
  • Full Members
  • 37 posts

Posted 11 December 2012 - 16:05

OK,
Thanks