Hi!
I'm trying to code the following action.
First On Startup I setup the following variable:
SessionVar.Set("%AppFolder%", Registry.GetValue(HKEY_CURRENT_USER, "SOFTWARE\\Lockheed Martin\\Prepar3D v4", "AppPath", true));
Then On Shutdown I'm trying to run the application with the following argument:
result = File.Run(SessionVar.Expand("%AppFolder%\\Prepar3D. exe"), "-Configure: Category=Add-on Package, Operation=Add, Title=Test#1, Path=%AppFolder%\\Ecosystem\\Test#1\Product#1", "", SW_SHOWNORMAL, false);
The problem is that the Path is not called correctly as I'm unable/don't know how to insert a variable to it.
I'd be grateful for any suggestions on how this could be done correctly.
Cheers!
I'm trying to code the following action.
First On Startup I setup the following variable:
SessionVar.Set("%AppFolder%", Registry.GetValue(HKEY_CURRENT_USER, "SOFTWARE\\Lockheed Martin\\Prepar3D v4", "AppPath", true));
Then On Shutdown I'm trying to run the application with the following argument:
result = File.Run(SessionVar.Expand("%AppFolder%\\Prepar3D. exe"), "-Configure: Category=Add-on Package, Operation=Add, Title=Test#1, Path=%AppFolder%\\Ecosystem\\Test#1\Product#1", "", SW_SHOWNORMAL, false);
The problem is that the Path is not called correctly as I'm unable/don't know how to insert a variable to it.
I'd be grateful for any suggestions on how this could be done correctly.
Cheers!
Comment