Hi Mark,
That's one area I have not had the time to investigate.
Those description fields will change btw, but it shouldn't break your SxS registration as that's done by clsid and I won't touch those.
--
Wil
Printable View
Hi Mark,
That's one area I have not had the time to investigate.
Those description fields will change btw, but it shouldn't break your SxS registration as that's done by clsid and I won't touch those.
--
Wil
In case it helps. This is what we are doing.
[CODE]
//Sets the user data folder for the cache
Procedure OnComCreate
String sUserDataPath
Get_Environment "APPDATA" to sUserDataPath
Append sUserDataPath "\AIM"
Set ComUserDataFolder to sUserDataPath
End_Procedure
[/CODE]
AIM is the general app name.
Thanks Chuck.
That will continue to work as is.
As in, that I will change the default location to the local user temp path, but only if you do not explicitly set the UserDataFolder like you are doing here.
--
Wil
Using that I get C:\Users\SomeUser\AppData\Roaming as the base folder path.
Do you see any issues with using this path?
Chuck,
[QUOTE=chuckatkinson;367757]Using that I get C:\Users\SomeUser\AppData\Roaming as the base folder path.
Do you see any issues with using this path?[/QUOTE]
I expect no issues with that.
The [URL="https://github.com/MicrosoftEdge/WebView2Feedback/issues/1410"]issue feedback link[/URL] from MS I provided earlier has good background info about the reasoning behind the choice for folder location. I will try to condense that info in the documentation.
Note that if you have multiple applications using the control that they then do need their own caching folder.
The WebView2 control complains if you have multiple executables trying to use the same path.
--
Wil
Wil,
Thanks. I've now changed to below. Wondering what happens if the user runs multiple instances of the same program?
[CODE]
Procedure OnComCreate
String sUserDataPath sProgram
Move (Module_Name(Desktop)) to sProgram
Get_Environment "APPDATA" to sUserDataPath
Append sUserDataPath "\AIM\" sProgram "\"
Set ComUserDataFolder to sUserDataPath
End_Procedure
[/CODE]
Chuck,
Good question and one I actually had looked for answers in the documentation earlier on, but not found an answer.
The control itself allows it, whereas if I rename the binary it does not.
Say we have "Demo.exe" and "Demo2.exe" then the moment I start the second app - while sharing the same folder - there's an error "The group or resource is not in the correct state to perform the requested operation".
OTOH, when I start Demo.exe more than one time, there is no error and it all appears to work.
However, I don't know if it is a safe thing to do and as such I have forwarded your question on that same feedback thread at github.
PS: I'm starting to wonder if I should setup some forum software for Antview ;)
--
Wil
Wil,
I'd be interested in the responses.
We have users that fire up the same app multiple times. We will be testing for any errors and I will let you know.
Thanks !
Chuck,
That seems to be fine.
More details here:
[url]https://github.com/MicrosoftEdge/WebView2Feedback/issues/1410#issuecomment-907174261[/url]
--
Wil
Thanks Wil.
User testing will continue next week. So far everything is fine.