Uninstall of a program. - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

gsimpson
Posts: 13
Joined: Sat Dec 31, 2011 8:13 pm

Uninstall of a program.

Hello,
I have a few questions that I was hoping could be answered.

1) The install package contains 3 prerequisites. One of them is an ODBC driver for Postgres. At the end of the installation, it uses this driver to populate a database that is installed. How do I remove this ODBC driver at the end of the install after the database is populated?

2) I am trying to create 2 files that will go into the following directories:
For Windows XP:
C:\Documents and Settings\All Users\Application Data\Mophilly
C:\Documents and Settings\<Logged On User>\Application Data\Mophilly

For Vista and above:
C:\Users\administrator\AppData\Roaming\Mophilly
C:\Users\<Logged On User>\AppData\Roaming\Mophilly

I would love to use the enviromental variables %APPDATA%, but do not know how to do this.
Can you give me a simple answer for creating these?

3) I have created a few properties that are called ADMIN_DESKTOP_VISTA and ADMIN_DESKTOP_XP and the like... Is this the best way to do this? You have answered a previous question on how to use the Environmental variable %SystemDrive% that I really didn't understand. Can you please clarify this? Perhaps by example by using the AIP file that I have provided below?



Thank you for your time,
Greg
Last edited by gsimpson on Fri Jan 13, 2012 6:57 pm, edited 1 time in total.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Uninstall of a program.

Hi Greg,
One of them is an ODBC driver for Postgres. At the end of the installation, it uses this driver to populate a database that is installed. How do I remove this ODBC driver at the end of the install after the database is populated?
You can follow this user guide article, however to perform the uninstall during the main installation you should use NOT Installed condition instead of REMOVE="ALL".
I am trying to create 2 files that will go into the following directories
There is no need to use any environment variable for this. Just use the Files and Folders page predefined functionality. In this particular case, simply add "Mophilly" in Application Data and Common Application Data folders.
The paths will be resolved accordingly depending on the target machine OS. For more information about this, please follow this article.
I have created a few properties that are called ADMIN_DESKTOP_VISTA and ADMIN_DESKTOP_XP and the like... Is this the best way to do this?
If you want to target the Desktop folder of the installing user( which has admin rights ), simply use the Desktop folder from the Files and Folders page.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”