InstallForge install the application on Administrator's Desktop instead of the user that clicked on setup file

You have trouble using InstallForge? Then this is the right place for you.
Post Reply
Utente
Posts: 1
Joined: 28 Aug 2025, 15:31

Hi everyone,
I'm a new user of InstallForge, I'm trying to create a setup for my application written in Python and converted in .exe using pyinstaller. I successfully created and run the setup but I noticed problems with paths management.
First of all when I disable the 'create desktop shortcut for all user' the icon appears only on Administrator User and not in the Desktop of the user that launched the app. I think that is because the setup need administrat privileges so I don't worry too much. My problem is about the app itself. When I exec the .exe created by Pyinstaller and print the path to the current user with:

Code: Select all

path_home = getpass.getuser() 
 path_home = Path(os.path.expanduser(f'~{path_home}'))
it gaves me C://Users/{name of current user}
but when I launch the application created by the InstallForge setup from the current user the same code give me: C://Users/{Administrator User} how can I solve this?
Post Reply