Page 1 of 1

Installing PureBasic without administrator rights

Posted: Thu Dec 17, 2020 12:03 pm
by ricardo_sdl
Hi you all!
I'm on windows 10. Is it possible to install PureBasic without the administrator rights? Like install it only for my user account?
Thanks!

Re: Installing PureBasic without administrator rights

Posted: Thu Dec 17, 2020 12:12 pm
by Bisonte
I think it's not possible to "install" it without rights,
but you can install it on another computer and
copy the whole installation directory after installing it to
an usb drive and you can use/copy it on the destination
computer.

After that you can use it as "portable" version (start the ide with the portable flag)...

Re: Installing PureBasic without administrator rights

Posted: Thu Dec 17, 2020 1:09 pm
by NicTheQuick
For Linux users there is only a zip file you can extract and directly use it. Isn't there such a version for Windows users available?

Re: Installing PureBasic without administrator rights

Posted: Thu Dec 17, 2020 1:24 pm
by Bisonte
Nope. Only the x86 and x64 Setup Files.

Re: Installing PureBasic without administrator rights

Posted: Thu Dec 17, 2020 2:19 pm
by BarryG
Workaround:

Start the Windows Sandbox.
Copy the PureBasic Setup.exe file with Ctrl+C.
Paste the Setup.exe file into the Sandbox with Ctrl+V.
Install PureBasic in the Sandbox (no admin UAC prompt will occur).
After installing, copy the installed PureBasic folder with Ctrl+C.
Go out of the Sandbox back to your real PC, and paste the folder with Ctrl+V.
Close the Sandbox.

Done! PureBasic is now on your real PC without needing admin rights to install it.

Re: Installing PureBasic without administrator rights

Posted: Thu Dec 17, 2020 2:21 pm
by Gérard
Hello,
You can use InnoExtractor to extract the contents of the Purebasic installer.
Rename the {app} folder to PureBasic32 or PureBasic64 as appropriate.
Rename PureBasic, 1.chm to PureBasic.chm for help in English.
Rename PureBasic, 2.chm to PureBasic.chm for help in French.
Rename PureBasic, 3.chm to PureBasic.chm for help in German.
Then use PB in portable mode with the correct flag.
Gérard (cage on French forum)

Re: Installing PureBasic without administrator rights

Posted: Thu Dec 17, 2020 2:27 pm
by Marc56us
ricardo_sdl wrote:I'm on windows 10. Is it possible to install PureBasic without the administrator rights? Like install it only for my user account?
As indicated, you have to install elsewhere and copy everything.

Since version 6 of InnoSetup, it is possible to easily make an installation that does not require admin privileges, but developers must modify the installation file (.iss file).

https://jrsoftware.org/isdl.php#stable

Howto ?
Modyfy .iss file like this

In section [Setup] (line DefaultDirName)
Remplace
{commonpf}
by
{autopf}

Add
PrivilegesRequired=lowest
(without it, default is set to)
PrivilegesRequired=admin

For the rest
Path to program icon must be set to
{userdesktop}
instead of
{commondesktop}

Program is now installed in LOCALAPPDATA
In PB: GetEnvironmentVariable("LOCALAPPDATA")

Notes:
- A software installed like this is only available for the user who have install-it
- You can't update a admin install with non-admin install. Need to remove admin install first
- Windows 2000, XP, and server 2003 are no longer supported (use v5)

:wink:

Re: Installing PureBasic without administrator rights

Posted: Thu Dec 17, 2020 3:48 pm
by ricardo_sdl
Thank you all!
I'll create a portable version of PureBasic to carry on a usb drive, it's a great tool to have at hand.