Is this possible?
Posted 04 October 2006 - 09:17
I just want to know if this is possible:
I need to "install" some files in a directory (using a "special" MSI file) using this command line:
msiexec /I "mySpecial.msi" INSTALLDIR="myDirectory"
This MSI file should install the files in that directory and nothing else (e.g. no user interface). Nothing should appear in the Add/Remove programs and no "trace" should remain in the system that this MSI file was "installed" on this computer (e.g. MsiEnumProducts API should not find it).
What should I do to get this "feature"? What else should I do (except of not showing it into Add/Remove programs and in MsiEnumProducts)?
In other words I need to create an MSI file that can be installed any time and each time I "install" it I will get option "yes new installation, this product was never ever installed on this computer".
Thanks for your help.
Posted 04 October 2006 - 12:28
Posted 04 October 2006 - 12:37
Posted 04 October 2006 - 12:39
Posted 04 October 2006 - 17:11
Thanks for your replies.
Yes it may be a disadvantage but this is exactly what I want: the tool should pack somehow the files in a "database" (my MSI file) and each time I need I can "install" them in which directory I need (INSTALLDIR).
Back to the question: so if this is possible how do I make my MSI file ("product") to be invisible to "anything" in the system:
- no Add/Remove Programs (ARPSYSTEMCOMPONENT may be the key)
- no MsiEnumProduct or similar should "see" it (I need to try it)
- when I "install" this twice on the same computer it should get all the time "yes new installation, this MSI "product" was never ever installed on this computer"
Thanks for your help
Posted 04 October 2006 - 17:46
* try to blank out the product code (not even sure if it will let you)
* set ARPSYSTEMCOMPONENT to 1
I believe another way to do this (without blanking out the product GUID), is to remove the "RegisterProduct" standard action from the install sequence.