wybrand
Posts: 4
Joined: Tue Nov 15, 2011 10:42 am

Warning when installing in root.

Hello.

Sometimes our users try to install our product in the root of a disk, for instance D:

If they try to uninstall the product the complete contents of the D disk is thrown away.

This is behaviour is to my opinion correct. You should not choose the root of a disk as your install.

But, can I give a warning when the user tries to install in the root of a partition/disk???

Greetings,

Wybrand.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Warning when installing in root.

Hello Wybrand,

This could happen if you have added a folder removal operation on the "Application Folder" directory from "Files and Folders" page. Otherwise, the uninstall process should remove only its installed files. Did you encountered a different behavior? If so, can you please send us the .aip (project file) to support at advancedinstaller dot com alongside a detailed test case scenario so we can test and investigate this?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wybrand
Posts: 4
Joined: Tue Nov 15, 2011 10:42 am

Re: Warning when installing in root.

Hello Daniel.

I checked our aip file and indeed we have programmed a removal operation which
uses the wildcard '*' in the application folder.

I removed the removal operation and tested the new installer by first
installing our application and then removing via clicking the removal button.

To my surprise it did not remove the entire application. Hence the programmed
explicit removal operation.

When installing our application we run a executable which generates some files.
These files are not removed and I can understand this.

But these not the only files which are not removed.

After removing the executable which generated some files from the installer, I
tested again the removal function.

There are many more files which are not removed. Including a configuration file
from Advanced installer.

Are you willing to inspect our aip and check if we do something wrong??

If you are willing, I sent the you our aip file + sources.

Greetings,

Wybrand.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Warning when installing in root.

Hello Wybrand,

Indeed, during uninstall Windows Installer will remove only the files installed by your installation process. If your installed application creates another files, then in order to remove these files you can use a folder or files removal operation. Also, in order to make sure your folder/files removal operation doesn't remove non-intended files too, then you can create a new folder under the "Application Folder" directory from "Files and Folders" page and add all your installation files under it. Then you can add a folder removal on the created new folder or a files removal under it.

Let us know if this helped, otherwise please send us the .aip (project file) to support at advancedinstaller dot com so we can investigate it? Also, please specify which are the files which aren't removed by the uninstall process.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”