Archive: silent - uninstall


silent - uninstall
Hi all,

In the registry at the key "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" is the entry UninstallString which in my case is: "$INSTDIR\uninst.exe". So when uninstalled from add/remove programs, the uninst.exe will be run with no params and not in silent mode so it will ask for user interaction.

I am not familiar with "network install", but afaik in big companies the administrators are using this type of installation, so that it installs the same software on several user's machines without the user interaction. I assume the same is done with uninstalling.
So, in such a scenario, how could the admin uninstall silently the product? (as said I'm not familiar with this procedure). Is there a way for him to find out the $INSTDIR, so that then to call the $INSTDIR\uninst.exe -S?

Thx,
Viv


I would probably allow for your own command line parameters and then process them on .onInit (for the install) or un.onInit (for the uninstall).

The advantage here is that it will allow you to add support for other parameters (such as folder paths, etc.) rather than just being silent or not.

And for what it's worth:
Most big companies (espeically those that are publicly traded) that I've worked with have to carefully audit any type of software activity. (are you familiar with the Sarbanes-Oxley act? If not, you might Google it to find out more.)

But, as a result of this, most will usually use MSI-based installations with Active Directory since that gives more control to the administrator of what can get installed and helps them manage permissions granted during an install.


Plus, most also require that any installation or other program is digitally signed to ensure the install is "safe".

All these things are still do-able with NSIS, albeit perhaps a little more difficult.


I would probably allow for your own command line parameters and then process them on .onInit (for the install) or un.onInit (for the uninstall).
Yes, of course, I will process cmd line params for everything that the user could normally chose in the uninstaller. But my question was a little different: in a company where the admin wants to silently uninstall the product from several machines, how can he start the uninstaller? how can he find out the path to the uninstaller?

And for what it's worth:...
In my case, the "big company" will actually build the installer itself, so it will have the script, so can see right away what is done during installing.

The MSI didn't fit at all our requirements, so we drop that.

Also, as my installer installs an LSP (layered service provider), it will need admin rights during installing.

As far as I understood also "normal" exes can be run similar to Active Directory with MSI.

Thx,
Viv