Hi,
I am using SF 6.0.0.4
I figured out how to add the path to our executable folder to the OS's PATH evironment variable. I do this by extracting the current PATH from the registry, appending to it the path to my folder, then writing the result back into the registry. Is their any easier way to do this?
Next, during uninstall, I want to remove the path to my folder from the PATH variable. I have tried getting the registry variable, searching the string for my path, cutting out the left and right halves, appending the two results together, then writting the result back into the registry. So far I have not been able to get this technique to work. It is vary hard to work with all these string functions without a debugger. So my second question is: is their any easier way to remove the path to my stuff from the OS's PATH variable?
I would assume many people have these two same problems; doesn't it make sense to provide an easy way to install/unsinstall path variables? Even publishing a script example somewhere would be invaluable.
Thanks.
I am using SF 6.0.0.4
I figured out how to add the path to our executable folder to the OS's PATH evironment variable. I do this by extracting the current PATH from the registry, appending to it the path to my folder, then writing the result back into the registry. Is their any easier way to do this?
Next, during uninstall, I want to remove the path to my folder from the PATH variable. I have tried getting the registry variable, searching the string for my path, cutting out the left and right halves, appending the two results together, then writting the result back into the registry. So far I have not been able to get this technique to work. It is vary hard to work with all these string functions without a debugger. So my second question is: is their any easier way to remove the path to my stuff from the OS's PATH variable?
I would assume many people have these two same problems; doesn't it make sense to provide an easy way to install/unsinstall path variables? Even publishing a script example somewhere would be invaluable.
Thanks.
Comment