[SOLVED] How do I change the default installation path?
Posted: 10 Jun 2023, 03:37
Hi all,
I have a 64-bit, Windows 11 Pro laptop. I wrote an application in python (using PyQt6) that has close to 500 data files. The app includes an integrated editor to modify the data files, so being able to read and write to the files is central to the application's function. I bundled everything up using pyinstaller, then used InstallForge to bundle everything into a nice, tidy installation utility.
Problem:
When the setup utility created by InstallFoge ran, the application seemed to install just fine. But it wasn't long until I discovered that the application couldn't write to the data files unless the app was launched from Admin level -a level of access many of my perspective users couldn't (and shouldn't) have. With the help of other users in the InstallForge community, it was discovered that the reason behind this issue is that the application is installed, by default, to C:\Program Files (x86)\, a location where Windows demands Admin-level permission to change. The solution would be to change the default installation path.
Question: How can we change the default path to a folder in a location not covered by the same Admin requirement as C:\Program Files (x86)\ ?
I have a 64-bit, Windows 11 Pro laptop. I wrote an application in python (using PyQt6) that has close to 500 data files. The app includes an integrated editor to modify the data files, so being able to read and write to the files is central to the application's function. I bundled everything up using pyinstaller, then used InstallForge to bundle everything into a nice, tidy installation utility.
Problem:
When the setup utility created by InstallFoge ran, the application seemed to install just fine. But it wasn't long until I discovered that the application couldn't write to the data files unless the app was launched from Admin level -a level of access many of my perspective users couldn't (and shouldn't) have. With the help of other users in the InstallForge community, it was discovered that the reason behind this issue is that the application is installed, by default, to C:\Program Files (x86)\, a location where Windows demands Admin-level permission to change. The solution would be to change the default installation path.
Question: How can we change the default path to a folder in a location not covered by the same Admin requirement as C:\Program Files (x86)\ ?