OSD Scripting
I want to call a script in the OSD file that will read a registry key on the PC for a database then get server and port information for a particular application and put that information into an ini file and registry keys in the virtual package. How would you set the Protect parameter, as the script does both scenarios?
Thanks for your advice.
Thanks for your advice.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
Rheuvel
14 years ago
Hi,
Protect=True runs the script within the virtual environment. That's what you'll need to place the information inside your virtual app/bubble. (And it will, of course, be able to read outside of the virtual environment.)
Just make sure the data is not read from a path that is also resolved/redirected by your virtual environment. Like C:\Program Files\<appname> for example. That might get redirected to %CSIDL_PROGRAMFILES%\<appname>, which will result in the script not being able to locate the information.
A network share should be a safe place.
Protect=True runs the script within the virtual environment. That's what you'll need to place the information inside your virtual app/bubble. (And it will, of course, be able to read outside of the virtual environment.)
Just make sure the data is not read from a path that is also resolved/redirected by your virtual environment. Like C:\Program Files\<appname> for example. That might get redirected to %CSIDL_PROGRAMFILES%\<appname>, which will result in the script not being able to locate the information.
A network share should be a safe place.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.