Internet Component Download problem
I have a little problem and maybe someone here can help me out.
What I'm trying to accomplish is an installer which would be automatically invoked from the internet.
So far I've created an installer with NSIS, packaged it inside a signed cab along with an INF file which uses a hook to launch the installer executable. Part of the problem might be that my application is not an ActiveX component, but a plain Windows executable.
I'm writing the install information to HKCU branch to make it easier to remove the app if/when a particular user is deleted.
Everything else works fine except that I can't uninstall the application properly using the uninstaller. To be more specific, Windows places a copy of my inf file to WINDOWS/Downloaded Program Files as well as writes registry entries under HKLM/Software/Microsoft/Code Store Database.
I tried to delete the inf file, which results in Windows thinking the installation is broken. However, it does not attempt to install it again when I hit the page with the object tag pointing to my cab.
If I go on and delete the registry key under the HKLM key mentioned above my installer will be invoked again, but do I violate the "current user only" policy by deleting this key?
I've thought about making my application to support a few com interfaces and registering the component, but am I missing a point here?
All I want to do is to be able to distribute the installer via internet (launch it using the object tag) and deploy the application for the current user to avoid problems with people not having admin/power user privileges.
All ideas more than welcome.