/build/static/layout/Breadcrumb_cap_w.png

Environment variable is not removing during uninstall

Hey Guys,

The product Autosys has environment variables called SYBASE and PATH ,These environment variables will be set when you install the application but during uninstall these variables should be removed however it is not happening as it is an vendor msi we tried custom action for the same to remove.

Here are the Environment variable details,

Path=c:\autotree\UnicenterAutosysBundledSybase\Sybase\OCS-12_5\dll
SYBASE=c:\Autotree

Please let me know if anyone has faced the same issue and got the resolution.
I would really appreciate for your results.

Thanks!
Mst

0 Comments   [ + ] Show comments

Answers (5)

Posted by: navnathz 12 years ago
Senior Yellow Belt
0
Hi,

When you are adding Environment variable in package or if it is already there in vendor MSI, check in Name column of Environment table for -sign between '=' sign and name.
Sign '-' indicates remove variable on uninstall of component.


Navnath
Posted by: mstegginamani 12 years ago
Orange Belt
0
Navnath ;

I had check with the environment table however that does not contain any entries in it.
Posted by: anonymous_9363 12 years ago
Red Belt
0
You probably won't want to remove the PATH environment variable on ANY uninstall...

If the package isn't using the Environment table, it's probably executing a Custom Action. You need to choose how you want to handle that. Me, I'd disable the CA and use the proper table (and I'd use the 'User' environment rather than 'System, in order to avoid the requirement for a reboot. Caveat: of course, that means creating a new user-level feature so that self-healing is triggered)
Posted by: mstegginamani 12 years ago
Orange Belt
0
Hey guys,

Thanks for your replies.


Finally, It was solved. Here is the solution for the same.

In installation expert, Environement table should be filled as below by adding environment variable
Name SYBASE
Value C:\Autotree\UnicenterAutosysBundledSybase\Sybase
Operation Set value on install and delete on uninstall
Replacement Append at the end of the current value
Windows NT based system environement variable should be checked .

Thanks !
Mst
Posted by: anonymous_9363 12 years ago
Red Belt
0
Windows NT based system environement variable should be checked .That means you'll need a reboot. Uncheck that check-box and you'll get a user-level variable and no reboot requirement.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ