cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Alex_W
Level 6

Uninstalling delete System Path if I've updated it.

I’ve have a problem I can’t seem to find a solution to and I’m looking for advice.

Product: InstallShield 2010
Project type: InstallScript MSI

Problem:
In my project I have an option that dumps dlls to location not in the product directory or the system directory. When I do this I also need to add the location of these files to the System Path, which I do using the function RegDBSetKeyValueEx(). change to the registry is done programmatically only.

My problem is that when this option is used and when I my product is un-installed the System Path is deleted. End users then find the next time the boot up that all sorts of ugliness happens because the system path is gone. Any suggestions?
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

If you can use the MSI Environment Variables view instead, that gives you some uninstallation options; or you might see if per-app paths will help.

Otherwise, you can wrap your registry script between Disable(LOGGING) and Enable(LOGGING) to keep the information there forever, or see KB Q107382 for a more sophisticated technique.
0 Kudos
Alex_W
Level 6

Thanks! That works great!
0 Kudos