Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 116203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:08:27+00:00 2026-05-11T03:08:27+00:00

Many of our customers have access to InstallShield, WISE or AdminStudio. These aren’t a

  • 0

Many of our customers have access to InstallShield, WISE or AdminStudio. These aren’t a problem. I’m hoping there is some way I can provide our smaller customers without access to commercial repackaging tools a freely available set of tools and steps to do the file replacement themselves.

Only need to replace a single configuration file inside a compressed MSI, the target user can be assumed to already have Orca installed, know how to use this to customize the Property table (to embed license details for GPO deployment) and have generated an MST file.

Disclaimer: this is very similar to another question but both questions and answers in that thread are not clear.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:08:28+00:00Added an answer on May 11, 2026 at 3:08 am

    Okay, revisiting this question with my own answer providing nice little VB script that will do all heavy lifting. As mentioned in the original question, the aim was provide a simple solution for sysadmin users to make the updates/changes themselves.

    Below is a simplified version of the code I’m currently providing to customers

    Option Explicit  Const MY_CONFIG = 'MyConfigApp.xml' Const CAB_FILE = 'config.cab' Const MSI = 'MyApp.msi'  Dim filesys : Set filesys=CreateObject('Scripting.FileSystemObject')  If filesys.FileExists('temp.tmp') Then filesys.DeleteFile('temp.tmp') filesys.CopyFile MSI, 'temp.tmp'  Dim installer, database, database2, view Set installer = CreateObject('WindowsInstaller.Installer') Set database = installer.OpenDatabase ('temp.tmp', 1) Set database2 = installer.OpenDatabase (MSI, 1)  If Not filesys.FileExists(MY_CONFIG) Then WScript.Quit 2 ' No config file, abort!  Dim objFile, size, result, seq, objCab  ' MakeCab object has been depreciated so we fallback to makecab.exe for with Windows 7 On Error Resume Next ' Disable error handling, for a moment Set objCab = CreateObject('MakeCab.MakeCab.1')  On Error Goto 0  ' Turn error handling back on  If IsObject(objCab) Then ' Object creation successful - use XP method        objCab.CreateCab CAB_FILE, False, False, False     objCab.AddFile MY_CONFIG, filesys.GetFileName(MY_CONFIG)     objCab.CloseCab     Set objCab = Nothing Else ' object creation failed - try Windows 7 method     Dim WshShell, oExec     Set WshShell = CreateObject('WScript.Shell')     Set oExec = WshShell.Exec('makecab ' & filesys.GetFileName(MY_CONFIG) & ' ' & CAB_FILE) End If  Set objFile = filesys.GetFile(MY_CONFIG) size = objFile.Size  Set view = database.OpenView ('SELECT LastSequence FROM Media WHERE DiskId = 1') view.Execute Set result = view.Fetch seq = result.StringData(1) + 1 ' Sequence for new configuration file  Set view = database.OpenView ('INSERT INTO Media (DiskId, LastSequence, Cabinet) VALUES ('2', '' & seq & '', '' & CAB_FILE & '')') view.Execute  Set view = database.OpenView ('UPDATE File SET FileSize = ' & size & ', Sequence = ' & seq & ', FileName = 'MYC~2.CNF|MyConfigApp.xml' WHERE File = '' & MY_CONFIG & ''') view.Execute  database.GenerateTransform database2, 'CustomConfig.mst' database.CreateTransformSummaryInfo database2, 'CustomConfig.mst', 0, 0 filesys.DeleteFile('temp.tmp')  Set view = nothing Set installer = nothing Set database = nothing Set database2 = nothing Set filesys = Nothing WScript.Quit 0 

    Update: The MakeCab.MakeCab.1 object has been depreciated, code updated to now work with Windows 7.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a support environment where we connect to many of our customers' systems
We have a request from many customers to make our datepickers reflect the date
We have a cloud based SaaS application and many of our customers (school systems)
We actually have burned static/archived copies of our asp.net websites for customers many times.
Many of our users, internal and external, start our web application. Then at some
In many of our projects I have seen a few custom collection / or
In many places in our application we have code like this: using(RAPI rapi =
my team have built many tools for our project using win forms and Visual
Our application's "documents" are single binary files. Our customers have asked if we can
I have inherited a VB6/Access application that we have developed and sold for many

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.