How to determine which type of installation in silent mode?
Hi folks,
I am new to the MSI world.
I have a basic doubt, anyone plz clarify it.
How can we tell if an installation is running in silent mode? Is uninstalling? Is an administrative installation?
Thanks in advance.
Regards,
Anand
I am new to the MSI world.
I have a basic doubt, anyone plz clarify it.
How can we tell if an installation is running in silent mode? Is uninstalling? Is an administrative installation?
Thanks in advance.
Regards,
Anand
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
anonymous_9363
15 years ago
Is it me or are questions getting more bizarre these days?
You don't specify when this information would be required. If it was required during the install itself:
1. running in silent mode?
You can test the UILEVEL property.
2. Is uninstalling?
Test the contents of the REMOVE property.
3. Is an administrative installation?
You'd have to read the MSI's WordCount property. Not simple, but I think the SDK has a sample script for that.
If you wanted to know what was happening external to the install itself, I think you would have to use WMI to determine the command line arguments passed to MSIExec. Check out 'Win32_Process' namespace and its CommandLine property on MSDN.
You don't specify when this information would be required. If it was required during the install itself:
1. running in silent mode?
You can test the UILEVEL property.
2. Is uninstalling?
Test the contents of the REMOVE property.
3. Is an administrative installation?
You'd have to read the MSI's WordCount property. Not simple, but I think the SDK has a sample script for that.
If you wanted to know what was happening external to the install itself, I think you would have to use WMI to determine the command line arguments passed to MSIExec. Check out 'Win32_Process' namespace and its CommandLine property on MSDN.
Posted by:
kiptek
15 years ago
How can we tell if an installation is
1. running in silent mode?
2. Is uninstalling?
3. Is an administrative installation?
1 - look to see if msiexec is running in task manager.
2 - it will no longer be available on the machine.
3 - it does not install the application. plus if you run a /a, it will ask you for a location to copy the files to...
Posted by:
jmcfadyen
15 years ago
Posted by:
jmcfadyen
15 years ago
Posted by:
anonymous_9363
15 years ago
ORIGINAL: jmcfadyenI've wondered the same thing for many years. My guess is that they urgently needed somewhere to put that data without altering the code and plumped for these otherwise unused locations. Lazy => MS developers => Lazy, the circle of life.
I wonder how they come up with PageCount and WordCount they hardly describe what they are.. strange.
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.