{"id":1313,"date":"2017-12-04T06:55:43","date_gmt":"2017-12-04T06:55:43","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1313"},"modified":"2020-01-09T09:36:16","modified_gmt":"2020-01-09T09:36:16","slug":"script-to-update-file-sequence-in-a-msi","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/script-to-update-file-sequence-in-a-msi\/","title":{"rendered":"Script to update file sequence in a MSI"},"content":{"rendered":"<p><strong>installanywhereExpert created the topic: script to update file sequence in a MSI<\/strong><br \/>\nIf we have to add 1000 new files to a MSI all the new files will have the file sequence to &#8216;0&#8217; . Is there a way to update the sequence of the files? Sould we use a script or something to update the file sequnce of the files? If yes, could someone please point me to the script for this purpose?<\/p>\n<p><strong>applicationPackaging replied the topic: Re: script to update file sequence in a MSI<\/strong><br \/>\nHow are you adding the 1000 files?<\/p>\n<p>If you add the files using the Wise GUI, then the file sequence count will be set automatically.<br \/>\nSo are you adding the files using the automation interface?<br \/>\nIf so, you are already coding for it, so incrementing the file sequence count in the file table will be a trivial addition to your code. You will of course also need to update the media table to identify which CAB the file sequences are contained in.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>installanywhereExpert created the topic: script to update file sequence in a MSI If we have to add 1000 new files to a MSI all the new files will have the&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[49],"tags":[232],"class_list":["post-1313","post","type-post","status-publish","format-standard","hentry","category-general","tag-msi"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=1313"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1313\/revisions"}],"predecessor-version":[{"id":1314,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1313\/revisions\/1314"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}