Applying patches to msiexec /p /a
Hey guys,
I just applied 7 .msp's to a single .msi, using the first line here (http://itninja.com/question/what-is-the-connect.dat-file?8).
That's all well and good, but my question now is... how do I get that admin image back to the way it was before the patches? I did a quick search and there was 1 thing on Google about how to re-cab this, but that looked to me like he was using SDK's.
Is there no way to put these files back after they've been unpackaged?
Thanks
I just applied 7 .msp's to a single .msi, using the first line here (http://itninja.com/question/what-is-the-connect.dat-file?8).
That's all well and good, but my question now is... how do I get that admin image back to the way it was before the patches? I did a quick search and there was 1 thing on Google about how to re-cab this, but that looked to me like he was using SDK's.
Is there no way to put these files back after they've been unpackaged?
Thanks
0 Comments
[ + ] Show comments
Answers (7)
Please log in to answer
Posted by:
anonymous_9363
13 years ago
Common sense would have directed you to back up the AIP before patching it. I've never tried - since Captain Paranoia always take back-ups - but you *may* be able to uninstall the patches but some may be marked as non-uninstallable (did I just invent a word?).
EDIT:
Light bulb! Retrieve the original, as-supplied-from-the-vendor (or, as-extracted-from-your-source-control-system) MSI and create a new AIP from that.
EDIT:
Light bulb! Retrieve the original, as-supplied-from-the-vendor (or, as-extracted-from-your-source-control-system) MSI and create a new AIP from that.
Posted by:
pjgeutjens
13 years ago
I think the point is to get the files that were extracted with the AIP back into the MSI to have one 'all in one' installer. I think there might be a vbs for that in the Windows SDK Components for Windows Installer Developers, but I'm not sure, have a look at it (Ian might know by heart what it's called and how to use it)
Rgds,
PJ
Rgds,
PJ
Posted by:
kin327
13 years ago
Posted by:
VacTacks11
13 years ago
Actually I'm not using any packaging tool. Just using simple command line. And I'm not worried about backups - I'm doing this on a test machine.
But using the msiexec /a extracts the .cab files (Admin install, right?). Again, that's expected. But shouldn't there be a msiexec /compact or something? Surely, if you can extract all the contents of the .msi file using msixec, you should be able to put them back into the same tidy package using the same command.
That's what I would have thought. But if there's no way to do this without using a packaging tool (we don't have one in our environment), guess I'll just have to deploy each manually through SCCM.
But using the msiexec /a extracts the .cab files (Admin install, right?). Again, that's expected. But shouldn't there be a msiexec /compact or something? Surely, if you can extract all the contents of the .msi file using msixec, you should be able to put them back into the same tidy package using the same command.
That's what I would have thought. But if there's no way to do this without using a packaging tool (we don't have one in our environment), guess I'll just have to deploy each manually through SCCM.
Posted by:
LoZ
13 years ago
I can see your line of thinking but unfortunately there's no easy msiexec switch to reverse the AIP creation.
You can, however, use the patched AIP (and MSI that is created within that location) to deploy to your clients; you will just need to keep the source files uncompressed unless you have a packaging tool to hand. But still not recommended in the case of Microsoft vendor MSIs.
You can, however, use the patched AIP (and MSI that is created within that location) to deploy to your clients; you will just need to keep the source files uncompressed unless you have a packaging tool to hand. But still not recommended in the case of Microsoft vendor MSIs.
Posted by:
anonymous_9363
13 years ago
Posted by:
Teitan
13 years ago
Might this be what you are searching for VacTracks?
http://msdn.microsoft.com/en-us/library/aa369279(v=VS.85).aspx
Take a close look to MakeCab.exe(to create cab files) and Msidb.exe(to stream them into your MSI) from the Windows Installer SDK
Here some more links which could help you:
http://www.contactez.net/support/msi6.html
http://www.contactez.net/support/msi2.html
http://msdn.microsoft.com/en-us/library/aa369279(v=VS.85).aspx
Take a close look to MakeCab.exe(to create cab files) and Msidb.exe(to stream them into your MSI) from the Windows Installer SDK
Here some more links which could help you:
http://www.contactez.net/support/msi6.html
http://www.contactez.net/support/msi2.html
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.