PureBasic and portable mode - potential for improvement
Posted: Sun Feb 27, 2022 2:53 pm
Hi folks,
Is there a way to "install" PureBasic as portable during the installation?
Currently I install the program into a portable directory (C:\PortableApps\) or an USB drive, then exit the installer without starting PureBasic (so no registry entries are created) and then edit the PureBasic link by adding the command line option /PORTABLE.
This makes PureBasic save the settings in a *.ini file. But still there are entries in the registry after the installation:
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PureBasic_is1
- HKEY_USERS\S-1-5-21-247445974-3849071910-128396459-1000\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pb
I can deal with this and delete the entries later, but it would be more elegant if PureBasic could handle this itself. Especially since it does offer an explicit /PORTABLE mode.
Is there a way to "install" PureBasic as portable during the installation?
Currently I install the program into a portable directory (C:\PortableApps\) or an USB drive, then exit the installer without starting PureBasic (so no registry entries are created) and then edit the PureBasic link by adding the command line option /PORTABLE.
This makes PureBasic save the settings in a *.ini file. But still there are entries in the registry after the installation:
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PureBasic_is1
- HKEY_USERS\S-1-5-21-247445974-3849071910-128396459-1000\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pb
I can deal with this and delete the entries later, but it would be more elegant if PureBasic could handle this itself. Especially since it does offer an explicit /PORTABLE mode.