User forums > Help

Problem with installation

<< < (3/4) > >>

MortenMacFly:

--- Quote from: asaharia on December 14, 2012, 06:08:27 pm ---Morten, thanks for the quick reply. Here's what I think you can do to reproduce the issue. [...]

--- End quote ---
OK, with that information I am able to reproduce but as there are no files deleted, you have to (as you said already) run the uninstaller as admin, too. So this was actually my intended behaviour: To install to a write protected folder which requires UAC run both as admin: install and uninstall. If you choose a portable folder (which many of us do these days and therefore being able to do a silent install, too btw.) you don't need these steps. So, its not an error, just a question of what is the best default behaviour.

I think the one an only correct solution would be not to ask for UAC as long as you have write access rights to the target folder. If the user select a folder w/o write access you should prompt for UAC... ad only then. This is what most modern installers do, too btw..

I'll see if there is a way to do this with NSIS (meaning UAC on demand). If somebody knows already - step forward.

asaharia:
Morten, it's good to know that you were able to reproduce the issue... I'm sure you guys will come up with an apt solution soon. :) In my honest opinion, the best way to provide a portable installation, is to simply offer a separate zip / self-extracting archive for download ! Simple, yet superbly effective for portable "installations". An installer that makes entries to the Start Menu and "Programs and Features', should ideally behave like a traditional installer, and users should never be required to run the installer / uninstaller as Administrator. Uninstalling the software from the Control Panel should just work... Everything should just work. Do think about it. Users love working with stuff that "just works". And UAC prompts are routine on Windows 7, really. Running a setup and clicking "Yes' on the UAC prompt is normal, perhaps even expected these days. I vote for a separate traditional installer with a UAC prompt, and a completely hassle-free install / uninstall process (even from the control panel; something that doesn't need to be run explicitly "as Administrator", as long as the current user has administrative privileges), and a separate "portable" installer for users who'd like to carry Code::Blocks with them on a pen drive ! Also keep in mind that many of us might want to install Code::Blocks from an administrative account, for all local users. Please don't worry too much about the UAC prompt - it's not that bad, and is actually the norm when it comes to installers running on Windows 7. :) I, for one, actually prefer such traditional setups to portable ones. Your thoughts ? Jens, any suggestions ? Thanks again !

MortenMacFly:

--- Quote from: asaharia on December 14, 2012, 11:44:01 pm ---Morten, it's good to know that you were able to reproduce the issue... I'm sure you guys will come up with an apt solution soon. :)
--- End quote ---
Its not really that simple. We have the requirement to allow a silent installation for admins across a network. With UAC this is broken. I searched the NSIS forum for a solution but it seems nobody really cares about such. I found related questions but w/o an answer and one "hack" which is that ugly that I don't want to use it, actually.
Maybe we should offer two installers: One with UAC (the default) and one with user-mode, as it is now with a clear description that this won't work for folders where you have no access to unless you run it as admin (like for a remote install that is the case).

Any thoughts?

For all: To summarise: When installing/uninstalling C::B to Program files, run both (the installer and un-installer) as admin for now.

asaharia:
"2 separate installers" sounds good to me. :)

MortenMacFly:

--- Quote from: asaharia on December 16, 2012, 03:47:09 pm ---"2 separate installers" sounds good to me. :)

--- End quote ---
Done. I've also uploaded all d/l sites and the description on our download page. Let me know if that works for you.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version