Hi Guys,

Is there a property that stores the UI mode? How do I know /qn was specified when executing the MSI?

Is there a way to disable the uninstall? The way I am forcing this for now is displaying calling a function from within an included vbscript and assigning that a value of 3.Is this the recommended way?
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
yes, UILevel is stored in a property

That's not the recommended way to stop product removal, though. Use ARPNOREMOVE
Answered 02/17/2009 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
Thank you for the quick respone aogilmor.

I have already enabled ARPNoRemove but that doesn't prevent someone from running msiexec /x on the MSI, right? I.e. doing so will still run an uninstall....?
Answered 02/17/2009 by: jayteeo
Purple Belt

Please log in to comment
0
First, properties are case sensitive so it's ARPNOREMOVE

I don't know about msiexec /x, I imagine it would still work. You want to have SOME way of removing the product, right? -- just not have it displayed in control panel for the users.

If you absolutely, positively don't ever want it removed you could probably insert a Custom Action Type 19 with a condition REMOVE="ALL", which would terminate the uninstall. Better make sure it's a good package before you put that in though :-)
Answered 02/17/2009 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
I don't know about msiexec /x, I imagine it would still work.Indeed it would.

Thinking around Owen's solution, you could have some sort of property-driven override so that an uninstall could still take place. For example, you could set up a property 'REALLYUNINSTALL' with a value '0' as default. Then, go with Owen's solution but add another check, this time for REALLYUNINSTALL still being '0'. If it is, then terminate. If it isn't (the property and a non-zero value having been passed on the command line or via a transform), then proceed as normal and uninstall.

Lot of hoops to jump, just to prevent an uninstall, though....do your users have local admin privileges? If they don't, why worry?
Answered 02/18/2009 by: VBScab
Red Belt

Please log in to comment
0
The MSI will run on servers. One of the things this MSI performs is the creation of local security groups that are mandatory on all servers. There is no logic to delete these security groups so uninstalling it will not in effect delete these security groups. With the MSI being installed, I thought it would be a good indicator that the server is compliant (or at least was at one time).
Answered 02/18/2009 by: jayteeo
Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity