Uninstall -- Oops... - 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!

jmace
Posts: 55
Joined: Thu Jul 01, 2010 4:46 pm

Uninstall -- Oops...

OK, question, this kind of makes sense and expected, yet the kind of doesn't...

I worked with a client installing and uninstalling an application. They mistakingly extracted all of the files to their root data directory/partition, assuming that the installer would create a "Tracker" directory under that root data directory/partition. Well, unfortunately, their assumption was wrong. They wanted to uninstall the application since all of the application files were put under (e:\root), when they did, all the files under (e:\root) were deleted. I am using the Remove feature and have it always removing the folder, which probably isn't such a great idea.

Is there a way that I can have the installer always create a "Tracker" folder regardless of where the user points the APPDIR to be?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstall -- Oops...

Hi,

In Files and Folders page you can create a Tracker folder under Application Folder and add all you resources in it. You can then change the default Application Folder path in Install Parameters page so it doesn't include the "Tracker" part.

Another solution would be to use a validation custom action which checks the installation path and automatically corrects it. This custom action can be executed on Next button of FolderDlg dialog.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jmace
Posts: 55
Joined: Thu Jul 01, 2010 4:46 pm

Re: Uninstall -- Oops...

How would I go about creating a custom action? I am a C# developer and my VBScript is very rusty. Is there a way that I can create a custom action with C#, I assume it would be a console application.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstall -- Oops...

Hi,

You will need a custom action which can receive the installation handle so it can read and modify APPDIR property (which stores the installation path). So a win32 DLL or VBScript. Our user guide has a sample C++ DLL custom action which can get you started.

You can also find a custom action tutorial here:
http://www.codeproject.com/KB/install/m ... ction.aspx

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”