Rubberduck icon indicating copy to clipboard operation
Rubberduck copied to clipboard

Portable version without installation

Open philippetev opened this issue 3 years ago • 2 comments

It would be great if there is a portable version of Rubberduck that can run from any folder, similar to the approach, used with the portable version of MZ-Tools - a zip that contains all extension files in a folder, bundled with little tool that registers and unregisters the addin (for the current user).

Such version could be very useful for use in companies, which policies forbid all kind of installs, even the user ones (like the company I work in).

philippetev avatar Dec 13 '21 14:12 philippetev

I'm by no means the expert or final say on the matter, but if your company forbids installations, wouldn't they likely also forbid a stand-alone registration?

I realize programs must read/write the registry on a regular basis, so maybe that's a moot point/not possible. However, I could see them forbidding any non-admin execution of RegEdit, which is required for registering from the command line.

daFreeMan avatar Dec 13 '21 15:12 daFreeMan

I'm by no means the expert or final say on the matter, but if your company forbids installations, wouldn't they likely also forbid a stand-alone registration?

They obviously haven't forbidden that since I'm able to use the portable version of MZ-Tools at my work PC. It seems only the user access to the Windows Installer service has been restricted.

I realize programs must read/write the registry on a regular basis, so maybe that's a moot point/not possible. However, I could see them forbidding any non-admin execution of RegEdit, which is required for registering from the command line.

Exactly. There is no point to restrict the registry read/write as the programs use it all the time. At least, the HKCU part anyway. Besides, it's all the same if you can or can't write to the registry, if you can't install anything with your user account.

Even it doesn't has to be a special tool, compiled for that specific job. I think a batch/Powershell script can get the job done too...

philippetev avatar Dec 14 '21 11:12 philippetev

I realize this is late reply but have you tried installing in per-user mode? It does the same thing being proposed here.

bclothier avatar Dec 31 '22 14:12 bclothier

I've already explained in the first post that per-user mode won't work in companies that have restricted all access to the Installer service (like the one I currently work in), so in such cases you can't do even user-based kind of installations and it makes sense to prevent such installations if you don't want your employees to install whatever they want (do they have the need for what they're installing is another topic).

Just take a look at the portable version of MZ-Tools and you'll see what I mean - no installation whatsoever, extract the zip in a folder of your choosing and use the provided tool to register/unregister the addon in the HKCU registry userspace. That part of the registry cannot be restricted, because Excel should save its settings somewhere after all.

philippetev avatar Dec 31 '22 14:12 philippetev

In the reply, Windows Installer Service was mentioned but it’s my understanding that Inno Setup does not use the service, which was why I wanted to confirm.

bclothier avatar Dec 31 '22 14:12 bclothier

Wasn't aware it's Inno... Well, it's true, Inno doesn't rely on the WIndows Installer service, yet, for some (unknown) reasons I get permission errors when I try to do the per-user install. Nevermind, maybe the current Windows installation is broken somehow. I need to do some investigation so for now I'm closing this one.

philippetev avatar Dec 31 '22 15:12 philippetev