Installing PureBasic without administrator rights

Windows specific forum
ricardo_sdl
Enthusiast
Enthusiast
Posts: 115
Joined: Sat Sep 21, 2019 4:24 pm

Installing PureBasic without administrator rights

Post 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!
You can check my games at:
https://ricardo-sdl.itch.io/
User avatar
Bisonte
Addict
Addict
Posts: 1233
Joined: Tue Oct 09, 2007 2:15 am

Re: Installing PureBasic without administrator rights

Post 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)...
PureBasic 6.10 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
User avatar
NicTheQuick
Addict
Addict
Posts: 1227
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Installing PureBasic without administrator rights

Post 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?
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
Bisonte
Addict
Addict
Posts: 1233
Joined: Tue Oct 09, 2007 2:15 am

Re: Installing PureBasic without administrator rights

Post by Bisonte »

Nope. Only the x86 and x64 Setup Files.
PureBasic 6.10 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
BarryG
Addict
Addict
Posts: 3330
Joined: Thu Apr 18, 2019 8:17 am

Re: Installing PureBasic without administrator rights

Post 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.
Gérard
User
User
Posts: 43
Joined: Sat Oct 17, 2015 6:00 pm
Location: France
Contact:

Re: Installing PureBasic without administrator rights

Post 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)
■ Win10 64-bit (Intel Celeron CPU N2920 @ 1.86GHz, 4,0GB RAM, Intel HD Graphics) & PB 6.00 LTS
■ Vivre et laisser vivre.
■ PureBasic pour le fun
■ cage sur le forum Français
■ Mes sites: http://pbcage.free.fr - http://yh.toolbox.free.fr
Marc56us
Addict
Addict
Posts: 1479
Joined: Sat Feb 08, 2014 3:26 pm

Re: Installing PureBasic without administrator rights

Post 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:
ricardo_sdl
Enthusiast
Enthusiast
Posts: 115
Joined: Sat Sep 21, 2019 4:24 pm

Re: Installing PureBasic without administrator rights

Post 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.
You can check my games at:
https://ricardo-sdl.itch.io/
Post Reply