Join us for SoftSummit 2023. The 20th anniversary of the industry leading software monetization conference. April 18 and 20. Register Now

Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 2

PATH environment variable gets removed on uninstallation

Hi there,

I have created an installer for our product (product.exe) and I have an issue that the PATH variable gets removed from registry after uninstalling the product.

here's few things I have done to the PATH variable in the installer:
1. retrieve the value from existing PATH in registry by calling 'RegDBGetValueEx'
2. append more paths to the PATH variable
3. set the new PATH variable by calling 'RegDBSetValueEx'

I am not sure why the installer would remove the PATH variable from registry on uninstallation. Anyone has any idea? Please help!

Thank you very much,

Labels (1)
0 Kudos
1 Reply
Not applicable

Please make sure that you have disabled the logging;
Disable ( Logging );
Why can’t you use “System Configuration - > Environment Variable” to set the environment variable.
0 Kudos