Page 1 of 1
How to remove modifications to PATH on uninstall
Posted: Tue Jan 15, 2013 5:13 am
by deploy
Sorry to bother so soon again, but now I am having trouble with "Set Envrinment". What is the correct way to add values to the system PATH and make sure the value(s) are removed when the application is uninstalled?
If I do the following:
File -> New project -> basic setup
Under first time installation, before Apply install:
Code: Select all
~InstallAware Clipboard Data~
~Set Environment~
~{AA14379D-A2BE-44EC-BC9A-558E4B7BFD06}~
~PATH~
~C:\test~
~0~
~1~
~TRUE~
~TRUE~
Then I install this "application" under an admin account, C:\test is added to path correctly. Run installer again and chose delete to uninstall.
C:\test is still present in PATH, even after a reboot.
I was under the impression that purple commands would be handled automatically by "Apply Uninstall" since I have checked "Remove variable/value during uninstall"?
Variables other than PATH seem to be handled during uninstallation (they are removed).
What do I have to do to uninstall the modifications my setup made to the PATH variable?
Tried help file and then forum without finding anything about this topic.
Regards
Re: How to remove modifications to PATH on uninstall
Posted: Tue Jan 15, 2013 10:58 am
by FrancescoT
Dear User,
yes, it should be removed during uninstall.
Let me verify it.
Regards
Re: How to remove modifications to PATH on uninstall
Posted: Thu Jan 17, 2013 10:44 am
by FrancescoT
Dear User,
just to confirm that we added this issue to our fixes list.
Regards
Re: How to remove modifications to PATH on uninstall
Posted: Thu Aug 22, 2013 1:10 am
by JeyKeyRey
Hi FransescoT,
I wonder when this will be implemented? I'm now working With IA 17 (Developer), but Uninstall will not remove added strings to the system path.
Regards
JeyKeyRey
Re: How to remove modifications to PATH on uninstall
Posted: Thu Aug 22, 2013 9:54 am
by FrancescoT
Dear JeyKeyRey,
It has been already implemented!
Please provide a very minimal sample project that replicates the issue.
I have just tried and for what I see the value added on install, it is correctly removed at un-install.
Regards
Re: How to remove modifications to PATH on uninstall
Posted: Mon Aug 26, 2013 5:59 am
by JeyKeyRey
Hi again,
This is how it looks With MSI Code:
Set Environment Variable %Path% to $PROGRAMFILES$\Firebird\Firebird_2_5\bin
Apply Install ()
Details:
Environment Variable Name: Path
Environment Variable Value: $PROGRAMFILES$\Firebird\Firebird_2_5\bin
Operation: Only set variable if previously undefined (... and it is missing before installation)
Placement: Add value to end of variable
Remove Variable/Value During Uninstall: V
Set Variable for all Users: V
Copy/Paste:
~InstallAware Clipboard Data~
~Apply Changes~
~{49BE00BE-1A2D-4895-BF37-6EEE0CDD5445}~
~progress~
~SUCCESS~
~TRUE~
~FALSE~
~Set Environment~
~{E847417A-EAC2-4836-BF90-215E60071C34}~
~Path~
~$PROGRAMFILES$\Firebird\Firebird_2_5\bin~
~1~
~1~
~TRUE~
~TRUE~
Regards
JeyKeyRey
Re: How to remove modifications to PATH on uninstall
Posted: Mon Aug 26, 2013 10:53 am
by FrancescoT
Dear JeyKeyRey,
let me check it.
Regards
Re: How to remove modifications to PATH on uninstall
Posted: Mon Jan 06, 2014 10:02 am
by JohnO
Dear Francesco
Happy New Year and thanks for all your help to me as a new user in 2013.
I am having the same problem with IA17. I have tried adding the Env Var for user-only and all users, but it is not removed when my app is uninstalled.
In one post you say that your test showed the Env Var to have been removed. But it isn't for me. Does this require Windows to be restarted in order for the Env Var to be removed? If not, do you have any ideas as to why this is not working for me?
I am setting this in the main script (see <==):
Code: Select all
Comment: TO-DO: Insert any additional install commands here
[compiler if Variable BUILDMODE Equals PATCH]
Apply Patch (get result into variable SUCCESS)
[compiler else]
if Variable ADVERTISE Equals TRUE
Apply Advertised (get result into variable SUCCESS)
else
Create File Type Romonet Model with extensions .*.RDCM and associate with program $TARGETDIR$\romonet.exe
Create Folder $USERWORKSPACE$
Create Folder $USERWORKSPACE$\libs
Comment: For when RSS is started by an rdcm association
Set Variable NATIVE_ENGINE to TRUE <==
Set Environment Variable %RSS_HOME% to $TARGETDIR$ <==
Set Variable NATIVE_ENGINE to FALSE <==
Apply Install (get result into variable SUCCESS)
end
[compiler end]
Regards, John
Re: How to remove modifications to PATH on uninstall
Posted: Tue Jan 07, 2014 12:34 pm
by FrancescoT
Dear John,
when using NATIVE ENGINE, you need to remove the Environment Variable explicitly on un-install.
I really believe this is the cause of your problem.
Happy new year to you.
Regards
Re: How to remove modifications to PATH on uninstall
Posted: Wed Jan 15, 2014 8:08 am
by JohnO
Dear Francesco
I looked for something like 'remove env variable' to use as an explicit statement, but I couldn't find one.
What should I use?
All I can think of is to use 'set env variable' again, but with the operation set to 'always remove variable'.
It would be very helpful if the Help for this were updated as follows:
- the differences that exist when using the Native Engine
- how to remove the env var with Native Engine/.
Regards, John
Re: How to remove modifications to PATH on uninstall
Posted: Wed Jan 15, 2014 12:13 pm
by FrancescoT
Dear John,
are you using the NATIVE ENGINE mode with the "Set Env Variable" command only?
Regards
Re: How to remove modifications to PATH on uninstall
Posted: Thu Jan 23, 2014 9:20 am
by JohnO
Dear Francesco
Yes I was using the NATIVE ENGINE with 'set env var'. There was no need for me to do that, other than it is usually the way to get things done at the point required. I removed NATIVE ENGINE and it all works fine. Thanks.
Regards. John
Re: How to remove modifications to PATH on uninstall
Posted: Thu Jan 23, 2014 11:57 am
by FrancescoT