Inno Setup: How do you prevent user from selecting "root" group? - inno-setup

How do I prevent a user from selecting the group to be the root of the start menu so that the group has to go to its own folder?
Thanks.

You can't select the root with the current versions which makes it (more) safe to use wildcards with {group}.

Related

How to leave a GitLab project not owned by me?

If I had contributed in a project, for which I am not an owner or administrator, how can I get myself out of that project? I do not find the leave button as documented in issue 744.
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/744
The project owner has stopped responding to me and I badly want myself out of it. Please help.
Updated answer for 2020:
Leaving a group automatically removes you from all projects added by that group.
At the top menu chose Groups\Your Groups. Select the group you want to leave and press leave.
Follow these steps:
On projects page select the project
On top right corner select settings button
Then select members
Finally you'll see LEAVE button here
Follow These steps
Go to the main project url, not the sub urls
E.g If the project name is hng-interns -- Go to https://gitlab.com/hng-interns instead of https://gitlab.com/hng-interns/factory
Click on the Leave group button
Click okay in the alert box that shows up.
That's all!
In new gitlab version, you can leave a project not owned by you, by following these steps:
1- Go to the project page
2- Click on Project Information at the top left corner
3- Click on members
4- Find your name among members and click on red leave button
Click Menu on the top left, Groups, Your groups.
Click on Your groups on the next page that loads.
Select Group
You will see picture similar two the second screenshot below. Instead of Withdraw Access Request you'll see Leave Group

InnoSetup: path to Start Menu Programs

In InnoSetup there are two constants: {commonstartmenu} and {userstartmenu}, which are expanded as "C:\ProgramData\Microsoft\Windows\Start Menu" and "C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu" respectively on my PC under Windows 7.
Can I simply add "\Programs" string to them to get the path of the All Programs folder of common and user Start Menu? Is it guaranteed that All Programs folder of Start Menu is named "\Programs"? If no, how can I obtain its name?
No, you cannot assume that it is named "Programs".
{commonprograms} is the correct constant to use if you want to refer to "Programs" / "All Programs" directly.
However if you want to install more than one shortcut then it is better to use {group} and DefaultGroupName as RobeN suggested.

Is there a way to change 'project' once a bug has been entered in MantisBT?

As evident from title, I entered a bug in MantisBT but mistaken choose wrong project. I can go back and edit most of the parameters of bug but it doesn't allow me to change the project. I looked in configuration and there seems to be no option for that there as well. Is there a way I fix the bug information by changing the project to the correct value?
You can move issues between projects if your system configuration and access levels allow it (look for the Move button in the View Issue Details page)
You can also move multiple issues by doing the following:
Go to View Issues page.
Filter on the issues you want to move (optional)
Tick the issues from the list that you want to move or select all.
Go to the bottom of the list and select "Move" then click Go.
Select project to move to.
Note that since MantisBT uses a universal id across all projects, moving an issue doesn't break links to it, since URL to the issue will remain the same.

Joomla 2.5.6 Admin Menu Issues

Have used Joomla a fair bit, but have ending up taking over a site previously looked after by someone else. It had been recently updated to 2.5.6 from 1.6 and is sort of ok, but there are a few issues I'm finding particularly with the Admin Menus.
the extensions manager is missing its sub menu of 'update' 'discover' etc - does anyone have any idea to remedy this?!
a couple of components don't exist in the directory structure (admin or components) but are listed in the in the components menu in admin, so if I try to reinstall them it won't add the menu option...(get error saying menu item already exists). Does anyone know how to clear the menu options from admin so I can reinstall the components properly?
its a bit of a mess but I haven't the time to start from scratch on this site as its already been highly customised!
Any help much appreciated - as I say I'd be familiar enough with joomla but setting up from scratch without all the mess!
Many thanks
Clare.
For question # 2 you need to use phpmyadmin, or a similar tool and remove the offending components from the xxxx_extensions table. xxxx is a random 3,4, or 5 character string which was created during installation.
Also check the xxxx_menu table for menu items from these components.
Usually admin menu items appear in the "menu" menus.
WARNING! be extremely careful when hand editing your SQL tables. You can completely destroy your site, if you make a mistake. NEVER do a "drop" nor an "empty" with the tool.
As to question #1, I have not seen this behavior. Have you tried an update? or reloading Joomla over your current site? (If you do this, be sure to backup your site! We use Akeeba backup to do this)

How to append to PYTHONPATH in Tornado so Handlers can use other libraries?

I am attempting to start a Tornado web server, but I need the Handlers to be able to import libraries from a custom path. I cannot simply add sys.path.append('..') when launching Tornado, so how do I do it?
import sys
sys.path.append('/home/user/py/lib')
To do this right you need to assign the PYTHONPATH to include the custom directories prior to the starting of the Tornado application.
The way to do this in Linux would be this:
PYTHONPATH=$PYTHONPATH:<custom path 1>:<custom path 2>:<etc>
I'm a bit rusty with Windows, but I believe in windows you would:
Windows XP
Right click 'My Computer'
Click on 'Properties'
Click on the 'Advanced' tab
Click 'Environment Variables'
In either the System or User Environment Variables locate the one
for PYTHONPATH. If one doesn't exist, create one in System. Add in
the new custom path to the PYTHONPATH. Make sure you use a ; and not
a : to separate the paths.
Windows Vista/7
Right click 'Computer' under the 'Start Button'.
Click on 'Properties'
Click on 'Advanced system settings' in the left pane
Click on the 'Advanced' tab
Click 'Environment Variables'
In either the System or User Environment Variables locate the one
for PYTHONPATH. If one doesn't exist, create one in System. Add in
the new custom path to the PYTHONPATH. Make sure you use a ; and not
a : to separate the paths.

Resources