How to remove modifications to PATH on uninstall

Got a problem you cannot solve? Try here.
deploy
Posts: 30
Joined: Mon Jan 14, 2013 1:39 am

How to remove modifications to PATH on uninstall

Postby deploy » Tue Jan 15, 2013 5:13 am

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: How to remove modifications to PATH on uninstall

Postby FrancescoT » Tue Jan 15, 2013 10:58 am

Dear User,

yes, it should be removed during uninstall.

Let me verify it.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: How to remove modifications to PATH on uninstall

Postby FrancescoT » Thu Jan 17, 2013 10:44 am

Dear User,

just to confirm that we added this issue to our fixes list.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

JeyKeyRey
Posts: 10
Joined: Wed May 22, 2013 6:12 am

Re: How to remove modifications to PATH on uninstall

Postby JeyKeyRey » Thu Aug 22, 2013 1:10 am

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: How to remove modifications to PATH on uninstall

Postby FrancescoT » Thu Aug 22, 2013 9:54 am

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

JeyKeyRey
Posts: 10
Joined: Wed May 22, 2013 6:12 am

Re: How to remove modifications to PATH on uninstall

Postby JeyKeyRey » Mon Aug 26, 2013 5:59 am

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: How to remove modifications to PATH on uninstall

Postby FrancescoT » Mon Aug 26, 2013 10:53 am

Dear JeyKeyRey,

let me check it.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

JohnO
Posts: 127
Joined: Tue Jun 18, 2013 9:52 am

Re: How to remove modifications to PATH on uninstall

Postby JohnO » Mon Jan 06, 2014 10:02 am

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: How to remove modifications to PATH on uninstall

Postby FrancescoT » Tue Jan 07, 2014 12:34 pm

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

JohnO
Posts: 127
Joined: Tue Jun 18, 2013 9:52 am

Re: How to remove modifications to PATH on uninstall

Postby JohnO » Wed Jan 15, 2014 8:08 am

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: How to remove modifications to PATH on uninstall

Postby FrancescoT » Wed Jan 15, 2014 12:13 pm

Dear John,

are you using the NATIVE ENGINE mode with the "Set Env Variable" command only?

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

JohnO
Posts: 127
Joined: Tue Jun 18, 2013 9:52 am

Re: How to remove modifications to PATH on uninstall

Postby JohnO » Thu Jan 23, 2014 9:20 am

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: How to remove modifications to PATH on uninstall

Postby FrancescoT » Thu Jan 23, 2014 11:57 am

:D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 136 guests