Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change file location in batchFile if setup.py installs in another folder #5

Closed
ThiaudioTT opened this issue Sep 24, 2022 · 4 comments
Closed
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@ThiaudioTT
Copy link
Owner

ThiaudioTT commented Sep 24, 2022

start "hoi4RPC.exe" "C:\Users\%USERNAME%\Documents\Paradox Interactive\Hearts of Iron IV\hoi4Presence\checkupdate.exe"

This drive name is fixed and needs to change like setup.py changes the installation.

We fix this issue making setup.py rewrite this line and making it point to the exact location.

Both for presence path and checkupdate path

@ThiaudioTT ThiaudioTT added bug Something isn't working good first issue Good for newcomers labels Sep 24, 2022
@ThiaudioTT ThiaudioTT added the help wanted Extra attention is needed label Mar 29, 2023
@ThiaudioTT ThiaudioTT pinned this issue Mar 29, 2023
@ThiaudioTT
Copy link
Owner Author

Pinning due to a higher priority

@ThiaudioTT
Copy link
Owner Author

Probably rewriting the path using the installer can solve it

@ThiaudioTT
Copy link
Owner Author

ThiaudioTT commented May 20, 2023

Setting a var and editing in python can solve it.

https://stackoverflow.com/questions/66453290/make-changes-to-a-bat-file-using-python

set checkUpdatePath="pathtogame"

@REM Start checkupdate
start "hoi4RPC.exe" %checkUpdatePath%

But I actually don't know if this is really an Issue, is there a possibility that checkupdate and hoi4presence is installed in other folder? This issue was created cause of OneDrive, but I don't use it.

https://forum.paradoxplaza.com/forum/threads/save-game-problem-with-onedrive.975580/

@ThiaudioTT ThiaudioTT changed the title Batch only works when the game is on C:/ drive checkupdate.exe and hoi4presence.exe on OneDrive folder isn't executing due to wrong location May 20, 2023
@ThiaudioTT ThiaudioTT added the question Further information is requested label May 20, 2023
@ThiaudioTT ThiaudioTT unpinned this issue May 20, 2023
@ThiaudioTT
Copy link
Owner Author

If game is on drive D, the batch file won't execute it.

@ThiaudioTT ThiaudioTT changed the title checkupdate.exe and hoi4presence.exe on OneDrive folder isn't executing due to wrong location Change file location in batchFile if setup.py installs in another folder May 24, 2023
@ThiaudioTT ThiaudioTT removed the question Further information is requested label May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant