How to configure programs in SyMenu
Winstep Nexus Portable
sl23 Posts: 285
06/04/2017
|
I've been tinkering with this to try and make it portable, currently it saves it's settings here: C:\Users\Public\Documents
Is there anyway of using the EnvVar's to save/use the data in the apps folder as the AppData=.\AppData command does?
Thanks
EDIT: I found the wiki page on envvar's and tried numerous combinations of these: %SystemDrive%\Users\Public\Documents=.\User\PublicDocs %PUBLIC%\Documents=.\User\PublicDocs
None of these worked. Is it actually possible to do this? Am I just missing something? Am I babrking up the wrong tree? Am I even in the right forest?
edited by sl23 on 07/04/2017
|
|
link
|
Gianluca Administrator Posts: 1274
07/04/2017
|
Since the program is probably searching for the %PUBLIC% environment variable you should try with this: PUBLIC=.\User
If you redefine the %PUBLIC%\Documents SyMenu will try to replace the entire string as it is an environment variable. So it search for %%PUBLIC%\Documents% instead. Since this variable doesn't exists SyMenu creates a new variable and doesn't replace the old one. Remember to insert the environment variable name without the % symbol. I think it's impossible to convince the program to write its files inside a folder called PublicDocs if it is searching for a folder called Documents. But anyway it's not a problem if this folder is inside the program root.
I suggest you to use the program RapidEE (available on the SyMenu Suite) to test your redefinition attempts. My procedure: - insert the new variable in the RapidEE through SyMenu configuration - execute the program and read the result of your redefinition.
|
|
link
|
sl23 Posts: 285
07/04/2017
|
Gianluca wrote:
Since the program is probably searching for the %PUBLIC% environment variable you should try with this: PUBLIC=.\User This and several variations have been tested.
Gianluca wrote:
If you redefine the %PUBLIC%\Documents SyMenu will try to replace the entire string as it is an environment variable. So it search for %%PUBLIC%\Documents% instead. Since this variable doesn't exists SyMenu creates a new variable and doesn't replace the old one. Not too sure I understand what you mean? Gianluca wrote:
Remember to insert the environment variable name without the % symbol. I tried that too, with and without, I've tried variations with %, without %, different path names, due to the folder being named as Public\Public Documents but properties showing it just as Public\Documents??? Gianluca wrote:
I think it's impossible to convince the program to write its files inside a folder called PublicDocs if it is searching for a folder called Documents. But anyway it's not a problem if this folder is inside the program root. Hmm, this I'm not sure I agree with. For example, you have stated that it's looking for 'Documents' and above suggest to try PUBLIC=.\User, isn't that a completely different name? Surely the folder name is unimportant if the path to it is specified, in this case PublicDocs? This has been my strategy for all apps and it is working so far Though perhaps it is because I have placed all adjustments inside the Apps directory?
Gianluca wrote:
I suggest you to use the program RapidEE (available on the SyMenu Suite) to test your redefinition attempts. My procedure: - insert the new variable in the RapidEE through SyMenu configuration - execute the program and read the result of your redefinition. I was just checking this app out actually! Though I have no idea of it's abilities, dangers or uses! So, I decided to leave it.
But using the above variables, shouldn't that be enough to specify that SyMenu should make the app use the folder specified for it's data? The actual full path is: C:\Users\Public\Documents\WinStep
But the if you got to the Public folder you will see that all public folders have the name 'Public ' in front of them? Why doesn't this show up on the properties tab? Which name should be used?
Thanks
|
|
link
|